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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FilterService } from 'primevue/api';
|
|
2
|
-
import BaseComponent from 'primevue/basecomponent';
|
|
3
2
|
import CheckIcon from 'primevue/icons/check';
|
|
4
3
|
import ChevronDownIcon from 'primevue/icons/chevrondown';
|
|
5
4
|
import SearchIcon from 'primevue/icons/search';
|
|
@@ -11,1483 +10,1548 @@ import Portal from 'primevue/portal';
|
|
|
11
10
|
import Ripple from 'primevue/ripple';
|
|
12
11
|
import { UniqueComponentId, ZIndexUtils, ObjectUtils, DomHandler, ConnectedOverlayScrollHandler } from 'primevue/utils';
|
|
13
12
|
import VirtualScroller from 'primevue/virtualscroller';
|
|
14
|
-
import
|
|
13
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
14
|
+
import { useStyle } from 'primevue/usestyle';
|
|
15
|
+
import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createElementVNode, renderSlot, Fragment, createTextVNode, toDisplayString, renderList, normalizeClass, withModifiers, createBlock, createCommentVNode, resolveDynamicComponent, createVNode, withCtx, Transition, withDirectives, createSlots, normalizeProps, guardReactiveProps } from 'vue';
|
|
16
|
+
|
|
17
|
+
var styles = "\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n}\n\n.p-multiselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-multiselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n\n.p-multiselect-item {\n cursor: pointer;\n display: flex;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n\n.p-multiselect-item-group {\n cursor: auto;\n}\n\n.p-multiselect-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.p-multiselect-filter-container {\n position: relative;\n flex: 1 1 auto;\n}\n\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n\n.p-multiselect-close {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n\n.p-fluid .p-multiselect {\n display: flex;\n}\n";
|
|
18
|
+
var inlineStyles = {
|
|
19
|
+
root: function root(_ref) {
|
|
20
|
+
var props = _ref.props;
|
|
21
|
+
return {
|
|
22
|
+
position: props.appendTo === 'self' ? 'relative' : undefined
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var classes = {
|
|
27
|
+
root: function root(_ref2) {
|
|
28
|
+
var instance = _ref2.instance,
|
|
29
|
+
props = _ref2.props;
|
|
30
|
+
return ['p-multiselect p-component p-inputwrapper', {
|
|
31
|
+
'p-multiselect-chip': props.display === 'chip',
|
|
32
|
+
'p-disabled': props.disabled,
|
|
33
|
+
'p-focus': instance.focused,
|
|
34
|
+
'p-inputwrapper-filled': props.modelValue && props.modelValue.length,
|
|
35
|
+
'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
|
|
36
|
+
'p-overlay-open': instance.overlayVisible
|
|
37
|
+
}];
|
|
38
|
+
},
|
|
39
|
+
labelContainer: 'p-multiselect-label-container',
|
|
40
|
+
label: function label(_ref3) {
|
|
41
|
+
var instance = _ref3.instance,
|
|
42
|
+
props = _ref3.props;
|
|
43
|
+
return ['p-multiselect-label', {
|
|
44
|
+
'p-placeholder': instance.label === props.placeholder,
|
|
45
|
+
'p-multiselect-label-empty': !props.placeholder && (!props.modelValue || props.modelValue.length === 0)
|
|
46
|
+
}];
|
|
47
|
+
},
|
|
48
|
+
token: 'p-multiselect-token',
|
|
49
|
+
tokenLabel: 'p-multiselect-token-label',
|
|
50
|
+
removeTokenIcon: 'p-multiselect-token-icon',
|
|
51
|
+
trigger: 'p-multiselect-trigger',
|
|
52
|
+
loadingIcon: 'p-multiselect-trigger-icon',
|
|
53
|
+
dropdownIcon: 'p-multiselect-trigger-icon',
|
|
54
|
+
panel: function panel(_ref4) {
|
|
55
|
+
var instance = _ref4.instance;
|
|
56
|
+
return ['p-multiselect-panel p-component', {
|
|
57
|
+
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
|
|
58
|
+
'p-ripple-disabled': instance.$primevue.config.ripple === false
|
|
59
|
+
}];
|
|
60
|
+
},
|
|
61
|
+
header: 'p-multiselect-header',
|
|
62
|
+
headerCheckboxContainer: function headerCheckboxContainer(_ref5) {
|
|
63
|
+
var instance = _ref5.instance;
|
|
64
|
+
return ['p-checkbox p-component', {
|
|
65
|
+
'p-checkbox-checked': instance.allSelected,
|
|
66
|
+
'p-checkbox-focused': instance.headerCheckboxFocused
|
|
67
|
+
}];
|
|
68
|
+
},
|
|
69
|
+
headerCheckbox: function headerCheckbox(_ref6) {
|
|
70
|
+
var instance = _ref6.instance;
|
|
71
|
+
return ['p-checkbox-box', {
|
|
72
|
+
'p-highlight': instance.allSelected,
|
|
73
|
+
'p-focus': instance.headerCheckboxFocused
|
|
74
|
+
}];
|
|
75
|
+
},
|
|
76
|
+
headerCheckboxIcon: 'p-checkbox-icon',
|
|
77
|
+
filterContainer: 'p-multiselect-filter-container',
|
|
78
|
+
filterInput: 'p-multiselect-filter p-inputtext p-component',
|
|
79
|
+
filterIcon: 'p-multiselect-filter-icon',
|
|
80
|
+
closeButton: 'p-multiselect-close p-link',
|
|
81
|
+
closeIcon: 'p-multiselect-close-icon',
|
|
82
|
+
wrapper: 'p-multiselect-items-wrapper',
|
|
83
|
+
list: 'p-multiselect-items p-component',
|
|
84
|
+
itemGroup: 'p-multiselect-item-group',
|
|
85
|
+
item: function item(_ref7) {
|
|
86
|
+
var instance = _ref7.instance,
|
|
87
|
+
option = _ref7.option,
|
|
88
|
+
index = _ref7.index,
|
|
89
|
+
getItemOptions = _ref7.getItemOptions;
|
|
90
|
+
return ['p-multiselect-item', {
|
|
91
|
+
'p-highlight': instance.isSelected(option),
|
|
92
|
+
'p-focus': instance.focusedOptionIndex === instance.getOptionIndex(index, getItemOptions),
|
|
93
|
+
'p-disabled': instance.isOptionDisabled(option)
|
|
94
|
+
}];
|
|
95
|
+
},
|
|
96
|
+
checkboxContainer: 'p-checkbox p-component',
|
|
97
|
+
checkbox: function checkbox(_ref8) {
|
|
98
|
+
var instance = _ref8.instance,
|
|
99
|
+
option = _ref8.option;
|
|
100
|
+
return ['p-checkbox-box', {
|
|
101
|
+
'p-highlight': instance.isSelected(option)
|
|
102
|
+
}];
|
|
103
|
+
},
|
|
104
|
+
checkboxIcon: 'p-checkbox-icon',
|
|
105
|
+
emptyMessage: 'p-multiselect-empty-message'
|
|
106
|
+
};
|
|
107
|
+
var _useStyle = useStyle(styles, {
|
|
108
|
+
name: 'multiselect',
|
|
109
|
+
manual: true
|
|
110
|
+
}),
|
|
111
|
+
loadStyle = _useStyle.load;
|
|
112
|
+
var script$1 = {
|
|
113
|
+
name: 'BaseMultiSelect',
|
|
114
|
+
"extends": BaseComponent,
|
|
115
|
+
props: {
|
|
116
|
+
modelValue: null,
|
|
117
|
+
options: Array,
|
|
118
|
+
optionLabel: null,
|
|
119
|
+
optionValue: null,
|
|
120
|
+
optionDisabled: null,
|
|
121
|
+
optionGroupLabel: null,
|
|
122
|
+
optionGroupChildren: null,
|
|
123
|
+
scrollHeight: {
|
|
124
|
+
type: String,
|
|
125
|
+
"default": '200px'
|
|
126
|
+
},
|
|
127
|
+
placeholder: String,
|
|
128
|
+
disabled: Boolean,
|
|
129
|
+
inputId: {
|
|
130
|
+
type: String,
|
|
131
|
+
"default": null
|
|
132
|
+
},
|
|
133
|
+
inputProps: {
|
|
134
|
+
type: null,
|
|
135
|
+
"default": null
|
|
136
|
+
},
|
|
137
|
+
panelClass: {
|
|
138
|
+
type: String,
|
|
139
|
+
"default": null
|
|
140
|
+
},
|
|
141
|
+
panelStyle: {
|
|
142
|
+
type: null,
|
|
143
|
+
"default": null
|
|
144
|
+
},
|
|
145
|
+
panelProps: {
|
|
146
|
+
type: null,
|
|
147
|
+
"default": null
|
|
148
|
+
},
|
|
149
|
+
filterInputProps: {
|
|
150
|
+
type: null,
|
|
151
|
+
"default": null
|
|
152
|
+
},
|
|
153
|
+
closeButtonProps: {
|
|
154
|
+
type: null,
|
|
155
|
+
"default": null
|
|
156
|
+
},
|
|
157
|
+
dataKey: null,
|
|
158
|
+
filter: Boolean,
|
|
159
|
+
filterPlaceholder: String,
|
|
160
|
+
filterLocale: String,
|
|
161
|
+
filterMatchMode: {
|
|
162
|
+
type: String,
|
|
163
|
+
"default": 'contains'
|
|
164
|
+
},
|
|
165
|
+
filterFields: {
|
|
166
|
+
type: Array,
|
|
167
|
+
"default": null
|
|
168
|
+
},
|
|
169
|
+
appendTo: {
|
|
170
|
+
type: String,
|
|
171
|
+
"default": 'body'
|
|
172
|
+
},
|
|
173
|
+
display: {
|
|
174
|
+
type: String,
|
|
175
|
+
"default": 'comma'
|
|
176
|
+
},
|
|
177
|
+
selectedItemsLabel: {
|
|
178
|
+
type: String,
|
|
179
|
+
"default": '{0} items selected'
|
|
180
|
+
},
|
|
181
|
+
maxSelectedLabels: {
|
|
182
|
+
type: Number,
|
|
183
|
+
"default": null
|
|
184
|
+
},
|
|
185
|
+
selectionLimit: {
|
|
186
|
+
type: Number,
|
|
187
|
+
"default": null
|
|
188
|
+
},
|
|
189
|
+
showToggleAll: {
|
|
190
|
+
type: Boolean,
|
|
191
|
+
"default": true
|
|
192
|
+
},
|
|
193
|
+
loading: {
|
|
194
|
+
type: Boolean,
|
|
195
|
+
"default": false
|
|
196
|
+
},
|
|
197
|
+
checkboxIcon: {
|
|
198
|
+
type: String,
|
|
199
|
+
"default": undefined
|
|
200
|
+
},
|
|
201
|
+
closeIcon: {
|
|
202
|
+
type: String,
|
|
203
|
+
"default": undefined
|
|
204
|
+
},
|
|
205
|
+
dropdownIcon: {
|
|
206
|
+
type: String,
|
|
207
|
+
"default": undefined
|
|
208
|
+
},
|
|
209
|
+
filterIcon: {
|
|
210
|
+
type: String,
|
|
211
|
+
"default": undefined
|
|
212
|
+
},
|
|
213
|
+
loadingIcon: {
|
|
214
|
+
type: String,
|
|
215
|
+
"default": undefined
|
|
216
|
+
},
|
|
217
|
+
removeTokenIcon: {
|
|
218
|
+
type: String,
|
|
219
|
+
"default": undefined
|
|
220
|
+
},
|
|
221
|
+
selectAll: {
|
|
222
|
+
type: Boolean,
|
|
223
|
+
"default": null
|
|
224
|
+
},
|
|
225
|
+
resetFilterOnHide: {
|
|
226
|
+
type: Boolean,
|
|
227
|
+
"default": false
|
|
228
|
+
},
|
|
229
|
+
virtualScrollerOptions: {
|
|
230
|
+
type: Object,
|
|
231
|
+
"default": null
|
|
232
|
+
},
|
|
233
|
+
autoOptionFocus: {
|
|
234
|
+
type: Boolean,
|
|
235
|
+
"default": true
|
|
236
|
+
},
|
|
237
|
+
autoFilterFocus: {
|
|
238
|
+
type: Boolean,
|
|
239
|
+
"default": false
|
|
240
|
+
},
|
|
241
|
+
filterMessage: {
|
|
242
|
+
type: String,
|
|
243
|
+
"default": null
|
|
244
|
+
},
|
|
245
|
+
selectionMessage: {
|
|
246
|
+
type: String,
|
|
247
|
+
"default": null
|
|
248
|
+
},
|
|
249
|
+
emptySelectionMessage: {
|
|
250
|
+
type: String,
|
|
251
|
+
"default": null
|
|
252
|
+
},
|
|
253
|
+
emptyFilterMessage: {
|
|
254
|
+
type: String,
|
|
255
|
+
"default": null
|
|
256
|
+
},
|
|
257
|
+
emptyMessage: {
|
|
258
|
+
type: String,
|
|
259
|
+
"default": null
|
|
260
|
+
},
|
|
261
|
+
tabindex: {
|
|
262
|
+
type: Number,
|
|
263
|
+
"default": 0
|
|
264
|
+
},
|
|
265
|
+
'aria-label': {
|
|
266
|
+
type: String,
|
|
267
|
+
"default": null
|
|
268
|
+
},
|
|
269
|
+
'aria-labelledby': {
|
|
270
|
+
type: String,
|
|
271
|
+
"default": null
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
css: {
|
|
275
|
+
classes: classes,
|
|
276
|
+
inlineStyles: inlineStyles,
|
|
277
|
+
loadStyle: loadStyle
|
|
278
|
+
},
|
|
279
|
+
provide: function provide() {
|
|
280
|
+
return {
|
|
281
|
+
$parentInstance: this
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
};
|
|
15
285
|
|
|
286
|
+
function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "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$1(obj); }
|
|
287
|
+
function ownKeys$1(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; }
|
|
288
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
289
|
+
function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
290
|
+
function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
|
|
291
|
+
function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
292
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
293
|
+
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."); }
|
|
294
|
+
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); }
|
|
295
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
296
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
297
|
+
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; }
|
|
16
298
|
var script = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
default: null
|
|
45
|
-
},
|
|
46
|
-
panelStyle: {
|
|
47
|
-
type: null,
|
|
48
|
-
default: null
|
|
49
|
-
},
|
|
50
|
-
panelProps: {
|
|
51
|
-
type: null,
|
|
52
|
-
default: null
|
|
53
|
-
},
|
|
54
|
-
filterInputProps: {
|
|
55
|
-
type: null,
|
|
56
|
-
default: null
|
|
57
|
-
},
|
|
58
|
-
closeButtonProps: {
|
|
59
|
-
type: null,
|
|
60
|
-
default: null
|
|
61
|
-
},
|
|
62
|
-
dataKey: null,
|
|
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
|
-
appendTo: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: 'body'
|
|
77
|
-
},
|
|
78
|
-
display: {
|
|
79
|
-
type: String,
|
|
80
|
-
default: 'comma'
|
|
81
|
-
},
|
|
82
|
-
selectedItemsLabel: {
|
|
83
|
-
type: String,
|
|
84
|
-
default: '{0} items selected'
|
|
85
|
-
},
|
|
86
|
-
maxSelectedLabels: {
|
|
87
|
-
type: Number,
|
|
88
|
-
default: null
|
|
89
|
-
},
|
|
90
|
-
selectionLimit: {
|
|
91
|
-
type: Number,
|
|
92
|
-
default: null
|
|
93
|
-
},
|
|
94
|
-
showToggleAll: {
|
|
95
|
-
type: Boolean,
|
|
96
|
-
default: true
|
|
97
|
-
},
|
|
98
|
-
loading: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: false
|
|
101
|
-
},
|
|
102
|
-
checkboxIcon: {
|
|
103
|
-
type: String,
|
|
104
|
-
default: undefined
|
|
105
|
-
},
|
|
106
|
-
closeIcon: {
|
|
107
|
-
type: String,
|
|
108
|
-
default: undefined
|
|
109
|
-
},
|
|
110
|
-
dropdownIcon: {
|
|
111
|
-
type: String,
|
|
112
|
-
default: undefined
|
|
113
|
-
},
|
|
114
|
-
filterIcon: {
|
|
115
|
-
type: String,
|
|
116
|
-
default: undefined
|
|
117
|
-
},
|
|
118
|
-
loadingIcon: {
|
|
119
|
-
type: String,
|
|
120
|
-
default: undefined
|
|
121
|
-
},
|
|
122
|
-
removeTokenIcon: {
|
|
123
|
-
type: String,
|
|
124
|
-
default: undefined
|
|
125
|
-
},
|
|
126
|
-
selectAll: {
|
|
127
|
-
type: Boolean,
|
|
128
|
-
default: null
|
|
129
|
-
},
|
|
130
|
-
resetFilterOnHide: {
|
|
131
|
-
type: Boolean,
|
|
132
|
-
default: false
|
|
133
|
-
},
|
|
134
|
-
virtualScrollerOptions: {
|
|
135
|
-
type: Object,
|
|
136
|
-
default: null
|
|
137
|
-
},
|
|
138
|
-
autoOptionFocus: {
|
|
139
|
-
type: Boolean,
|
|
140
|
-
default: true
|
|
141
|
-
},
|
|
142
|
-
autoFilterFocus: {
|
|
143
|
-
type: Boolean,
|
|
144
|
-
default: false
|
|
145
|
-
},
|
|
146
|
-
filterMessage: {
|
|
147
|
-
type: String,
|
|
148
|
-
default: null
|
|
149
|
-
},
|
|
150
|
-
selectionMessage: {
|
|
151
|
-
type: String,
|
|
152
|
-
default: null
|
|
153
|
-
},
|
|
154
|
-
emptySelectionMessage: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: null
|
|
157
|
-
},
|
|
158
|
-
emptyFilterMessage: {
|
|
159
|
-
type: String,
|
|
160
|
-
default: null
|
|
161
|
-
},
|
|
162
|
-
emptyMessage: {
|
|
163
|
-
type: String,
|
|
164
|
-
default: null
|
|
165
|
-
},
|
|
166
|
-
tabindex: {
|
|
167
|
-
type: Number,
|
|
168
|
-
default: 0
|
|
169
|
-
},
|
|
170
|
-
'aria-label': {
|
|
171
|
-
type: String,
|
|
172
|
-
default: null
|
|
173
|
-
},
|
|
174
|
-
'aria-labelledby': {
|
|
175
|
-
type: String,
|
|
176
|
-
default: null
|
|
177
|
-
}
|
|
299
|
+
name: 'MultiSelect',
|
|
300
|
+
"extends": script$1,
|
|
301
|
+
emits: ['update:modelValue', 'change', 'focus', 'blur', 'before-show', 'before-hide', 'show', 'hide', 'filter', 'selectall-change'],
|
|
302
|
+
outsideClickListener: null,
|
|
303
|
+
scrollHandler: null,
|
|
304
|
+
resizeListener: null,
|
|
305
|
+
overlay: null,
|
|
306
|
+
list: null,
|
|
307
|
+
virtualScroller: null,
|
|
308
|
+
startRangeIndex: -1,
|
|
309
|
+
searchTimeout: null,
|
|
310
|
+
searchValue: '',
|
|
311
|
+
selectOnFocus: false,
|
|
312
|
+
focusOnHover: false,
|
|
313
|
+
data: function data() {
|
|
314
|
+
return {
|
|
315
|
+
id: this.$attrs.id,
|
|
316
|
+
focused: false,
|
|
317
|
+
focusedOptionIndex: -1,
|
|
318
|
+
headerCheckboxFocused: false,
|
|
319
|
+
filterValue: null,
|
|
320
|
+
overlayVisible: false
|
|
321
|
+
};
|
|
322
|
+
},
|
|
323
|
+
watch: {
|
|
324
|
+
'$attrs.id': function $attrsId(newValue) {
|
|
325
|
+
this.id = newValue || UniqueComponentId();
|
|
178
326
|
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
327
|
+
options: function options() {
|
|
328
|
+
this.autoUpdateModel();
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
mounted: function mounted() {
|
|
332
|
+
this.id = this.id || UniqueComponentId();
|
|
333
|
+
this.autoUpdateModel();
|
|
334
|
+
},
|
|
335
|
+
beforeUnmount: function beforeUnmount() {
|
|
336
|
+
this.unbindOutsideClickListener();
|
|
337
|
+
this.unbindResizeListener();
|
|
338
|
+
if (this.scrollHandler) {
|
|
339
|
+
this.scrollHandler.destroy();
|
|
340
|
+
this.scrollHandler = null;
|
|
341
|
+
}
|
|
342
|
+
if (this.overlay) {
|
|
343
|
+
ZIndexUtils.clear(this.overlay);
|
|
344
|
+
this.overlay = null;
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
methods: {
|
|
348
|
+
getOptionIndex: function getOptionIndex(index, fn) {
|
|
349
|
+
return this.virtualScrollerDisabled ? index : fn && fn(index)['index'];
|
|
199
350
|
},
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
this.id = newValue || UniqueComponentId();
|
|
203
|
-
},
|
|
204
|
-
options() {
|
|
205
|
-
this.autoUpdateModel();
|
|
206
|
-
}
|
|
351
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
352
|
+
return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
|
|
207
353
|
},
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
this.autoUpdateModel();
|
|
354
|
+
getOptionValue: function getOptionValue(option) {
|
|
355
|
+
return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;
|
|
212
356
|
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
357
|
+
getOptionRenderKey: function getOptionRenderKey(option) {
|
|
358
|
+
return this.dataKey ? ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);
|
|
359
|
+
},
|
|
360
|
+
getHeaderCheckboxPTOptions: function getHeaderCheckboxPTOptions(key) {
|
|
361
|
+
return this.ptm(key, {
|
|
362
|
+
context: {
|
|
363
|
+
selected: this.allSelected,
|
|
364
|
+
focused: this.headerCheckboxFocused
|
|
220
365
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
366
|
+
});
|
|
367
|
+
},
|
|
368
|
+
getCheckboxPTOptions: function getCheckboxPTOptions(option, itemOptions, index, key) {
|
|
369
|
+
return this.ptm(key, {
|
|
370
|
+
context: {
|
|
371
|
+
selected: this.isSelected(option),
|
|
372
|
+
focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
|
|
373
|
+
disabled: this.isOptionDisabled(option)
|
|
225
374
|
}
|
|
375
|
+
});
|
|
226
376
|
},
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
377
|
+
isOptionDisabled: function isOptionDisabled(option) {
|
|
378
|
+
if (this.maxSelectionLimitReached && !this.isSelected(option)) {
|
|
379
|
+
return true;
|
|
380
|
+
}
|
|
381
|
+
return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
|
|
382
|
+
},
|
|
383
|
+
isOptionGroup: function isOptionGroup(option) {
|
|
384
|
+
return this.optionGroupLabel && option.optionGroup && option.group;
|
|
385
|
+
},
|
|
386
|
+
getOptionGroupLabel: function getOptionGroupLabel(optionGroup) {
|
|
387
|
+
return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
|
|
388
|
+
},
|
|
389
|
+
getOptionGroupChildren: function getOptionGroupChildren(optionGroup) {
|
|
390
|
+
return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
|
|
391
|
+
},
|
|
392
|
+
getAriaPosInset: function getAriaPosInset(index) {
|
|
393
|
+
var _this = this;
|
|
394
|
+
return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter(function (option) {
|
|
395
|
+
return _this.isOptionGroup(option);
|
|
396
|
+
}).length : index) + 1;
|
|
397
|
+
},
|
|
398
|
+
show: function show(isFocus) {
|
|
399
|
+
this.$emit('before-show');
|
|
400
|
+
this.overlayVisible = true;
|
|
401
|
+
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
402
|
+
isFocus && DomHandler.focus(this.$refs.focusInput);
|
|
403
|
+
},
|
|
404
|
+
hide: function hide(isFocus) {
|
|
405
|
+
var _this2 = this;
|
|
406
|
+
var _hide = function _hide() {
|
|
407
|
+
_this2.$emit('before-hide');
|
|
408
|
+
_this2.overlayVisible = false;
|
|
409
|
+
_this2.focusedOptionIndex = -1;
|
|
410
|
+
_this2.searchValue = '';
|
|
411
|
+
_this2.resetFilterOnHide && (_this2.filterValue = null);
|
|
412
|
+
isFocus && DomHandler.focus(_this2.$refs.focusInput);
|
|
413
|
+
};
|
|
414
|
+
setTimeout(function () {
|
|
415
|
+
_hide();
|
|
416
|
+
}, 0); // For ScreenReaders
|
|
417
|
+
},
|
|
418
|
+
onFocus: function onFocus(event) {
|
|
419
|
+
if (this.disabled) {
|
|
420
|
+
// For ScreenReaders
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
423
|
+
this.focused = true;
|
|
424
|
+
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
425
|
+
this.overlayVisible && this.scrollInView(this.focusedOptionIndex);
|
|
426
|
+
this.$emit('focus', event);
|
|
427
|
+
},
|
|
428
|
+
onBlur: function onBlur(event) {
|
|
429
|
+
this.focused = false;
|
|
430
|
+
this.focusedOptionIndex = -1;
|
|
431
|
+
this.searchValue = '';
|
|
432
|
+
this.$emit('blur', event);
|
|
433
|
+
},
|
|
434
|
+
onKeyDown: function onKeyDown(event) {
|
|
435
|
+
var _this3 = this;
|
|
436
|
+
if (this.disabled) {
|
|
437
|
+
event.preventDefault();
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
441
|
+
switch (event.code) {
|
|
442
|
+
case 'ArrowDown':
|
|
443
|
+
this.onArrowDownKey(event);
|
|
444
|
+
break;
|
|
445
|
+
case 'ArrowUp':
|
|
446
|
+
this.onArrowUpKey(event);
|
|
447
|
+
break;
|
|
448
|
+
case 'Home':
|
|
449
|
+
this.onHomeKey(event);
|
|
450
|
+
break;
|
|
451
|
+
case 'End':
|
|
452
|
+
this.onEndKey(event);
|
|
453
|
+
break;
|
|
454
|
+
case 'PageDown':
|
|
455
|
+
this.onPageDownKey(event);
|
|
456
|
+
break;
|
|
457
|
+
case 'PageUp':
|
|
458
|
+
this.onPageUpKey(event);
|
|
459
|
+
break;
|
|
460
|
+
case 'Enter':
|
|
461
|
+
case 'Space':
|
|
462
|
+
this.onEnterKey(event);
|
|
463
|
+
break;
|
|
464
|
+
case 'Escape':
|
|
465
|
+
this.onEscapeKey(event);
|
|
466
|
+
break;
|
|
467
|
+
case 'Tab':
|
|
468
|
+
this.onTabKey(event);
|
|
469
|
+
break;
|
|
470
|
+
case 'ShiftLeft':
|
|
471
|
+
case 'ShiftRight':
|
|
472
|
+
this.onShiftKey(event);
|
|
473
|
+
break;
|
|
474
|
+
default:
|
|
475
|
+
if (event.code === 'KeyA' && metaKey) {
|
|
476
|
+
var value = this.visibleOptions.filter(function (option) {
|
|
477
|
+
return _this3.isValidOption(option);
|
|
478
|
+
}).map(function (option) {
|
|
479
|
+
return _this3.getOptionValue(option);
|
|
255
480
|
});
|
|
256
|
-
},
|
|
257
|
-
isOptionDisabled(option) {
|
|
258
|
-
if (this.maxSelectionLimitReached && !this.isSelected(option)) {
|
|
259
|
-
return true;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
|
|
263
|
-
},
|
|
264
|
-
isOptionGroup(option) {
|
|
265
|
-
return this.optionGroupLabel && option.optionGroup && option.group;
|
|
266
|
-
},
|
|
267
|
-
getOptionGroupLabel(optionGroup) {
|
|
268
|
-
return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
|
|
269
|
-
},
|
|
270
|
-
getOptionGroupChildren(optionGroup) {
|
|
271
|
-
return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
|
|
272
|
-
},
|
|
273
|
-
getAriaPosInset(index) {
|
|
274
|
-
return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter((option) => this.isOptionGroup(option)).length : index) + 1;
|
|
275
|
-
},
|
|
276
|
-
show(isFocus) {
|
|
277
|
-
this.$emit('before-show');
|
|
278
|
-
this.overlayVisible = true;
|
|
279
|
-
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
280
|
-
|
|
281
|
-
isFocus && DomHandler.focus(this.$refs.focusInput);
|
|
282
|
-
},
|
|
283
|
-
hide(isFocus) {
|
|
284
|
-
const _hide = () => {
|
|
285
|
-
this.$emit('before-hide');
|
|
286
|
-
this.overlayVisible = false;
|
|
287
|
-
this.focusedOptionIndex = -1;
|
|
288
|
-
this.searchValue = '';
|
|
289
|
-
|
|
290
|
-
this.resetFilterOnHide && (this.filterValue = null);
|
|
291
|
-
isFocus && DomHandler.focus(this.$refs.focusInput);
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
setTimeout(() => {
|
|
295
|
-
_hide();
|
|
296
|
-
}, 0); // For ScreenReaders
|
|
297
|
-
},
|
|
298
|
-
onFocus(event) {
|
|
299
|
-
if (this.disabled) {
|
|
300
|
-
// For ScreenReaders
|
|
301
|
-
return;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
this.focused = true;
|
|
305
|
-
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
306
|
-
this.overlayVisible && this.scrollInView(this.focusedOptionIndex);
|
|
307
|
-
this.$emit('focus', event);
|
|
308
|
-
},
|
|
309
|
-
onBlur(event) {
|
|
310
|
-
this.focused = false;
|
|
311
|
-
this.focusedOptionIndex = -1;
|
|
312
|
-
this.searchValue = '';
|
|
313
|
-
this.$emit('blur', event);
|
|
314
|
-
},
|
|
315
|
-
onKeyDown(event) {
|
|
316
|
-
if (this.disabled) {
|
|
317
|
-
event.preventDefault();
|
|
318
|
-
|
|
319
|
-
return;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
const metaKey = event.metaKey || event.ctrlKey;
|
|
323
|
-
|
|
324
|
-
switch (event.code) {
|
|
325
|
-
case 'ArrowDown':
|
|
326
|
-
this.onArrowDownKey(event);
|
|
327
|
-
break;
|
|
328
|
-
|
|
329
|
-
case 'ArrowUp':
|
|
330
|
-
this.onArrowUpKey(event);
|
|
331
|
-
break;
|
|
332
|
-
|
|
333
|
-
case 'Home':
|
|
334
|
-
this.onHomeKey(event);
|
|
335
|
-
break;
|
|
336
|
-
|
|
337
|
-
case 'End':
|
|
338
|
-
this.onEndKey(event);
|
|
339
|
-
break;
|
|
340
|
-
|
|
341
|
-
case 'PageDown':
|
|
342
|
-
this.onPageDownKey(event);
|
|
343
|
-
break;
|
|
344
|
-
|
|
345
|
-
case 'PageUp':
|
|
346
|
-
this.onPageUpKey(event);
|
|
347
|
-
break;
|
|
348
|
-
|
|
349
|
-
case 'Enter':
|
|
350
|
-
case 'Space':
|
|
351
|
-
this.onEnterKey(event);
|
|
352
|
-
break;
|
|
353
|
-
|
|
354
|
-
case 'Escape':
|
|
355
|
-
this.onEscapeKey(event);
|
|
356
|
-
break;
|
|
357
|
-
|
|
358
|
-
case 'Tab':
|
|
359
|
-
this.onTabKey(event);
|
|
360
|
-
break;
|
|
361
|
-
|
|
362
|
-
case 'ShiftLeft':
|
|
363
|
-
case 'ShiftRight':
|
|
364
|
-
this.onShiftKey(event);
|
|
365
|
-
break;
|
|
366
|
-
|
|
367
|
-
default:
|
|
368
|
-
if (event.code === 'KeyA' && metaKey) {
|
|
369
|
-
const value = this.visibleOptions.filter((option) => this.isValidOption(option)).map((option) => this.getOptionValue(option));
|
|
370
|
-
|
|
371
|
-
this.updateModel(event, value);
|
|
372
|
-
|
|
373
|
-
event.preventDefault();
|
|
374
|
-
break;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
if (!metaKey && ObjectUtils.isPrintableCharacter(event.key)) {
|
|
378
|
-
!this.overlayVisible && this.show();
|
|
379
|
-
this.searchOptions(event);
|
|
380
|
-
event.preventDefault();
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
break;
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
onContainerClick(event) {
|
|
387
|
-
if (this.disabled || this.loading) {
|
|
388
|
-
return;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
if (!this.overlay || !this.overlay.contains(event.target)) {
|
|
392
|
-
this.overlayVisible ? this.hide(true) : this.show(true);
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
onFirstHiddenFocus(event) {
|
|
396
|
-
const focusableEl = event.relatedTarget === this.$refs.focusInput ? DomHandler.getFirstFocusableElement(this.overlay, ':not(.p-hidden-focusable)') : this.$refs.focusInput;
|
|
397
|
-
|
|
398
|
-
DomHandler.focus(focusableEl);
|
|
399
|
-
},
|
|
400
|
-
onLastHiddenFocus(event) {
|
|
401
|
-
const focusableEl = event.relatedTarget === this.$refs.focusInput ? DomHandler.getLastFocusableElement(this.overlay, ':not(.p-hidden-focusable)') : this.$refs.focusInput;
|
|
402
|
-
|
|
403
|
-
DomHandler.focus(focusableEl);
|
|
404
|
-
},
|
|
405
|
-
onCloseClick() {
|
|
406
|
-
this.hide(true);
|
|
407
|
-
},
|
|
408
|
-
onHeaderCheckboxFocus() {
|
|
409
|
-
this.headerCheckboxFocused = true;
|
|
410
|
-
},
|
|
411
|
-
onHeaderCheckboxBlur() {
|
|
412
|
-
this.headerCheckboxFocused = false;
|
|
413
|
-
},
|
|
414
|
-
onOptionSelect(event, option, index = -1, isFocus = false) {
|
|
415
|
-
if (this.disabled || this.isOptionDisabled(option)) {
|
|
416
|
-
return;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
let selected = this.isSelected(option);
|
|
420
|
-
let value = null;
|
|
421
|
-
|
|
422
|
-
if (selected) value = this.modelValue.filter((val) => !ObjectUtils.equals(val, this.getOptionValue(option), this.equalityKey));
|
|
423
|
-
else value = [...(this.modelValue || []), this.getOptionValue(option)];
|
|
424
|
-
|
|
425
481
|
this.updateModel(event, value);
|
|
426
|
-
index !== -1 && (this.focusedOptionIndex = index);
|
|
427
|
-
isFocus && DomHandler.focus(this.$refs.focusInput);
|
|
428
|
-
},
|
|
429
|
-
onOptionMouseMove(event, index) {
|
|
430
|
-
if (this.focusOnHover) {
|
|
431
|
-
this.changeFocusedOptionIndex(event, index);
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
onOptionSelectRange(event, start = -1, end = -1) {
|
|
435
|
-
start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
|
|
436
|
-
end === -1 && (end = this.findNearestSelectedOptionIndex(start));
|
|
437
|
-
|
|
438
|
-
if (start !== -1 && end !== -1) {
|
|
439
|
-
const rangeStart = Math.min(start, end);
|
|
440
|
-
const rangeEnd = Math.max(start, end);
|
|
441
|
-
const value = this.visibleOptions
|
|
442
|
-
.slice(rangeStart, rangeEnd + 1)
|
|
443
|
-
.filter((option) => this.isValidOption(option))
|
|
444
|
-
.map((option) => this.getOptionValue(option));
|
|
445
|
-
|
|
446
|
-
this.updateModel(event, value);
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
onFilterChange(event) {
|
|
450
|
-
const value = event.target.value;
|
|
451
|
-
|
|
452
|
-
this.filterValue = value;
|
|
453
|
-
this.focusedOptionIndex = -1;
|
|
454
|
-
this.$emit('filter', { originalEvent: event, value });
|
|
455
|
-
|
|
456
|
-
!this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
|
|
457
|
-
},
|
|
458
|
-
onFilterKeyDown(event) {
|
|
459
|
-
switch (event.code) {
|
|
460
|
-
case 'ArrowDown':
|
|
461
|
-
this.onArrowDownKey(event);
|
|
462
|
-
break;
|
|
463
|
-
|
|
464
|
-
case 'ArrowUp':
|
|
465
|
-
this.onArrowUpKey(event, true);
|
|
466
|
-
break;
|
|
467
|
-
|
|
468
|
-
case 'ArrowLeft':
|
|
469
|
-
case 'ArrowRight':
|
|
470
|
-
this.onArrowLeftKey(event, true);
|
|
471
|
-
break;
|
|
472
|
-
|
|
473
|
-
case 'Home':
|
|
474
|
-
this.onHomeKey(event, true);
|
|
475
|
-
break;
|
|
476
|
-
|
|
477
|
-
case 'End':
|
|
478
|
-
this.onEndKey(event, true);
|
|
479
|
-
break;
|
|
480
|
-
|
|
481
|
-
case 'Enter':
|
|
482
|
-
this.onEnterKey(event);
|
|
483
|
-
break;
|
|
484
|
-
|
|
485
|
-
case 'Escape':
|
|
486
|
-
this.onEscapeKey(event);
|
|
487
|
-
break;
|
|
488
|
-
|
|
489
|
-
case 'Tab':
|
|
490
|
-
this.onTabKey(event, true);
|
|
491
|
-
break;
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
onFilterBlur() {
|
|
495
|
-
this.focusedOptionIndex = -1;
|
|
496
|
-
},
|
|
497
|
-
onFilterUpdated() {
|
|
498
|
-
if (this.overlayVisible) {
|
|
499
|
-
this.alignOverlay();
|
|
500
|
-
}
|
|
501
|
-
},
|
|
502
|
-
onOverlayClick(event) {
|
|
503
|
-
OverlayEventBus.emit('overlay-click', {
|
|
504
|
-
originalEvent: event,
|
|
505
|
-
target: this.$el
|
|
506
|
-
});
|
|
507
|
-
},
|
|
508
|
-
onOverlayKeyDown(event) {
|
|
509
|
-
switch (event.code) {
|
|
510
|
-
case 'Escape':
|
|
511
|
-
this.onEscapeKey(event);
|
|
512
|
-
break;
|
|
513
|
-
}
|
|
514
|
-
},
|
|
515
|
-
onArrowDownKey(event) {
|
|
516
|
-
const optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
|
|
517
|
-
|
|
518
|
-
if (event.shiftKey) {
|
|
519
|
-
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
523
|
-
|
|
524
|
-
!this.overlayVisible && this.show();
|
|
525
482
|
event.preventDefault();
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
this.overlayVisible && this.hide();
|
|
534
|
-
event.preventDefault();
|
|
535
|
-
} else {
|
|
536
|
-
const optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
|
|
537
|
-
|
|
538
|
-
if (event.shiftKey) {
|
|
539
|
-
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
543
|
-
|
|
544
|
-
!this.overlayVisible && this.show();
|
|
545
|
-
event.preventDefault();
|
|
546
|
-
}
|
|
547
|
-
},
|
|
548
|
-
onArrowLeftKey(event, pressedInInputText = false) {
|
|
549
|
-
pressedInInputText && (this.focusedOptionIndex = -1);
|
|
550
|
-
},
|
|
551
|
-
onHomeKey(event, pressedInInputText = false) {
|
|
552
|
-
const { currentTarget } = event;
|
|
553
|
-
|
|
554
|
-
if (pressedInInputText) {
|
|
555
|
-
const len = currentTarget.value.length;
|
|
556
|
-
|
|
557
|
-
currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
|
|
558
|
-
this.focusedOptionIndex = -1;
|
|
559
|
-
} else {
|
|
560
|
-
let metaKey = event.metaKey || event.ctrlKey;
|
|
561
|
-
let optionIndex = this.findFirstOptionIndex();
|
|
562
|
-
|
|
563
|
-
if (event.shiftKey && metaKey) {
|
|
564
|
-
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
568
|
-
|
|
569
|
-
!this.overlayVisible && this.show();
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
event.preventDefault();
|
|
573
|
-
},
|
|
574
|
-
onEndKey(event, pressedInInputText = false) {
|
|
575
|
-
const { currentTarget } = event;
|
|
576
|
-
|
|
577
|
-
if (pressedInInputText) {
|
|
578
|
-
const len = currentTarget.value.length;
|
|
579
|
-
|
|
580
|
-
currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
|
|
581
|
-
this.focusedOptionIndex = -1;
|
|
582
|
-
} else {
|
|
583
|
-
let metaKey = event.metaKey || event.ctrlKey;
|
|
584
|
-
let optionIndex = this.findLastOptionIndex();
|
|
585
|
-
|
|
586
|
-
if (event.shiftKey && metaKey) {
|
|
587
|
-
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
591
|
-
|
|
592
|
-
!this.overlayVisible && this.show();
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
event.preventDefault();
|
|
596
|
-
},
|
|
597
|
-
onPageUpKey(event) {
|
|
598
|
-
this.scrollInView(0);
|
|
599
|
-
event.preventDefault();
|
|
600
|
-
},
|
|
601
|
-
onPageDownKey(event) {
|
|
602
|
-
this.scrollInView(this.visibleOptions.length - 1);
|
|
603
|
-
event.preventDefault();
|
|
604
|
-
},
|
|
605
|
-
onEnterKey(event) {
|
|
606
|
-
if (!this.overlayVisible) {
|
|
607
|
-
this.onArrowDownKey(event);
|
|
608
|
-
} else {
|
|
609
|
-
if (this.focusedOptionIndex !== -1) {
|
|
610
|
-
if (event.shiftKey) this.onOptionSelectRange(event, this.focusedOptionIndex);
|
|
611
|
-
else this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
event.preventDefault();
|
|
616
|
-
},
|
|
617
|
-
onEscapeKey(event) {
|
|
618
|
-
this.overlayVisible && this.hide(true);
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
if (!metaKey && ObjectUtils.isPrintableCharacter(event.key)) {
|
|
486
|
+
!this.overlayVisible && this.show();
|
|
487
|
+
this.searchOptions(event);
|
|
619
488
|
event.preventDefault();
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
isValidSelectedOption(option) {
|
|
769
|
-
return this.isValidOption(option) && this.isSelected(option);
|
|
770
|
-
},
|
|
771
|
-
isSelected(option) {
|
|
772
|
-
const optionValue = this.getOptionValue(option);
|
|
773
|
-
|
|
774
|
-
return (this.modelValue || []).some((value) => ObjectUtils.equals(value, optionValue, this.equalityKey));
|
|
775
|
-
},
|
|
776
|
-
findFirstOptionIndex() {
|
|
777
|
-
return this.visibleOptions.findIndex((option) => this.isValidOption(option));
|
|
778
|
-
},
|
|
779
|
-
findLastOptionIndex() {
|
|
780
|
-
return ObjectUtils.findLastIndex(this.visibleOptions, (option) => this.isValidOption(option));
|
|
781
|
-
},
|
|
782
|
-
findNextOptionIndex(index) {
|
|
783
|
-
const matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex((option) => this.isValidOption(option)) : -1;
|
|
784
|
-
|
|
785
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
786
|
-
},
|
|
787
|
-
findPrevOptionIndex(index) {
|
|
788
|
-
const matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), (option) => this.isValidOption(option)) : -1;
|
|
789
|
-
|
|
790
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
791
|
-
},
|
|
792
|
-
findFirstSelectedOptionIndex() {
|
|
793
|
-
return this.hasSelectedOption ? this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
|
794
|
-
},
|
|
795
|
-
findLastSelectedOptionIndex() {
|
|
796
|
-
return this.hasSelectedOption ? ObjectUtils.findLastIndex(this.visibleOptions, (option) => this.isValidSelectedOption(option)) : -1;
|
|
797
|
-
},
|
|
798
|
-
findNextSelectedOptionIndex(index) {
|
|
799
|
-
const matchedOptionIndex = this.hasSelectedOption && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
|
800
|
-
|
|
801
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
802
|
-
},
|
|
803
|
-
findPrevSelectedOptionIndex(index) {
|
|
804
|
-
const matchedOptionIndex = this.hasSelectedOption && index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), (option) => this.isValidSelectedOption(option)) : -1;
|
|
805
|
-
|
|
806
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
807
|
-
},
|
|
808
|
-
findNearestSelectedOptionIndex(index, firstCheckUp = false) {
|
|
809
|
-
let matchedOptionIndex = -1;
|
|
810
|
-
|
|
811
|
-
if (this.hasSelectedOption) {
|
|
812
|
-
if (firstCheckUp) {
|
|
813
|
-
matchedOptionIndex = this.findPrevSelectedOptionIndex(index);
|
|
814
|
-
matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;
|
|
815
|
-
} else {
|
|
816
|
-
matchedOptionIndex = this.findNextSelectedOptionIndex(index);
|
|
817
|
-
matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
822
|
-
},
|
|
823
|
-
findFirstFocusedOptionIndex() {
|
|
824
|
-
const selectedIndex = this.findFirstSelectedOptionIndex();
|
|
825
|
-
|
|
826
|
-
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
827
|
-
},
|
|
828
|
-
findLastFocusedOptionIndex() {
|
|
829
|
-
const selectedIndex = this.findLastSelectedOptionIndex();
|
|
830
|
-
|
|
831
|
-
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
832
|
-
},
|
|
833
|
-
searchOptions(event) {
|
|
834
|
-
this.searchValue = (this.searchValue || '') + event.key;
|
|
835
|
-
|
|
836
|
-
let optionIndex = -1;
|
|
837
|
-
|
|
838
|
-
if (this.focusedOptionIndex !== -1) {
|
|
839
|
-
optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex((option) => this.isOptionMatched(option));
|
|
840
|
-
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex((option) => this.isOptionMatched(option)) : optionIndex + this.focusedOptionIndex;
|
|
841
|
-
} else {
|
|
842
|
-
optionIndex = this.visibleOptions.findIndex((option) => this.isOptionMatched(option));
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
if (optionIndex === -1 && this.focusedOptionIndex === -1) {
|
|
846
|
-
optionIndex = this.findFirstFocusedOptionIndex();
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
if (optionIndex !== -1) {
|
|
850
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
if (this.searchTimeout) {
|
|
854
|
-
clearTimeout(this.searchTimeout);
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
this.searchTimeout = setTimeout(() => {
|
|
858
|
-
this.searchValue = '';
|
|
859
|
-
this.searchTimeout = null;
|
|
860
|
-
}, 500);
|
|
861
|
-
},
|
|
862
|
-
changeFocusedOptionIndex(event, index) {
|
|
863
|
-
if (this.focusedOptionIndex !== index) {
|
|
864
|
-
this.focusedOptionIndex = index;
|
|
865
|
-
this.scrollInView();
|
|
866
|
-
}
|
|
867
|
-
},
|
|
868
|
-
scrollInView(index = -1) {
|
|
869
|
-
const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;
|
|
870
|
-
const element = DomHandler.findSingle(this.list, `li[id="${id}"]`);
|
|
871
|
-
|
|
872
|
-
if (element) {
|
|
873
|
-
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
874
|
-
} else if (!this.virtualScrollerDisabled) {
|
|
875
|
-
this.virtualScroller && this.virtualScroller.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex);
|
|
876
|
-
}
|
|
877
|
-
},
|
|
878
|
-
autoUpdateModel() {
|
|
879
|
-
if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
|
|
880
|
-
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
881
|
-
const value = this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);
|
|
882
|
-
|
|
883
|
-
this.updateModel(null, [value]);
|
|
884
|
-
}
|
|
885
|
-
},
|
|
886
|
-
updateModel(event, value) {
|
|
887
|
-
this.$emit('update:modelValue', value);
|
|
888
|
-
this.$emit('change', { originalEvent: event, value });
|
|
889
|
-
},
|
|
890
|
-
flatOptions(options) {
|
|
891
|
-
return (options || []).reduce((result, option, index) => {
|
|
892
|
-
result.push({ optionGroup: option, group: true, index });
|
|
893
|
-
|
|
894
|
-
const optionGroupChildren = this.getOptionGroupChildren(option);
|
|
895
|
-
|
|
896
|
-
optionGroupChildren && optionGroupChildren.forEach((o) => result.push(o));
|
|
897
|
-
|
|
898
|
-
return result;
|
|
899
|
-
}, []);
|
|
900
|
-
},
|
|
901
|
-
overlayRef(el) {
|
|
902
|
-
this.overlay = el;
|
|
903
|
-
},
|
|
904
|
-
listRef(el, contentRef) {
|
|
905
|
-
this.list = el;
|
|
906
|
-
contentRef && contentRef(el); // For VirtualScroller
|
|
907
|
-
},
|
|
908
|
-
virtualScrollerRef(el) {
|
|
909
|
-
this.virtualScroller = el;
|
|
489
|
+
}
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
onContainerClick: function onContainerClick(event) {
|
|
494
|
+
if (this.disabled || this.loading) {
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
if (!this.overlay || !this.overlay.contains(event.target)) {
|
|
498
|
+
this.overlayVisible ? this.hide(true) : this.show(true);
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
onFirstHiddenFocus: function onFirstHiddenFocus(event) {
|
|
502
|
+
var focusableEl = event.relatedTarget === this.$refs.focusInput ? DomHandler.getFirstFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
|
|
503
|
+
DomHandler.focus(focusableEl);
|
|
504
|
+
},
|
|
505
|
+
onLastHiddenFocus: function onLastHiddenFocus(event) {
|
|
506
|
+
var focusableEl = event.relatedTarget === this.$refs.focusInput ? DomHandler.getLastFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
|
|
507
|
+
DomHandler.focus(focusableEl);
|
|
508
|
+
},
|
|
509
|
+
onCloseClick: function onCloseClick() {
|
|
510
|
+
this.hide(true);
|
|
511
|
+
},
|
|
512
|
+
onHeaderCheckboxFocus: function onHeaderCheckboxFocus() {
|
|
513
|
+
this.headerCheckboxFocused = true;
|
|
514
|
+
},
|
|
515
|
+
onHeaderCheckboxBlur: function onHeaderCheckboxBlur() {
|
|
516
|
+
this.headerCheckboxFocused = false;
|
|
517
|
+
},
|
|
518
|
+
onOptionSelect: function onOptionSelect(event, option) {
|
|
519
|
+
var _this4 = this;
|
|
520
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
|
521
|
+
var isFocus = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
522
|
+
if (this.disabled || this.isOptionDisabled(option)) {
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
var selected = this.isSelected(option);
|
|
526
|
+
var value = null;
|
|
527
|
+
if (selected) value = this.modelValue.filter(function (val) {
|
|
528
|
+
return !ObjectUtils.equals(val, _this4.getOptionValue(option), _this4.equalityKey);
|
|
529
|
+
});else value = [].concat(_toConsumableArray(this.modelValue || []), [this.getOptionValue(option)]);
|
|
530
|
+
this.updateModel(event, value);
|
|
531
|
+
index !== -1 && (this.focusedOptionIndex = index);
|
|
532
|
+
isFocus && DomHandler.focus(this.$refs.focusInput);
|
|
533
|
+
},
|
|
534
|
+
onOptionMouseMove: function onOptionMouseMove(event, index) {
|
|
535
|
+
if (this.focusOnHover) {
|
|
536
|
+
this.changeFocusedOptionIndex(event, index);
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
onOptionSelectRange: function onOptionSelectRange(event) {
|
|
540
|
+
var _this5 = this;
|
|
541
|
+
var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
|
|
542
|
+
var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
|
543
|
+
start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
|
|
544
|
+
end === -1 && (end = this.findNearestSelectedOptionIndex(start));
|
|
545
|
+
if (start !== -1 && end !== -1) {
|
|
546
|
+
var rangeStart = Math.min(start, end);
|
|
547
|
+
var rangeEnd = Math.max(start, end);
|
|
548
|
+
var value = this.visibleOptions.slice(rangeStart, rangeEnd + 1).filter(function (option) {
|
|
549
|
+
return _this5.isValidOption(option);
|
|
550
|
+
}).map(function (option) {
|
|
551
|
+
return _this5.getOptionValue(option);
|
|
552
|
+
});
|
|
553
|
+
this.updateModel(event, value);
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
onFilterChange: function onFilterChange(event) {
|
|
557
|
+
var value = event.target.value;
|
|
558
|
+
this.filterValue = value;
|
|
559
|
+
this.focusedOptionIndex = -1;
|
|
560
|
+
this.$emit('filter', {
|
|
561
|
+
originalEvent: event,
|
|
562
|
+
value: value
|
|
563
|
+
});
|
|
564
|
+
!this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
|
|
565
|
+
},
|
|
566
|
+
onFilterKeyDown: function onFilterKeyDown(event) {
|
|
567
|
+
switch (event.code) {
|
|
568
|
+
case 'ArrowDown':
|
|
569
|
+
this.onArrowDownKey(event);
|
|
570
|
+
break;
|
|
571
|
+
case 'ArrowUp':
|
|
572
|
+
this.onArrowUpKey(event, true);
|
|
573
|
+
break;
|
|
574
|
+
case 'ArrowLeft':
|
|
575
|
+
case 'ArrowRight':
|
|
576
|
+
this.onArrowLeftKey(event, true);
|
|
577
|
+
break;
|
|
578
|
+
case 'Home':
|
|
579
|
+
this.onHomeKey(event, true);
|
|
580
|
+
break;
|
|
581
|
+
case 'End':
|
|
582
|
+
this.onEndKey(event, true);
|
|
583
|
+
break;
|
|
584
|
+
case 'Enter':
|
|
585
|
+
this.onEnterKey(event);
|
|
586
|
+
break;
|
|
587
|
+
case 'Escape':
|
|
588
|
+
this.onEscapeKey(event);
|
|
589
|
+
break;
|
|
590
|
+
case 'Tab':
|
|
591
|
+
this.onTabKey(event, true);
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
onFilterBlur: function onFilterBlur() {
|
|
596
|
+
this.focusedOptionIndex = -1;
|
|
597
|
+
},
|
|
598
|
+
onFilterUpdated: function onFilterUpdated() {
|
|
599
|
+
if (this.overlayVisible) {
|
|
600
|
+
this.alignOverlay();
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
onOverlayClick: function onOverlayClick(event) {
|
|
604
|
+
OverlayEventBus.emit('overlay-click', {
|
|
605
|
+
originalEvent: event,
|
|
606
|
+
target: this.$el
|
|
607
|
+
});
|
|
608
|
+
},
|
|
609
|
+
onOverlayKeyDown: function onOverlayKeyDown(event) {
|
|
610
|
+
switch (event.code) {
|
|
611
|
+
case 'Escape':
|
|
612
|
+
this.onEscapeKey(event);
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
onArrowDownKey: function onArrowDownKey(event) {
|
|
617
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
|
|
618
|
+
if (event.shiftKey) {
|
|
619
|
+
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
620
|
+
}
|
|
621
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
622
|
+
!this.overlayVisible && this.show();
|
|
623
|
+
event.preventDefault();
|
|
624
|
+
},
|
|
625
|
+
onArrowUpKey: function onArrowUpKey(event) {
|
|
626
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
627
|
+
if (event.altKey && !pressedInInputText) {
|
|
628
|
+
if (this.focusedOptionIndex !== -1) {
|
|
629
|
+
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
630
|
+
}
|
|
631
|
+
this.overlayVisible && this.hide();
|
|
632
|
+
event.preventDefault();
|
|
633
|
+
} else {
|
|
634
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
|
|
635
|
+
if (event.shiftKey) {
|
|
636
|
+
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
910
637
|
}
|
|
638
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
639
|
+
!this.overlayVisible && this.show();
|
|
640
|
+
event.preventDefault();
|
|
641
|
+
}
|
|
911
642
|
},
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
643
|
+
onArrowLeftKey: function onArrowLeftKey(event) {
|
|
644
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
645
|
+
pressedInInputText && (this.focusedOptionIndex = -1);
|
|
646
|
+
},
|
|
647
|
+
onHomeKey: function onHomeKey(event) {
|
|
648
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
649
|
+
var currentTarget = event.currentTarget;
|
|
650
|
+
if (pressedInInputText) {
|
|
651
|
+
var len = currentTarget.value.length;
|
|
652
|
+
currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
|
|
653
|
+
this.focusedOptionIndex = -1;
|
|
654
|
+
} else {
|
|
655
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
656
|
+
var optionIndex = this.findFirstOptionIndex();
|
|
657
|
+
if (event.shiftKey && metaKey) {
|
|
658
|
+
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
|
|
659
|
+
}
|
|
660
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
661
|
+
!this.overlayVisible && this.show();
|
|
662
|
+
}
|
|
663
|
+
event.preventDefault();
|
|
664
|
+
},
|
|
665
|
+
onEndKey: function onEndKey(event) {
|
|
666
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
667
|
+
var currentTarget = event.currentTarget;
|
|
668
|
+
if (pressedInInputText) {
|
|
669
|
+
var len = currentTarget.value.length;
|
|
670
|
+
currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
|
|
671
|
+
this.focusedOptionIndex = -1;
|
|
672
|
+
} else {
|
|
673
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
674
|
+
var optionIndex = this.findLastOptionIndex();
|
|
675
|
+
if (event.shiftKey && metaKey) {
|
|
676
|
+
this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
|
|
677
|
+
}
|
|
678
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
679
|
+
!this.overlayVisible && this.show();
|
|
680
|
+
}
|
|
681
|
+
event.preventDefault();
|
|
682
|
+
},
|
|
683
|
+
onPageUpKey: function onPageUpKey(event) {
|
|
684
|
+
this.scrollInView(0);
|
|
685
|
+
event.preventDefault();
|
|
686
|
+
},
|
|
687
|
+
onPageDownKey: function onPageDownKey(event) {
|
|
688
|
+
this.scrollInView(this.visibleOptions.length - 1);
|
|
689
|
+
event.preventDefault();
|
|
690
|
+
},
|
|
691
|
+
onEnterKey: function onEnterKey(event) {
|
|
692
|
+
if (!this.overlayVisible) {
|
|
693
|
+
this.onArrowDownKey(event);
|
|
694
|
+
} else {
|
|
695
|
+
if (this.focusedOptionIndex !== -1) {
|
|
696
|
+
if (event.shiftKey) this.onOptionSelectRange(event, this.focusedOptionIndex);else this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
event.preventDefault();
|
|
700
|
+
},
|
|
701
|
+
onEscapeKey: function onEscapeKey(event) {
|
|
702
|
+
this.overlayVisible && this.hide(true);
|
|
703
|
+
event.preventDefault();
|
|
704
|
+
},
|
|
705
|
+
onTabKey: function onTabKey(event) {
|
|
706
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
707
|
+
if (!pressedInInputText) {
|
|
708
|
+
if (this.overlayVisible && this.hasFocusableElements()) {
|
|
709
|
+
DomHandler.focus(event.shiftKey ? this.$refs.lastHiddenFocusableElementOnOverlay : this.$refs.firstHiddenFocusableElementOnOverlay);
|
|
710
|
+
event.preventDefault();
|
|
711
|
+
} else {
|
|
712
|
+
if (this.focusedOptionIndex !== -1) {
|
|
713
|
+
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
714
|
+
}
|
|
715
|
+
this.overlayVisible && this.hide(this.filter);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
onShiftKey: function onShiftKey() {
|
|
720
|
+
this.startRangeIndex = this.focusedOptionIndex;
|
|
721
|
+
},
|
|
722
|
+
onOverlayEnter: function onOverlayEnter(el) {
|
|
723
|
+
ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
|
|
724
|
+
DomHandler.addStyles(el, {
|
|
725
|
+
position: 'absolute',
|
|
726
|
+
top: '0',
|
|
727
|
+
left: '0'
|
|
728
|
+
});
|
|
729
|
+
this.alignOverlay();
|
|
730
|
+
this.scrollInView();
|
|
731
|
+
this.autoFilterFocus && DomHandler.focus(this.$refs.filterInput);
|
|
732
|
+
},
|
|
733
|
+
onOverlayAfterEnter: function onOverlayAfterEnter() {
|
|
734
|
+
this.bindOutsideClickListener();
|
|
735
|
+
this.bindScrollListener();
|
|
736
|
+
this.bindResizeListener();
|
|
737
|
+
this.$emit('show');
|
|
738
|
+
},
|
|
739
|
+
onOverlayLeave: function onOverlayLeave() {
|
|
740
|
+
this.unbindOutsideClickListener();
|
|
741
|
+
this.unbindScrollListener();
|
|
742
|
+
this.unbindResizeListener();
|
|
743
|
+
this.$emit('hide');
|
|
744
|
+
this.overlay = null;
|
|
745
|
+
},
|
|
746
|
+
onOverlayAfterLeave: function onOverlayAfterLeave(el) {
|
|
747
|
+
ZIndexUtils.clear(el);
|
|
748
|
+
},
|
|
749
|
+
alignOverlay: function alignOverlay() {
|
|
750
|
+
if (this.appendTo === 'self') {
|
|
751
|
+
DomHandler.relativePosition(this.overlay, this.$el);
|
|
752
|
+
} else {
|
|
753
|
+
this.overlay.style.minWidth = DomHandler.getOuterWidth(this.$el) + 'px';
|
|
754
|
+
DomHandler.absolutePosition(this.overlay, this.$el);
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
758
|
+
var _this6 = this;
|
|
759
|
+
if (!this.outsideClickListener) {
|
|
760
|
+
this.outsideClickListener = function (event) {
|
|
761
|
+
if (_this6.overlayVisible && _this6.isOutsideClicked(event)) {
|
|
762
|
+
_this6.hide();
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
document.addEventListener('click', this.outsideClickListener);
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
unbindOutsideClickListener: function unbindOutsideClickListener() {
|
|
769
|
+
if (this.outsideClickListener) {
|
|
770
|
+
document.removeEventListener('click', this.outsideClickListener);
|
|
771
|
+
this.outsideClickListener = null;
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
bindScrollListener: function bindScrollListener() {
|
|
775
|
+
var _this7 = this;
|
|
776
|
+
if (!this.scrollHandler) {
|
|
777
|
+
this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function () {
|
|
778
|
+
if (_this7.overlayVisible) {
|
|
779
|
+
_this7.hide();
|
|
780
|
+
}
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
this.scrollHandler.bindScrollListener();
|
|
784
|
+
},
|
|
785
|
+
unbindScrollListener: function unbindScrollListener() {
|
|
786
|
+
if (this.scrollHandler) {
|
|
787
|
+
this.scrollHandler.unbindScrollListener();
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
bindResizeListener: function bindResizeListener() {
|
|
791
|
+
var _this8 = this;
|
|
792
|
+
if (!this.resizeListener) {
|
|
793
|
+
this.resizeListener = function () {
|
|
794
|
+
if (_this8.overlayVisible && !DomHandler.isTouchDevice()) {
|
|
795
|
+
_this8.hide();
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
window.addEventListener('resize', this.resizeListener);
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
unbindResizeListener: function unbindResizeListener() {
|
|
802
|
+
if (this.resizeListener) {
|
|
803
|
+
window.removeEventListener('resize', this.resizeListener);
|
|
804
|
+
this.resizeListener = null;
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
isOutsideClicked: function isOutsideClicked(event) {
|
|
808
|
+
return !(this.$el.isSameNode(event.target) || this.$el.contains(event.target) || this.overlay && this.overlay.contains(event.target));
|
|
809
|
+
},
|
|
810
|
+
getLabelByValue: function getLabelByValue(value) {
|
|
811
|
+
var _this9 = this;
|
|
812
|
+
var options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
|
|
813
|
+
var matchedOption = options.find(function (option) {
|
|
814
|
+
return !_this9.isOptionGroup(option) && ObjectUtils.equals(_this9.getOptionValue(option), value, _this9.equalityKey);
|
|
815
|
+
});
|
|
816
|
+
return matchedOption ? this.getOptionLabel(matchedOption) : null;
|
|
817
|
+
},
|
|
818
|
+
getSelectedItemsLabel: function getSelectedItemsLabel() {
|
|
819
|
+
var pattern = /{(.*?)}/;
|
|
820
|
+
if (pattern.test(this.selectedItemsLabel)) {
|
|
821
|
+
return this.selectedItemsLabel.replace(this.selectedItemsLabel.match(pattern)[0], this.modelValue.length + '');
|
|
822
|
+
}
|
|
823
|
+
return this.selectedItemsLabel;
|
|
824
|
+
},
|
|
825
|
+
onToggleAll: function onToggleAll(event) {
|
|
826
|
+
var _this10 = this;
|
|
827
|
+
if (this.selectAll !== null) {
|
|
828
|
+
this.$emit('selectall-change', {
|
|
829
|
+
originalEvent: event,
|
|
830
|
+
checked: !this.allSelected
|
|
831
|
+
});
|
|
832
|
+
} else {
|
|
833
|
+
var value = this.allSelected ? [] : this.visibleOptions.filter(function (option) {
|
|
834
|
+
return _this10.isValidOption(option);
|
|
835
|
+
}).map(function (option) {
|
|
836
|
+
return _this10.getOptionValue(option);
|
|
837
|
+
});
|
|
838
|
+
this.updateModel(event, value);
|
|
839
|
+
}
|
|
840
|
+
this.headerCheckboxFocused = true;
|
|
841
|
+
},
|
|
842
|
+
removeOption: function removeOption(event, optionValue) {
|
|
843
|
+
var _this11 = this;
|
|
844
|
+
var value = this.modelValue.filter(function (val) {
|
|
845
|
+
return !ObjectUtils.equals(val, optionValue, _this11.equalityKey);
|
|
846
|
+
});
|
|
847
|
+
this.updateModel(event, value);
|
|
848
|
+
},
|
|
849
|
+
clearFilter: function clearFilter() {
|
|
850
|
+
this.filterValue = null;
|
|
851
|
+
},
|
|
852
|
+
hasFocusableElements: function hasFocusableElements() {
|
|
853
|
+
return DomHandler.getFocusableElements(this.overlay, ':not([data-p-hidden-focusable="true"])').length > 0;
|
|
854
|
+
},
|
|
855
|
+
isOptionMatched: function isOptionMatched(option) {
|
|
856
|
+
return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
|
|
857
|
+
},
|
|
858
|
+
isValidOption: function isValidOption(option) {
|
|
859
|
+
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
860
|
+
},
|
|
861
|
+
isValidSelectedOption: function isValidSelectedOption(option) {
|
|
862
|
+
return this.isValidOption(option) && this.isSelected(option);
|
|
863
|
+
},
|
|
864
|
+
isSelected: function isSelected(option) {
|
|
865
|
+
var _this12 = this;
|
|
866
|
+
var optionValue = this.getOptionValue(option);
|
|
867
|
+
return (this.modelValue || []).some(function (value) {
|
|
868
|
+
return ObjectUtils.equals(value, optionValue, _this12.equalityKey);
|
|
869
|
+
});
|
|
870
|
+
},
|
|
871
|
+
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
872
|
+
var _this13 = this;
|
|
873
|
+
return this.visibleOptions.findIndex(function (option) {
|
|
874
|
+
return _this13.isValidOption(option);
|
|
875
|
+
});
|
|
876
|
+
},
|
|
877
|
+
findLastOptionIndex: function findLastOptionIndex() {
|
|
878
|
+
var _this14 = this;
|
|
879
|
+
return ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
|
|
880
|
+
return _this14.isValidOption(option);
|
|
881
|
+
});
|
|
882
|
+
},
|
|
883
|
+
findNextOptionIndex: function findNextOptionIndex(index) {
|
|
884
|
+
var _this15 = this;
|
|
885
|
+
var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
886
|
+
return _this15.isValidOption(option);
|
|
887
|
+
}) : -1;
|
|
888
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
889
|
+
},
|
|
890
|
+
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
891
|
+
var _this16 = this;
|
|
892
|
+
var matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
893
|
+
return _this16.isValidOption(option);
|
|
894
|
+
}) : -1;
|
|
895
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
896
|
+
},
|
|
897
|
+
findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex() {
|
|
898
|
+
var _this17 = this;
|
|
899
|
+
return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
|
|
900
|
+
return _this17.isValidSelectedOption(option);
|
|
901
|
+
}) : -1;
|
|
902
|
+
},
|
|
903
|
+
findLastSelectedOptionIndex: function findLastSelectedOptionIndex() {
|
|
904
|
+
var _this18 = this;
|
|
905
|
+
return this.hasSelectedOption ? ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
|
|
906
|
+
return _this18.isValidSelectedOption(option);
|
|
907
|
+
}) : -1;
|
|
908
|
+
},
|
|
909
|
+
findNextSelectedOptionIndex: function findNextSelectedOptionIndex(index) {
|
|
910
|
+
var _this19 = this;
|
|
911
|
+
var matchedOptionIndex = this.hasSelectedOption && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
912
|
+
return _this19.isValidSelectedOption(option);
|
|
913
|
+
}) : -1;
|
|
914
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
915
|
+
},
|
|
916
|
+
findPrevSelectedOptionIndex: function findPrevSelectedOptionIndex(index) {
|
|
917
|
+
var _this20 = this;
|
|
918
|
+
var matchedOptionIndex = this.hasSelectedOption && index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
919
|
+
return _this20.isValidSelectedOption(option);
|
|
920
|
+
}) : -1;
|
|
921
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
922
|
+
},
|
|
923
|
+
findNearestSelectedOptionIndex: function findNearestSelectedOptionIndex(index) {
|
|
924
|
+
var firstCheckUp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
925
|
+
var matchedOptionIndex = -1;
|
|
926
|
+
if (this.hasSelectedOption) {
|
|
927
|
+
if (firstCheckUp) {
|
|
928
|
+
matchedOptionIndex = this.findPrevSelectedOptionIndex(index);
|
|
929
|
+
matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;
|
|
930
|
+
} else {
|
|
931
|
+
matchedOptionIndex = this.findNextSelectedOptionIndex(index);
|
|
932
|
+
matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
936
|
+
},
|
|
937
|
+
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
938
|
+
var selectedIndex = this.findFirstSelectedOptionIndex();
|
|
939
|
+
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
940
|
+
},
|
|
941
|
+
findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
|
|
942
|
+
var selectedIndex = this.findLastSelectedOptionIndex();
|
|
943
|
+
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
944
|
+
},
|
|
945
|
+
searchOptions: function searchOptions(event) {
|
|
946
|
+
var _this21 = this;
|
|
947
|
+
this.searchValue = (this.searchValue || '') + event.key;
|
|
948
|
+
var optionIndex = -1;
|
|
949
|
+
if (this.focusedOptionIndex !== -1) {
|
|
950
|
+
optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function (option) {
|
|
951
|
+
return _this21.isOptionMatched(option);
|
|
952
|
+
});
|
|
953
|
+
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function (option) {
|
|
954
|
+
return _this21.isOptionMatched(option);
|
|
955
|
+
}) : optionIndex + this.focusedOptionIndex;
|
|
956
|
+
} else {
|
|
957
|
+
optionIndex = this.visibleOptions.findIndex(function (option) {
|
|
958
|
+
return _this21.isOptionMatched(option);
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
if (optionIndex === -1 && this.focusedOptionIndex === -1) {
|
|
962
|
+
optionIndex = this.findFirstFocusedOptionIndex();
|
|
963
|
+
}
|
|
964
|
+
if (optionIndex !== -1) {
|
|
965
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
966
|
+
}
|
|
967
|
+
if (this.searchTimeout) {
|
|
968
|
+
clearTimeout(this.searchTimeout);
|
|
969
|
+
}
|
|
970
|
+
this.searchTimeout = setTimeout(function () {
|
|
971
|
+
_this21.searchValue = '';
|
|
972
|
+
_this21.searchTimeout = null;
|
|
973
|
+
}, 500);
|
|
974
|
+
},
|
|
975
|
+
changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
|
|
976
|
+
if (this.focusedOptionIndex !== index) {
|
|
977
|
+
this.focusedOptionIndex = index;
|
|
978
|
+
this.scrollInView();
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
scrollInView: function scrollInView() {
|
|
982
|
+
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
983
|
+
var id = index !== -1 ? "".concat(this.id, "_").concat(index) : this.focusedOptionId;
|
|
984
|
+
var element = DomHandler.findSingle(this.list, "li[id=\"".concat(id, "\"]"));
|
|
985
|
+
if (element) {
|
|
986
|
+
element.scrollIntoView && element.scrollIntoView({
|
|
987
|
+
block: 'nearest',
|
|
988
|
+
inline: 'nearest'
|
|
989
|
+
});
|
|
990
|
+
} else if (!this.virtualScrollerDisabled) {
|
|
991
|
+
this.virtualScroller && this.virtualScroller.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex);
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
autoUpdateModel: function autoUpdateModel() {
|
|
995
|
+
if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
|
|
996
|
+
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
997
|
+
var value = this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);
|
|
998
|
+
this.updateModel(null, [value]);
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
updateModel: function updateModel(event, value) {
|
|
1002
|
+
this.$emit('update:modelValue', value);
|
|
1003
|
+
this.$emit('change', {
|
|
1004
|
+
originalEvent: event,
|
|
1005
|
+
value: value
|
|
1006
|
+
});
|
|
1007
|
+
},
|
|
1008
|
+
flatOptions: function flatOptions(options) {
|
|
1009
|
+
var _this22 = this;
|
|
1010
|
+
return (options || []).reduce(function (result, option, index) {
|
|
1011
|
+
result.push({
|
|
1012
|
+
optionGroup: option,
|
|
1013
|
+
group: true,
|
|
1014
|
+
index: index
|
|
1015
|
+
});
|
|
1016
|
+
var optionGroupChildren = _this22.getOptionGroupChildren(option);
|
|
1017
|
+
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
1018
|
+
return result.push(o);
|
|
1019
|
+
});
|
|
1020
|
+
return result;
|
|
1021
|
+
}, []);
|
|
1022
|
+
},
|
|
1023
|
+
overlayRef: function overlayRef(el) {
|
|
1024
|
+
this.overlay = el;
|
|
1025
|
+
},
|
|
1026
|
+
listRef: function listRef(el, contentRef) {
|
|
1027
|
+
this.list = el;
|
|
1028
|
+
contentRef && contentRef(el); // For VirtualScroller
|
|
1029
|
+
},
|
|
1030
|
+
virtualScrollerRef: function virtualScrollerRef(el) {
|
|
1031
|
+
this.virtualScroller = el;
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
computed: {
|
|
1035
|
+
visibleOptions: function visibleOptions() {
|
|
1036
|
+
var _this23 = this;
|
|
1037
|
+
var options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
|
|
1038
|
+
if (this.filterValue) {
|
|
1039
|
+
var filteredOptions = FilterService.filter(options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
|
|
1040
|
+
if (this.optionGroupLabel) {
|
|
1041
|
+
var optionGroups = this.options || [];
|
|
1042
|
+
var filtered = [];
|
|
1043
|
+
optionGroups.forEach(function (group) {
|
|
1044
|
+
var groupChildren = _this23.getOptionGroupChildren(group);
|
|
1045
|
+
var filteredItems = groupChildren.filter(function (item) {
|
|
1046
|
+
return filteredOptions.includes(item);
|
|
1047
|
+
});
|
|
1048
|
+
if (filteredItems.length > 0) filtered.push(_objectSpread$1(_objectSpread$1({}, group), {}, _defineProperty$1({}, typeof _this23.optionGroupChildren === 'string' ? _this23.optionGroupChildren : 'items', _toConsumableArray(filteredItems))));
|
|
1049
|
+
});
|
|
1050
|
+
return this.flatOptions(filtered);
|
|
1051
|
+
}
|
|
1052
|
+
return filteredOptions;
|
|
1053
|
+
}
|
|
1054
|
+
return options;
|
|
1055
|
+
},
|
|
1056
|
+
label: function label() {
|
|
1057
|
+
// TODO: Refactor
|
|
1058
|
+
var label;
|
|
1059
|
+
if (this.modelValue && this.modelValue.length) {
|
|
1060
|
+
if (ObjectUtils.isNotEmpty(this.maxSelectedLabels) && this.modelValue.length > this.maxSelectedLabels) {
|
|
1061
|
+
return this.getSelectedItemsLabel();
|
|
1062
|
+
} else {
|
|
1063
|
+
label = '';
|
|
1064
|
+
for (var i = 0; i < this.modelValue.length; i++) {
|
|
1065
|
+
if (i !== 0) {
|
|
1066
|
+
label += ', ';
|
|
999
1067
|
}
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
},
|
|
1003
|
-
chipSelectedItems() {
|
|
1004
|
-
return ObjectUtils.isNotEmpty(this.maxSelectedLabels) && this.modelValue && this.modelValue.length > this.maxSelectedLabels ? this.modelValue.slice(0, this.maxSelectedLabels) : this.modelValue;
|
|
1005
|
-
},
|
|
1006
|
-
allSelected() {
|
|
1007
|
-
return this.selectAll !== null ? this.selectAll : ObjectUtils.isNotEmpty(this.visibleOptions) && this.visibleOptions.every((option) => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option));
|
|
1008
|
-
},
|
|
1009
|
-
hasSelectedOption() {
|
|
1010
|
-
return ObjectUtils.isNotEmpty(this.modelValue);
|
|
1011
|
-
},
|
|
1012
|
-
equalityKey() {
|
|
1013
|
-
return this.optionValue ? null : this.dataKey;
|
|
1014
|
-
},
|
|
1015
|
-
searchFields() {
|
|
1016
|
-
return this.filterFields || [this.optionLabel];
|
|
1017
|
-
},
|
|
1018
|
-
maxSelectionLimitReached() {
|
|
1019
|
-
return this.selectionLimit && this.modelValue && this.modelValue.length === this.selectionLimit;
|
|
1020
|
-
},
|
|
1021
|
-
filterResultMessageText() {
|
|
1022
|
-
return ObjectUtils.isNotEmpty(this.visibleOptions) ? this.filterMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptyFilterMessageText;
|
|
1023
|
-
},
|
|
1024
|
-
filterMessageText() {
|
|
1025
|
-
return this.filterMessage || this.$primevue.config.locale.searchMessage || '';
|
|
1026
|
-
},
|
|
1027
|
-
emptyFilterMessageText() {
|
|
1028
|
-
return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || '';
|
|
1029
|
-
},
|
|
1030
|
-
emptyMessageText() {
|
|
1031
|
-
return this.emptyMessage || this.$primevue.config.locale.emptyMessage || '';
|
|
1032
|
-
},
|
|
1033
|
-
selectionMessageText() {
|
|
1034
|
-
return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
|
|
1035
|
-
},
|
|
1036
|
-
emptySelectionMessageText() {
|
|
1037
|
-
return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
|
|
1038
|
-
},
|
|
1039
|
-
selectedMessageText() {
|
|
1040
|
-
return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.modelValue.length) : this.emptySelectionMessageText;
|
|
1041
|
-
},
|
|
1042
|
-
focusedOptionId() {
|
|
1043
|
-
return this.focusedOptionIndex !== -1 ? `${this.id}_${this.focusedOptionIndex}` : null;
|
|
1044
|
-
},
|
|
1045
|
-
ariaSetSize() {
|
|
1046
|
-
return this.visibleOptions.filter((option) => !this.isOptionGroup(option)).length;
|
|
1047
|
-
},
|
|
1048
|
-
toggleAllAriaLabel() {
|
|
1049
|
-
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria[this.allSelected ? 'selectAll' : 'unselectAll'] : undefined;
|
|
1050
|
-
},
|
|
1051
|
-
closeAriaLabel() {
|
|
1052
|
-
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : undefined;
|
|
1053
|
-
},
|
|
1054
|
-
virtualScrollerDisabled() {
|
|
1055
|
-
return !this.virtualScrollerOptions;
|
|
1068
|
+
label += this.getLabelByValue(this.modelValue[i]);
|
|
1069
|
+
}
|
|
1056
1070
|
}
|
|
1071
|
+
} else {
|
|
1072
|
+
label = this.placeholder;
|
|
1073
|
+
}
|
|
1074
|
+
return label;
|
|
1075
|
+
},
|
|
1076
|
+
chipSelectedItems: function chipSelectedItems() {
|
|
1077
|
+
return ObjectUtils.isNotEmpty(this.maxSelectedLabels) && this.modelValue && this.modelValue.length > this.maxSelectedLabels ? this.modelValue.slice(0, this.maxSelectedLabels) : this.modelValue;
|
|
1078
|
+
},
|
|
1079
|
+
allSelected: function allSelected() {
|
|
1080
|
+
var _this24 = this;
|
|
1081
|
+
return this.selectAll !== null ? this.selectAll : ObjectUtils.isNotEmpty(this.visibleOptions) && this.visibleOptions.every(function (option) {
|
|
1082
|
+
return _this24.isOptionGroup(option) || _this24.isOptionDisabled(option) || _this24.isSelected(option);
|
|
1083
|
+
});
|
|
1084
|
+
},
|
|
1085
|
+
hasSelectedOption: function hasSelectedOption() {
|
|
1086
|
+
return ObjectUtils.isNotEmpty(this.modelValue);
|
|
1087
|
+
},
|
|
1088
|
+
equalityKey: function equalityKey() {
|
|
1089
|
+
return this.optionValue ? null : this.dataKey;
|
|
1090
|
+
},
|
|
1091
|
+
searchFields: function searchFields() {
|
|
1092
|
+
return this.filterFields || [this.optionLabel];
|
|
1093
|
+
},
|
|
1094
|
+
maxSelectionLimitReached: function maxSelectionLimitReached() {
|
|
1095
|
+
return this.selectionLimit && this.modelValue && this.modelValue.length === this.selectionLimit;
|
|
1096
|
+
},
|
|
1097
|
+
filterResultMessageText: function filterResultMessageText() {
|
|
1098
|
+
return ObjectUtils.isNotEmpty(this.visibleOptions) ? this.filterMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptyFilterMessageText;
|
|
1099
|
+
},
|
|
1100
|
+
filterMessageText: function filterMessageText() {
|
|
1101
|
+
return this.filterMessage || this.$primevue.config.locale.searchMessage || '';
|
|
1102
|
+
},
|
|
1103
|
+
emptyFilterMessageText: function emptyFilterMessageText() {
|
|
1104
|
+
return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || '';
|
|
1057
1105
|
},
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
},
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1106
|
+
emptyMessageText: function emptyMessageText() {
|
|
1107
|
+
return this.emptyMessage || this.$primevue.config.locale.emptyMessage || '';
|
|
1108
|
+
},
|
|
1109
|
+
selectionMessageText: function selectionMessageText() {
|
|
1110
|
+
return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
|
|
1111
|
+
},
|
|
1112
|
+
emptySelectionMessageText: function emptySelectionMessageText() {
|
|
1113
|
+
return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
|
|
1114
|
+
},
|
|
1115
|
+
selectedMessageText: function selectedMessageText() {
|
|
1116
|
+
return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.modelValue.length) : this.emptySelectionMessageText;
|
|
1117
|
+
},
|
|
1118
|
+
focusedOptionId: function focusedOptionId() {
|
|
1119
|
+
return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
|
|
1120
|
+
},
|
|
1121
|
+
ariaSetSize: function ariaSetSize() {
|
|
1122
|
+
var _this25 = this;
|
|
1123
|
+
return this.visibleOptions.filter(function (option) {
|
|
1124
|
+
return !_this25.isOptionGroup(option);
|
|
1125
|
+
}).length;
|
|
1126
|
+
},
|
|
1127
|
+
toggleAllAriaLabel: function toggleAllAriaLabel() {
|
|
1128
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria[this.allSelected ? 'selectAll' : 'unselectAll'] : undefined;
|
|
1129
|
+
},
|
|
1130
|
+
closeAriaLabel: function closeAriaLabel() {
|
|
1131
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : undefined;
|
|
1132
|
+
},
|
|
1133
|
+
virtualScrollerDisabled: function virtualScrollerDisabled() {
|
|
1134
|
+
return !this.virtualScrollerOptions;
|
|
1070
1135
|
}
|
|
1136
|
+
},
|
|
1137
|
+
directives: {
|
|
1138
|
+
ripple: Ripple
|
|
1139
|
+
},
|
|
1140
|
+
components: {
|
|
1141
|
+
VirtualScroller: VirtualScroller,
|
|
1142
|
+
Portal: Portal,
|
|
1143
|
+
TimesIcon: TimesIcon,
|
|
1144
|
+
SearchIcon: SearchIcon,
|
|
1145
|
+
TimesCircleIcon: TimesCircleIcon,
|
|
1146
|
+
ChevronDownIcon: ChevronDownIcon,
|
|
1147
|
+
SpinnerIcon: SpinnerIcon,
|
|
1148
|
+
CheckIcon: CheckIcon
|
|
1149
|
+
}
|
|
1071
1150
|
};
|
|
1072
1151
|
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1152
|
+
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); }
|
|
1153
|
+
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; }
|
|
1154
|
+
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; }
|
|
1155
|
+
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; }
|
|
1156
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
1157
|
+
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); }
|
|
1158
|
+
var _hoisted_1 = ["id", "disabled", "placeholder", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
|
|
1159
|
+
var _hoisted_2 = ["onClick"];
|
|
1160
|
+
var _hoisted_3 = ["checked", "aria-label"];
|
|
1161
|
+
var _hoisted_4 = ["value", "placeholder", "aria-owns", "aria-activedescendant"];
|
|
1162
|
+
var _hoisted_5 = ["aria-label"];
|
|
1163
|
+
var _hoisted_6 = ["id"];
|
|
1164
|
+
var _hoisted_7 = ["id"];
|
|
1165
|
+
var _hoisted_8 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focused", "data-p-disabled"];
|
|
1082
1166
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
return (openBlock(), createElementBlock("div", mergeProps({
|
|
1167
|
+
var _component_TimesCircleIcon = resolveComponent("TimesCircleIcon");
|
|
1168
|
+
var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
|
|
1169
|
+
var _component_VirtualScroller = resolveComponent("VirtualScroller");
|
|
1170
|
+
var _component_Portal = resolveComponent("Portal");
|
|
1171
|
+
var _directive_ripple = resolveDirective("ripple");
|
|
1172
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
1090
1173
|
ref: "container",
|
|
1091
|
-
class:
|
|
1092
|
-
onClick: _cache[15] || (_cache[15] = (
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
(
|
|
1168
|
-
|
|
1174
|
+
"class": _ctx.cx('root'),
|
|
1175
|
+
onClick: _cache[15] || (_cache[15] = function () {
|
|
1176
|
+
return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
|
|
1177
|
+
})
|
|
1178
|
+
}, _ctx.ptm('root'), {
|
|
1179
|
+
"data-pc-name": "multiselect"
|
|
1180
|
+
}), [createElementVNode("div", mergeProps({
|
|
1181
|
+
"class": "p-hidden-accessible"
|
|
1182
|
+
}, _ctx.ptm('hiddenInputWrapper'), {
|
|
1183
|
+
"data-p-hidden-accessible": true
|
|
1184
|
+
}), [createElementVNode("input", mergeProps({
|
|
1185
|
+
ref: "focusInput",
|
|
1186
|
+
id: _ctx.inputId,
|
|
1187
|
+
type: "text",
|
|
1188
|
+
readonly: "",
|
|
1189
|
+
disabled: _ctx.disabled,
|
|
1190
|
+
placeholder: _ctx.placeholder,
|
|
1191
|
+
tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
|
|
1192
|
+
role: "combobox",
|
|
1193
|
+
"aria-label": _ctx.ariaLabel,
|
|
1194
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
1195
|
+
"aria-haspopup": "listbox",
|
|
1196
|
+
"aria-expanded": $data.overlayVisible,
|
|
1197
|
+
"aria-controls": $data.id + '_list',
|
|
1198
|
+
"aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
|
|
1199
|
+
onFocus: _cache[0] || (_cache[0] = function () {
|
|
1200
|
+
return $options.onFocus && $options.onFocus.apply($options, arguments);
|
|
1201
|
+
}),
|
|
1202
|
+
onBlur: _cache[1] || (_cache[1] = function () {
|
|
1203
|
+
return $options.onBlur && $options.onBlur.apply($options, arguments);
|
|
1204
|
+
}),
|
|
1205
|
+
onKeydown: _cache[2] || (_cache[2] = function () {
|
|
1206
|
+
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
1207
|
+
})
|
|
1208
|
+
}, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('hiddenInput'))), null, 16, _hoisted_1)], 16), createElementVNode("div", mergeProps({
|
|
1209
|
+
"class": _ctx.cx('labelContainer')
|
|
1210
|
+
}, _ctx.ptm('labelContainer')), [createElementVNode("div", mergeProps({
|
|
1211
|
+
"class": _ctx.cx('label')
|
|
1212
|
+
}, _ctx.ptm('label')), [renderSlot(_ctx.$slots, "value", {
|
|
1213
|
+
value: _ctx.modelValue,
|
|
1214
|
+
placeholder: _ctx.placeholder
|
|
1215
|
+
}, function () {
|
|
1216
|
+
return [_ctx.display === 'comma' ? (openBlock(), createElementBlock(Fragment, {
|
|
1217
|
+
key: 0
|
|
1218
|
+
}, [createTextVNode(toDisplayString($options.label || 'empty'), 1)], 64)) : _ctx.display === 'chip' ? (openBlock(), createElementBlock(Fragment, {
|
|
1219
|
+
key: 1
|
|
1220
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList($options.chipSelectedItems, function (item) {
|
|
1221
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
1222
|
+
key: $options.getLabelByValue(item),
|
|
1223
|
+
"class": _ctx.cx('token')
|
|
1224
|
+
}, _ctx.ptm('token')), [renderSlot(_ctx.$slots, "chip", {
|
|
1225
|
+
value: item
|
|
1226
|
+
}, function () {
|
|
1227
|
+
return [createElementVNode("span", mergeProps({
|
|
1228
|
+
"class": _ctx.cx('tokenLabel')
|
|
1229
|
+
}, _ctx.ptm('tokenLabel')), toDisplayString($options.getLabelByValue(item)), 17)];
|
|
1230
|
+
}), !_ctx.disabled ? renderSlot(_ctx.$slots, "removetokenicon", {
|
|
1231
|
+
key: 0,
|
|
1232
|
+
"class": normalizeClass(_ctx.cx('removeTokenIcon')),
|
|
1233
|
+
onClick: function onClick(event) {
|
|
1234
|
+
return $options.removeOption(event, item);
|
|
1235
|
+
}
|
|
1236
|
+
}, function () {
|
|
1237
|
+
return [_ctx.removeTokenIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1238
|
+
key: 0,
|
|
1239
|
+
"class": [_ctx.cx('removeTokenIcon'), _ctx.removeTokenIcon],
|
|
1240
|
+
onClick: withModifiers(function ($event) {
|
|
1241
|
+
return $options.removeOption($event, item);
|
|
1242
|
+
}, ["stop"])
|
|
1243
|
+
}, _ctx.ptm('removeTokenIcon')), null, 16, _hoisted_2)) : (openBlock(), createBlock(_component_TimesCircleIcon, mergeProps({
|
|
1244
|
+
key: 1,
|
|
1245
|
+
"class": _ctx.cx('removeTokenIcon'),
|
|
1246
|
+
onClick: withModifiers(function ($event) {
|
|
1247
|
+
return $options.removeOption($event, item);
|
|
1248
|
+
}, ["stop"])
|
|
1249
|
+
}, _ctx.ptm('removeTokenIcon')), null, 16, ["class", "onClick"]))];
|
|
1250
|
+
}) : createCommentVNode("", true)], 16);
|
|
1251
|
+
}), 128)), !_ctx.modelValue || _ctx.modelValue.length === 0 ? (openBlock(), createElementBlock(Fragment, {
|
|
1252
|
+
key: 0
|
|
1253
|
+
}, [createTextVNode(toDisplayString(_ctx.placeholder || 'empty'), 1)], 64)) : createCommentVNode("", true)], 64)) : createCommentVNode("", true)];
|
|
1254
|
+
})], 16)], 16), createElementVNode("div", mergeProps({
|
|
1255
|
+
"class": _ctx.cx('trigger')
|
|
1256
|
+
}, _ctx.ptm('triggger')), [_ctx.loading ? renderSlot(_ctx.$slots, "loadingicon", {
|
|
1257
|
+
key: 0,
|
|
1258
|
+
"class": normalizeClass(_ctx.cx('loadingIcon'))
|
|
1259
|
+
}, function () {
|
|
1260
|
+
return [_ctx.loadingIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1261
|
+
key: 0,
|
|
1262
|
+
"class": [_ctx.cx('loadingIcon'), 'pi-spin', _ctx.loadingIcon],
|
|
1263
|
+
"aria-hidden": "true"
|
|
1264
|
+
}, _ctx.ptm('loadingIcon')), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
|
|
1265
|
+
key: 1,
|
|
1266
|
+
"class": _ctx.cx('loadingIcon'),
|
|
1267
|
+
spin: "",
|
|
1268
|
+
"aria-hidden": "true"
|
|
1269
|
+
}, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
|
|
1270
|
+
}) : renderSlot(_ctx.$slots, "dropdownicon", {
|
|
1271
|
+
key: 1,
|
|
1272
|
+
"class": normalizeClass(_ctx.cx('dropdownIcon'))
|
|
1273
|
+
}, function () {
|
|
1274
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
|
|
1275
|
+
"class": [_ctx.cx('dropdownIcon'), _ctx.dropdownIcon],
|
|
1276
|
+
"aria-hidden": "true"
|
|
1277
|
+
}, _ctx.ptm('dropdownIcon')), null, 16, ["class"]))];
|
|
1278
|
+
})], 16), createVNode(_component_Portal, {
|
|
1279
|
+
appendTo: _ctx.appendTo
|
|
1280
|
+
}, {
|
|
1281
|
+
"default": withCtx(function () {
|
|
1282
|
+
return [createVNode(Transition, {
|
|
1283
|
+
name: "p-connected-overlay",
|
|
1284
|
+
onEnter: $options.onOverlayEnter,
|
|
1285
|
+
onAfterEnter: $options.onOverlayAfterEnter,
|
|
1286
|
+
onLeave: $options.onOverlayLeave,
|
|
1287
|
+
onAfterLeave: $options.onOverlayAfterLeave
|
|
1288
|
+
}, {
|
|
1289
|
+
"default": withCtx(function () {
|
|
1290
|
+
return [$data.overlayVisible ? (openBlock(), createElementBlock("div", mergeProps({
|
|
1169
1291
|
key: 0,
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
(
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1292
|
+
ref: $options.overlayRef,
|
|
1293
|
+
style: _ctx.panelStyle,
|
|
1294
|
+
"class": [_ctx.cx('panel'), _ctx.panelClass],
|
|
1295
|
+
onClick: _cache[13] || (_cache[13] = function () {
|
|
1296
|
+
return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
|
|
1297
|
+
}),
|
|
1298
|
+
onKeydown: _cache[14] || (_cache[14] = function () {
|
|
1299
|
+
return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
|
|
1300
|
+
})
|
|
1301
|
+
}, _objectSpread(_objectSpread({}, _ctx.panelProps), _ctx.ptm('panel'))), [createElementVNode("span", mergeProps({
|
|
1302
|
+
ref: "firstHiddenFocusableElementOnOverlay",
|
|
1303
|
+
role: "presentation",
|
|
1304
|
+
"aria-hidden": "true",
|
|
1305
|
+
"class": "p-hidden-accessible p-hidden-focusable",
|
|
1306
|
+
tabindex: 0,
|
|
1307
|
+
onFocus: _cache[3] || (_cache[3] = function () {
|
|
1308
|
+
return $options.onFirstHiddenFocus && $options.onFirstHiddenFocus.apply($options, arguments);
|
|
1309
|
+
})
|
|
1310
|
+
}, _ctx.ptm('hiddenFirstFocusableEl'), {
|
|
1311
|
+
"data-p-hidden-accessible": true,
|
|
1312
|
+
"data-p-hidden-focusable": true
|
|
1313
|
+
}), null, 16), renderSlot(_ctx.$slots, "header", {
|
|
1314
|
+
value: _ctx.modelValue,
|
|
1315
|
+
options: $options.visibleOptions
|
|
1316
|
+
}), _ctx.showToggleAll && _ctx.selectionLimit == null || _ctx.filter ? (openBlock(), createElementBlock("div", mergeProps({
|
|
1317
|
+
key: 0,
|
|
1318
|
+
"class": _ctx.cx('header')
|
|
1319
|
+
}, _ctx.ptm('header')), [_ctx.showToggleAll && _ctx.selectionLimit == null ? (openBlock(), createElementBlock("div", mergeProps({
|
|
1320
|
+
key: 0,
|
|
1321
|
+
"class": _ctx.cx('headerCheckboxContainer'),
|
|
1322
|
+
onClick: _cache[6] || (_cache[6] = function () {
|
|
1323
|
+
return $options.onToggleAll && $options.onToggleAll.apply($options, arguments);
|
|
1324
|
+
})
|
|
1325
|
+
}, _ctx.ptm('headerCheckboxContainer')), [createElementVNode("div", mergeProps({
|
|
1326
|
+
"class": "p-hidden-accessible"
|
|
1327
|
+
}, _ctx.ptm('hiddenInputWrapper'), {
|
|
1328
|
+
"data-p-hidden-accessible": true
|
|
1329
|
+
}), [createElementVNode("input", mergeProps({
|
|
1330
|
+
type: "checkbox",
|
|
1331
|
+
readonly: "",
|
|
1332
|
+
checked: $options.allSelected,
|
|
1333
|
+
"aria-label": $options.toggleAllAriaLabel,
|
|
1334
|
+
onFocus: _cache[4] || (_cache[4] = function () {
|
|
1335
|
+
return $options.onHeaderCheckboxFocus && $options.onHeaderCheckboxFocus.apply($options, arguments);
|
|
1336
|
+
}),
|
|
1337
|
+
onBlur: _cache[5] || (_cache[5] = function () {
|
|
1338
|
+
return $options.onHeaderCheckboxBlur && $options.onHeaderCheckboxBlur.apply($options, arguments);
|
|
1339
|
+
})
|
|
1340
|
+
}, _ctx.ptm('headerCheckbox')), null, 16, _hoisted_3)], 16), createElementVNode("div", mergeProps({
|
|
1341
|
+
"class": _ctx.cx('headerCheckbox')
|
|
1342
|
+
}, $options.getHeaderCheckboxPTOptions('headerCheckbox')), [renderSlot(_ctx.$slots, "headercheckboxicon", {
|
|
1343
|
+
allSelected: $options.allSelected,
|
|
1344
|
+
"class": normalizeClass(_ctx.cx('headerCheckboxIcon'))
|
|
1345
|
+
}, function () {
|
|
1346
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.checkboxIcon ? 'span' : 'CheckIcon'), mergeProps({
|
|
1347
|
+
"class": [_ctx.cx('headerCheckboxIcon'), _defineProperty({}, _ctx.checkboxIcon, $options.allSelected)]
|
|
1348
|
+
}, $options.getHeaderCheckboxPTOptions('headerCheckboxIcon')), null, 16, ["class"]))];
|
|
1349
|
+
})], 16)], 16)) : createCommentVNode("", true), _ctx.filter ? (openBlock(), createElementBlock("div", mergeProps({
|
|
1186
1350
|
key: 1,
|
|
1187
|
-
class:
|
|
1188
|
-
}, ()
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1351
|
+
"class": _ctx.cx('filterContainer')
|
|
1352
|
+
}, _ctx.ptm('filterContainer')), [createElementVNode("input", mergeProps({
|
|
1353
|
+
ref: "filterInput",
|
|
1354
|
+
type: "text",
|
|
1355
|
+
value: $data.filterValue,
|
|
1356
|
+
onVnodeMounted: _cache[7] || (_cache[7] = function () {
|
|
1357
|
+
return $options.onFilterUpdated && $options.onFilterUpdated.apply($options, arguments);
|
|
1358
|
+
}),
|
|
1359
|
+
"class": _ctx.cx('filterInput'),
|
|
1360
|
+
placeholder: _ctx.filterPlaceholder,
|
|
1361
|
+
role: "searchbox",
|
|
1362
|
+
autocomplete: "off",
|
|
1363
|
+
"aria-owns": $data.id + '_list',
|
|
1364
|
+
"aria-activedescendant": $options.focusedOptionId,
|
|
1365
|
+
onKeydown: _cache[8] || (_cache[8] = function () {
|
|
1366
|
+
return $options.onFilterKeyDown && $options.onFilterKeyDown.apply($options, arguments);
|
|
1367
|
+
}),
|
|
1368
|
+
onBlur: _cache[9] || (_cache[9] = function () {
|
|
1369
|
+
return $options.onFilterBlur && $options.onFilterBlur.apply($options, arguments);
|
|
1370
|
+
}),
|
|
1371
|
+
onInput: _cache[10] || (_cache[10] = function () {
|
|
1372
|
+
return $options.onFilterChange && $options.onFilterChange.apply($options, arguments);
|
|
1373
|
+
})
|
|
1374
|
+
}, _objectSpread(_objectSpread({}, _ctx.filterInputProps), _ctx.ptm('filterInput'))), null, 16, _hoisted_4), renderSlot(_ctx.$slots, "filtericon", {
|
|
1375
|
+
"class": normalizeClass(_ctx.cx('filterIcon'))
|
|
1376
|
+
}, function () {
|
|
1377
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.filterIcon ? 'span' : 'SearchIcon'), mergeProps({
|
|
1378
|
+
"class": [_ctx.cx('filterIcon'), _ctx.filterIcon]
|
|
1379
|
+
}, _ctx.ptm('filterIcon')), null, 16, ["class"]))];
|
|
1380
|
+
})], 16)) : createCommentVNode("", true), _ctx.filter ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1381
|
+
key: 2,
|
|
1382
|
+
role: "status",
|
|
1383
|
+
"aria-live": "polite",
|
|
1384
|
+
"class": "p-hidden-accessible"
|
|
1385
|
+
}, _ctx.ptm('hiddenFilterResult'), {
|
|
1386
|
+
"data-p-hidden-accessible": true
|
|
1387
|
+
}), toDisplayString($options.filterResultMessageText), 17)) : createCommentVNode("", true), withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
1388
|
+
"class": _ctx.cx('closeButton'),
|
|
1389
|
+
"aria-label": $options.closeAriaLabel,
|
|
1390
|
+
onClick: _cache[11] || (_cache[11] = function () {
|
|
1391
|
+
return $options.onCloseClick && $options.onCloseClick.apply($options, arguments);
|
|
1392
|
+
}),
|
|
1393
|
+
type: "button"
|
|
1394
|
+
}, _objectSpread(_objectSpread({}, _ctx.closeButtonProps), _ctx.ptm('closeButton'))), [renderSlot(_ctx.$slots, "closeicon", {
|
|
1395
|
+
"class": normalizeClass(_ctx.cx('closeIcon'))
|
|
1396
|
+
}, function () {
|
|
1397
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon ? 'span' : 'TimesIcon'), mergeProps({
|
|
1398
|
+
"class": [_ctx.cx('closeIcon'), _ctx.closeIcon]
|
|
1399
|
+
}, _ctx.ptm('closeIcon')), null, 16, ["class"]))];
|
|
1400
|
+
})], 16, _hoisted_5)), [[_directive_ripple]])], 16)) : createCommentVNode("", true), createElementVNode("div", mergeProps({
|
|
1401
|
+
"class": _ctx.cx('wrapper'),
|
|
1402
|
+
style: {
|
|
1403
|
+
'max-height': $options.virtualScrollerDisabled ? _ctx.scrollHeight : ''
|
|
1404
|
+
}
|
|
1405
|
+
}, _ctx.ptm('wrapper')), [createVNode(_component_VirtualScroller, mergeProps({
|
|
1406
|
+
ref: $options.virtualScrollerRef
|
|
1407
|
+
}, _ctx.virtualScrollerOptions, {
|
|
1408
|
+
items: $options.visibleOptions,
|
|
1409
|
+
style: {
|
|
1410
|
+
height: _ctx.scrollHeight
|
|
1411
|
+
},
|
|
1412
|
+
tabindex: -1,
|
|
1413
|
+
disabled: $options.virtualScrollerDisabled,
|
|
1414
|
+
pt: _ctx.ptm('virtualScroller')
|
|
1415
|
+
}), createSlots({
|
|
1416
|
+
content: withCtx(function (_ref2) {
|
|
1417
|
+
var styleClass = _ref2.styleClass,
|
|
1418
|
+
contentRef = _ref2.contentRef,
|
|
1419
|
+
items = _ref2.items,
|
|
1420
|
+
getItemOptions = _ref2.getItemOptions,
|
|
1421
|
+
contentStyle = _ref2.contentStyle,
|
|
1422
|
+
itemSize = _ref2.itemSize;
|
|
1423
|
+
return [createElementVNode("ul", mergeProps({
|
|
1424
|
+
ref: function ref(el) {
|
|
1425
|
+
return $options.listRef(el, contentRef);
|
|
1426
|
+
},
|
|
1427
|
+
id: $data.id + '_list',
|
|
1428
|
+
"class": [_ctx.cx('list'), styleClass],
|
|
1429
|
+
style: contentStyle,
|
|
1430
|
+
role: "listbox",
|
|
1431
|
+
"aria-multiselectable": "true"
|
|
1432
|
+
}, _ctx.ptm('list')), [(openBlock(true), createElementBlock(Fragment, null, renderList(items, function (option, i) {
|
|
1433
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
1434
|
+
key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
|
|
1435
|
+
}, [$options.isOptionGroup(option) ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1207
1436
|
key: 0,
|
|
1208
|
-
|
|
1209
|
-
style:
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
class: "p-multiselect-header"
|
|
1230
|
-
}, _ctx.ptm('header')), [
|
|
1231
|
-
($props.showToggleAll && $props.selectionLimit == null)
|
|
1232
|
-
? (openBlock(), createElementBlock("div", mergeProps({
|
|
1233
|
-
key: 0,
|
|
1234
|
-
class: $options.headerCheckboxClass,
|
|
1235
|
-
onClick: _cache[6] || (_cache[6] = (...args) => ($options.onToggleAll && $options.onToggleAll(...args)))
|
|
1236
|
-
}, _ctx.ptm('headerCheckboxContainer')), [
|
|
1237
|
-
createElementVNode("div", mergeProps({ class: "p-hidden-accessible" }, _ctx.ptm('hiddenInputWrapper')), [
|
|
1238
|
-
createElementVNode("input", mergeProps({
|
|
1239
|
-
type: "checkbox",
|
|
1240
|
-
readonly: "",
|
|
1241
|
-
checked: $options.allSelected,
|
|
1242
|
-
"aria-label": $options.toggleAllAriaLabel,
|
|
1243
|
-
onFocus: _cache[4] || (_cache[4] = (...args) => ($options.onHeaderCheckboxFocus && $options.onHeaderCheckboxFocus(...args))),
|
|
1244
|
-
onBlur: _cache[5] || (_cache[5] = (...args) => ($options.onHeaderCheckboxBlur && $options.onHeaderCheckboxBlur(...args)))
|
|
1245
|
-
}, _ctx.ptm('headerCheckbox')), null, 16, _hoisted_3)
|
|
1246
|
-
], 16),
|
|
1247
|
-
createElementVNode("div", mergeProps({
|
|
1248
|
-
class: ['p-checkbox-box', { 'p-highlight': $options.allSelected, 'p-focus': $data.headerCheckboxFocused }]
|
|
1249
|
-
}, $options.getHeaderCheckboxPTOptions('headerCheckbox')), [
|
|
1250
|
-
renderSlot(_ctx.$slots, "headercheckboxicon", {
|
|
1251
|
-
allSelected: $options.allSelected,
|
|
1252
|
-
class: "p-checkbox-icon"
|
|
1253
|
-
}, () => [
|
|
1254
|
-
(openBlock(), createBlock(resolveDynamicComponent($props.checkboxIcon ? 'span' : 'CheckIcon'), mergeProps({
|
|
1255
|
-
class: ['p-checkbox-icon', { [$props.checkboxIcon]: $options.allSelected }]
|
|
1256
|
-
}, $options.getHeaderCheckboxPTOptions('headerCheckboxIcon')), null, 16, ["class"]))
|
|
1257
|
-
])
|
|
1258
|
-
], 16)
|
|
1259
|
-
], 16))
|
|
1260
|
-
: createCommentVNode("", true),
|
|
1261
|
-
($props.filter)
|
|
1262
|
-
? (openBlock(), createElementBlock("div", mergeProps({
|
|
1263
|
-
key: 1,
|
|
1264
|
-
class: "p-multiselect-filter-container"
|
|
1265
|
-
}, _ctx.ptm('filterContainer')), [
|
|
1266
|
-
createElementVNode("input", mergeProps({
|
|
1267
|
-
ref: "filterInput",
|
|
1268
|
-
type: "text",
|
|
1269
|
-
value: $data.filterValue,
|
|
1270
|
-
onVnodeMounted: _cache[7] || (_cache[7] = (...args) => ($options.onFilterUpdated && $options.onFilterUpdated(...args))),
|
|
1271
|
-
class: "p-multiselect-filter p-inputtext p-component",
|
|
1272
|
-
placeholder: $props.filterPlaceholder,
|
|
1273
|
-
role: "searchbox",
|
|
1274
|
-
autocomplete: "off",
|
|
1275
|
-
"aria-owns": $data.id + '_list',
|
|
1276
|
-
"aria-activedescendant": $options.focusedOptionId,
|
|
1277
|
-
onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onFilterKeyDown && $options.onFilterKeyDown(...args))),
|
|
1278
|
-
onBlur: _cache[9] || (_cache[9] = (...args) => ($options.onFilterBlur && $options.onFilterBlur(...args))),
|
|
1279
|
-
onInput: _cache[10] || (_cache[10] = (...args) => ($options.onFilterChange && $options.onFilterChange(...args)))
|
|
1280
|
-
}, { ...$props.filterInputProps, ..._ctx.ptm('filterInput') }), null, 16, _hoisted_4),
|
|
1281
|
-
renderSlot(_ctx.$slots, "filtericon", { class: "p-multiselect-filter-icon" }, () => [
|
|
1282
|
-
(openBlock(), createBlock(resolveDynamicComponent($props.filterIcon ? 'span' : 'SearchIcon'), mergeProps({
|
|
1283
|
-
class: ['p-multiselect-filter-icon', $props.filterIcon]
|
|
1284
|
-
}, _ctx.ptm('filterIcon')), null, 16, ["class"]))
|
|
1285
|
-
])
|
|
1286
|
-
], 16))
|
|
1287
|
-
: createCommentVNode("", true),
|
|
1288
|
-
($props.filter)
|
|
1289
|
-
? (openBlock(), createElementBlock("span", mergeProps({
|
|
1290
|
-
key: 2,
|
|
1291
|
-
role: "status",
|
|
1292
|
-
"aria-live": "polite",
|
|
1293
|
-
class: "p-hidden-accessible"
|
|
1294
|
-
}, _ctx.ptm('hiddenFilterResult')), toDisplayString($options.filterResultMessageText), 17))
|
|
1295
|
-
: createCommentVNode("", true),
|
|
1296
|
-
withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
1297
|
-
class: "p-multiselect-close p-link",
|
|
1298
|
-
"aria-label": $options.closeAriaLabel,
|
|
1299
|
-
onClick: _cache[11] || (_cache[11] = (...args) => ($options.onCloseClick && $options.onCloseClick(...args))),
|
|
1300
|
-
type: "button"
|
|
1301
|
-
}, { ...$props.closeButtonProps, ..._ctx.ptm('closeButton') }), [
|
|
1302
|
-
renderSlot(_ctx.$slots, "closeicon", { class: "p-multiselect-close-icon" }, () => [
|
|
1303
|
-
(openBlock(), createBlock(resolveDynamicComponent($props.closeIcon ? 'span' : 'TimesIcon'), mergeProps({
|
|
1304
|
-
class: ['p-multiselect-close-icon', $props.closeIcon]
|
|
1305
|
-
}, _ctx.ptm('closeIcon')), null, 16, ["class"]))
|
|
1306
|
-
])
|
|
1307
|
-
], 16, _hoisted_5)), [
|
|
1308
|
-
[_directive_ripple]
|
|
1309
|
-
])
|
|
1310
|
-
], 16))
|
|
1311
|
-
: createCommentVNode("", true),
|
|
1312
|
-
createElementVNode("div", mergeProps({
|
|
1313
|
-
class: "p-multiselect-items-wrapper",
|
|
1314
|
-
style: { 'max-height': $options.virtualScrollerDisabled ? $props.scrollHeight : '' }
|
|
1315
|
-
}, _ctx.ptm('wrapper')), [
|
|
1316
|
-
createVNode(_component_VirtualScroller, mergeProps({ ref: $options.virtualScrollerRef }, { ...$props.virtualScrollerOptions, ..._ctx.ptm('virtualScroller') }, {
|
|
1317
|
-
items: $options.visibleOptions,
|
|
1318
|
-
style: { height: $props.scrollHeight },
|
|
1319
|
-
tabindex: -1,
|
|
1320
|
-
disabled: $options.virtualScrollerDisabled
|
|
1321
|
-
}), createSlots({
|
|
1322
|
-
content: withCtx(({ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }) => [
|
|
1323
|
-
createElementVNode("ul", mergeProps({
|
|
1324
|
-
ref: (el) => $options.listRef(el, contentRef),
|
|
1325
|
-
id: $data.id + '_list',
|
|
1326
|
-
class: ['p-multiselect-items p-component', styleClass],
|
|
1327
|
-
style: contentStyle,
|
|
1328
|
-
role: "listbox",
|
|
1329
|
-
"aria-multiselectable": "true"
|
|
1330
|
-
}, _ctx.ptm('list')), [
|
|
1331
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(items, (option, i) => {
|
|
1332
|
-
return (openBlock(), createElementBlock(Fragment, {
|
|
1333
|
-
key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
|
|
1334
|
-
}, [
|
|
1335
|
-
($options.isOptionGroup(option))
|
|
1336
|
-
? (openBlock(), createElementBlock("li", mergeProps({
|
|
1337
|
-
key: 0,
|
|
1338
|
-
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1339
|
-
style: { height: itemSize ? itemSize + 'px' : undefined },
|
|
1340
|
-
class: "p-multiselect-item-group",
|
|
1341
|
-
role: "option"
|
|
1342
|
-
}, _ctx.ptm('itemGroup')), [
|
|
1343
|
-
renderSlot(_ctx.$slots, "optiongroup", {
|
|
1344
|
-
option: option.optionGroup,
|
|
1345
|
-
index: $options.getOptionIndex(i, getItemOptions)
|
|
1346
|
-
}, () => [
|
|
1347
|
-
createTextVNode(toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)
|
|
1348
|
-
])
|
|
1349
|
-
], 16, _hoisted_7))
|
|
1350
|
-
: withDirectives((openBlock(), createElementBlock("li", mergeProps({
|
|
1351
|
-
key: 1,
|
|
1352
|
-
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1353
|
-
style: { height: itemSize ? itemSize + 'px' : undefined },
|
|
1354
|
-
class: ['p-multiselect-item', { 'p-highlight': $options.isSelected(option), 'p-focus': $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions), 'p-disabled': $options.isOptionDisabled(option) }],
|
|
1355
|
-
role: "option",
|
|
1356
|
-
"aria-label": $options.getOptionLabel(option),
|
|
1357
|
-
"aria-selected": $options.isSelected(option),
|
|
1358
|
-
"aria-disabled": $options.isOptionDisabled(option),
|
|
1359
|
-
"aria-setsize": $options.ariaSetSize,
|
|
1360
|
-
"aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
|
|
1361
|
-
onClick: $event => ($options.onOptionSelect($event, option, $options.getOptionIndex(i, getItemOptions), true)),
|
|
1362
|
-
onMousemove: $event => ($options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions)))
|
|
1363
|
-
}, $options.getCheckboxPTOptions(option, getItemOptions, i, 'item')), [
|
|
1364
|
-
createElementVNode("div", mergeProps({ class: "p-checkbox p-component" }, _ctx.ptm('checkboxContainer')), [
|
|
1365
|
-
createElementVNode("div", mergeProps({
|
|
1366
|
-
class: ['p-checkbox-box', { 'p-highlight': $options.isSelected(option) }]
|
|
1367
|
-
}, $options.getCheckboxPTOptions(option, getItemOptions, i, 'checkbox')), [
|
|
1368
|
-
renderSlot(_ctx.$slots, "itemcheckboxicon", {
|
|
1369
|
-
selected: $options.isSelected(option),
|
|
1370
|
-
class: "p-checkbox-icon"
|
|
1371
|
-
}, () => [
|
|
1372
|
-
(openBlock(), createBlock(resolveDynamicComponent($props.checkboxIcon ? 'span' : 'CheckIcon'), mergeProps({
|
|
1373
|
-
class: ['p-checkbox-icon', { [$props.checkboxIcon]: $options.isSelected(option) }]
|
|
1374
|
-
}, $options.getCheckboxPTOptions(option, getItemOptions, i, 'checkboxIcon')), null, 16, ["class"]))
|
|
1375
|
-
])
|
|
1376
|
-
], 16)
|
|
1377
|
-
], 16),
|
|
1378
|
-
renderSlot(_ctx.$slots, "option", {
|
|
1379
|
-
option: option,
|
|
1380
|
-
index: $options.getOptionIndex(i, getItemOptions)
|
|
1381
|
-
}, () => [
|
|
1382
|
-
createElementVNode("span", normalizeProps(guardReactiveProps(_ctx.ptm('option'))), toDisplayString($options.getOptionLabel(option)), 17)
|
|
1383
|
-
])
|
|
1384
|
-
], 16, _hoisted_8)), [
|
|
1385
|
-
[_directive_ripple]
|
|
1386
|
-
])
|
|
1387
|
-
], 64))
|
|
1388
|
-
}), 128)),
|
|
1389
|
-
($data.filterValue && (!items || (items && items.length === 0)))
|
|
1390
|
-
? (openBlock(), createElementBlock("li", mergeProps({
|
|
1391
|
-
key: 0,
|
|
1392
|
-
class: "p-multiselect-empty-message",
|
|
1393
|
-
role: "option"
|
|
1394
|
-
}, _ctx.ptm('emptyMessage')), [
|
|
1395
|
-
renderSlot(_ctx.$slots, "emptyfilter", {}, () => [
|
|
1396
|
-
createTextVNode(toDisplayString($options.emptyFilterMessageText), 1)
|
|
1397
|
-
])
|
|
1398
|
-
], 16))
|
|
1399
|
-
: (!$props.options || ($props.options && $props.options.length === 0))
|
|
1400
|
-
? (openBlock(), createElementBlock("li", mergeProps({
|
|
1401
|
-
key: 1,
|
|
1402
|
-
class: "p-multiselect-empty-message",
|
|
1403
|
-
role: "option"
|
|
1404
|
-
}, _ctx.ptm('emptyMessage')), [
|
|
1405
|
-
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
1406
|
-
createTextVNode(toDisplayString($options.emptyMessageText), 1)
|
|
1407
|
-
])
|
|
1408
|
-
], 16))
|
|
1409
|
-
: createCommentVNode("", true)
|
|
1410
|
-
], 16, _hoisted_6)
|
|
1411
|
-
]),
|
|
1412
|
-
_: 2
|
|
1413
|
-
}, [
|
|
1414
|
-
(_ctx.$slots.loader)
|
|
1415
|
-
? {
|
|
1416
|
-
name: "loader",
|
|
1417
|
-
fn: withCtx(({ options }) => [
|
|
1418
|
-
renderSlot(_ctx.$slots, "loader", { options: options })
|
|
1419
|
-
]),
|
|
1420
|
-
key: "0"
|
|
1421
|
-
}
|
|
1422
|
-
: undefined
|
|
1423
|
-
]), 1040, ["items", "style", "disabled"])
|
|
1424
|
-
], 16),
|
|
1425
|
-
renderSlot(_ctx.$slots, "footer", {
|
|
1426
|
-
value: $props.modelValue,
|
|
1427
|
-
options: $options.visibleOptions
|
|
1437
|
+
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1438
|
+
style: {
|
|
1439
|
+
height: itemSize ? itemSize + 'px' : undefined
|
|
1440
|
+
},
|
|
1441
|
+
"class": _ctx.cx('itemGroup'),
|
|
1442
|
+
role: "option"
|
|
1443
|
+
}, _ctx.ptm('itemGroup')), [renderSlot(_ctx.$slots, "optiongroup", {
|
|
1444
|
+
option: option.optionGroup,
|
|
1445
|
+
index: $options.getOptionIndex(i, getItemOptions)
|
|
1446
|
+
}, function () {
|
|
1447
|
+
return [createTextVNode(toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];
|
|
1448
|
+
})], 16, _hoisted_7)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
|
|
1449
|
+
key: 1,
|
|
1450
|
+
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1451
|
+
style: {
|
|
1452
|
+
height: itemSize ? itemSize + 'px' : undefined
|
|
1453
|
+
},
|
|
1454
|
+
"class": _ctx.cx('item', {
|
|
1455
|
+
option: option,
|
|
1456
|
+
index: i,
|
|
1457
|
+
getItemOptions: getItemOptions
|
|
1428
1458
|
}),
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
function
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1459
|
+
role: "option",
|
|
1460
|
+
"aria-label": $options.getOptionLabel(option),
|
|
1461
|
+
"aria-selected": $options.isSelected(option),
|
|
1462
|
+
"aria-disabled": $options.isOptionDisabled(option),
|
|
1463
|
+
"aria-setsize": $options.ariaSetSize,
|
|
1464
|
+
"aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
|
|
1465
|
+
onClick: function onClick($event) {
|
|
1466
|
+
return $options.onOptionSelect($event, option, $options.getOptionIndex(i, getItemOptions), true);
|
|
1467
|
+
},
|
|
1468
|
+
onMousemove: function onMousemove($event) {
|
|
1469
|
+
return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
|
|
1470
|
+
}
|
|
1471
|
+
}, $options.getCheckboxPTOptions(option, getItemOptions, i, 'item'), {
|
|
1472
|
+
"data-p-highlight": $options.isSelected(option),
|
|
1473
|
+
"data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
|
|
1474
|
+
"data-p-disabled": $options.isOptionDisabled(option)
|
|
1475
|
+
}), [createElementVNode("div", mergeProps({
|
|
1476
|
+
"class": _ctx.cx('checkboxContainer')
|
|
1477
|
+
}, _ctx.ptm('checkboxContainer')), [createElementVNode("div", mergeProps({
|
|
1478
|
+
"class": _ctx.cx('checkbox', {
|
|
1479
|
+
option: option
|
|
1480
|
+
})
|
|
1481
|
+
}, $options.getCheckboxPTOptions(option, getItemOptions, i, 'checkbox')), [renderSlot(_ctx.$slots, "itemcheckboxicon", {
|
|
1482
|
+
selected: $options.isSelected(option),
|
|
1483
|
+
"class": normalizeClass(_ctx.cx('checkboxIcon'))
|
|
1484
|
+
}, function () {
|
|
1485
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.checkboxIcon ? 'span' : 'CheckIcon'), mergeProps({
|
|
1486
|
+
"class": [_ctx.cx('checkboxIcon'), _defineProperty({}, _ctx.checkboxIcon, $options.isSelected(option))]
|
|
1487
|
+
}, $options.getCheckboxPTOptions(option, getItemOptions, i, 'checkboxIcon')), null, 16, ["class"]))];
|
|
1488
|
+
})], 16)], 16), renderSlot(_ctx.$slots, "option", {
|
|
1489
|
+
option: option,
|
|
1490
|
+
index: $options.getOptionIndex(i, getItemOptions)
|
|
1491
|
+
}, function () {
|
|
1492
|
+
return [createElementVNode("span", normalizeProps(guardReactiveProps(_ctx.ptm('option'))), toDisplayString($options.getOptionLabel(option)), 17)];
|
|
1493
|
+
})], 16, _hoisted_8)), [[_directive_ripple]])], 64);
|
|
1494
|
+
}), 128)), $data.filterValue && (!items || items && items.length === 0) ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1495
|
+
key: 0,
|
|
1496
|
+
"class": _ctx.cx('emptyMessage'),
|
|
1497
|
+
role: "option"
|
|
1498
|
+
}, _ctx.ptm('emptyMessage')), [renderSlot(_ctx.$slots, "emptyfilter", {}, function () {
|
|
1499
|
+
return [createTextVNode(toDisplayString($options.emptyFilterMessageText), 1)];
|
|
1500
|
+
})], 16)) : !_ctx.options || _ctx.options && _ctx.options.length === 0 ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1501
|
+
key: 1,
|
|
1502
|
+
"class": _ctx.cx('emptyMessage'),
|
|
1503
|
+
role: "option"
|
|
1504
|
+
}, _ctx.ptm('emptyMessage')), [renderSlot(_ctx.$slots, "empty", {}, function () {
|
|
1505
|
+
return [createTextVNode(toDisplayString($options.emptyMessageText), 1)];
|
|
1506
|
+
})], 16)) : createCommentVNode("", true)], 16, _hoisted_6)];
|
|
1507
|
+
}),
|
|
1508
|
+
_: 2
|
|
1509
|
+
}, [_ctx.$slots.loader ? {
|
|
1510
|
+
name: "loader",
|
|
1511
|
+
fn: withCtx(function (_ref4) {
|
|
1512
|
+
var options = _ref4.options;
|
|
1513
|
+
return [renderSlot(_ctx.$slots, "loader", {
|
|
1514
|
+
options: options
|
|
1515
|
+
})];
|
|
1516
|
+
}),
|
|
1517
|
+
key: "0"
|
|
1518
|
+
} : undefined]), 1040, ["items", "style", "disabled", "pt"])], 16), renderSlot(_ctx.$slots, "footer", {
|
|
1519
|
+
value: _ctx.modelValue,
|
|
1520
|
+
options: $options.visibleOptions
|
|
1521
|
+
}), !_ctx.options || _ctx.options && _ctx.options.length === 0 ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1522
|
+
key: 1,
|
|
1523
|
+
role: "status",
|
|
1524
|
+
"aria-live": "polite",
|
|
1525
|
+
"class": "p-hidden-accessible"
|
|
1526
|
+
}, _ctx.ptm('hiddenEmptyMessage'), {
|
|
1527
|
+
"data-p-hidden-accessible": true
|
|
1528
|
+
}), toDisplayString($options.emptyMessageText), 17)) : createCommentVNode("", true), createElementVNode("span", mergeProps({
|
|
1529
|
+
role: "status",
|
|
1530
|
+
"aria-live": "polite",
|
|
1531
|
+
"class": "p-hidden-accessible"
|
|
1532
|
+
}, _ctx.ptm('hiddenSelectedMessage'), {
|
|
1533
|
+
"data-p-hidden-accessible": true
|
|
1534
|
+
}), toDisplayString($options.selectedMessageText), 17), createElementVNode("span", mergeProps({
|
|
1535
|
+
ref: "lastHiddenFocusableElementOnOverlay",
|
|
1536
|
+
role: "presentation",
|
|
1537
|
+
"aria-hidden": "true",
|
|
1538
|
+
"class": "p-hidden-accessible p-hidden-focusable",
|
|
1539
|
+
tabindex: 0,
|
|
1540
|
+
onFocus: _cache[12] || (_cache[12] = function () {
|
|
1541
|
+
return $options.onLastHiddenFocus && $options.onLastHiddenFocus.apply($options, arguments);
|
|
1542
|
+
})
|
|
1543
|
+
}, _ctx.ptm('hiddenLastFocusableEl'), {
|
|
1544
|
+
"data-p-hidden-accessible": true,
|
|
1545
|
+
"data-p-hidden-focusable": true
|
|
1546
|
+
}), null, 16)], 16)) : createCommentVNode("", true)];
|
|
1547
|
+
}),
|
|
1548
|
+
_: 3
|
|
1549
|
+
}, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
|
|
1550
|
+
}),
|
|
1551
|
+
_: 3
|
|
1552
|
+
}, 8, ["appendTo"])], 16);
|
|
1486
1553
|
}
|
|
1487
1554
|
|
|
1488
|
-
var css_248z = "\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n}\n.p-multiselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n.p-multiselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n.p-multiselect-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-multiselect-item {\n cursor: pointer;\n display: flex;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-multiselect-item-group {\n cursor: auto;\n}\n.p-multiselect-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.p-multiselect-filter-container {\n position: relative;\n flex: 1 1 auto;\n}\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n.p-multiselect-close {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n.p-fluid .p-multiselect {\n display: flex;\n}\n";
|
|
1489
|
-
styleInject(css_248z);
|
|
1490
|
-
|
|
1491
1555
|
script.render = render;
|
|
1492
1556
|
|
|
1493
1557
|
export { script as default };
|