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,4 +1,3 @@
|
|
|
1
|
-
import BaseComponent from 'primevue/basecomponent';
|
|
2
1
|
import Button from 'primevue/button';
|
|
3
2
|
import ChevronDownIcon from 'primevue/icons/chevrondown';
|
|
4
3
|
import SpinnerIcon from 'primevue/icons/spinner';
|
|
@@ -6,1271 +5,1325 @@ import TimesCircleIcon from 'primevue/icons/timescircle';
|
|
|
6
5
|
import OverlayEventBus from 'primevue/overlayeventbus';
|
|
7
6
|
import Portal from 'primevue/portal';
|
|
8
7
|
import Ripple from 'primevue/ripple';
|
|
9
|
-
import {
|
|
8
|
+
import { ObjectUtils, UniqueComponentId, ZIndexUtils, DomHandler, ConnectedOverlayScrollHandler } from 'primevue/utils';
|
|
10
9
|
import VirtualScroller from 'primevue/virtualscroller';
|
|
11
|
-
import
|
|
10
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
11
|
+
import { useStyle } from 'primevue/usestyle';
|
|
12
|
+
import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createCommentVNode, Fragment, renderList, renderSlot, createElementVNode, toDisplayString, normalizeClass, createBlock, resolveDynamicComponent, withCtx, createVNode, Transition, createSlots, createTextVNode, withDirectives } from 'vue';
|
|
13
|
+
|
|
14
|
+
var styles = "\n.p-autocomplete {\n display: inline-flex;\n}\n\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-autocomplete-dd .p-autocomplete-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n}\n\n.p-autocomplete-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n\n.p-autocomplete-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n}\n\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n\n.p-fluid .p-autocomplete {\n display: flex;\n}\n\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n";
|
|
15
|
+
var inlineStyles = {
|
|
16
|
+
root: {
|
|
17
|
+
position: 'relative'
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var classes = {
|
|
21
|
+
root: function root(_ref) {
|
|
22
|
+
var instance = _ref.instance,
|
|
23
|
+
props = _ref.props;
|
|
24
|
+
return ['p-autocomplete p-component p-inputwrapper', {
|
|
25
|
+
'p-disabled': props.disabled,
|
|
26
|
+
'p-focus': instance.focused,
|
|
27
|
+
'p-autocomplete-dd': props.dropdown,
|
|
28
|
+
'p-autocomplete-multiple': props.multiple,
|
|
29
|
+
'p-inputwrapper-filled': props.modelValue || ObjectUtils.isNotEmpty(instance.inputValue),
|
|
30
|
+
'p-inputwrapper-focus': instance.focused,
|
|
31
|
+
'p-overlay-open': instance.overlayVisible
|
|
32
|
+
}];
|
|
33
|
+
},
|
|
34
|
+
input: function input(_ref2) {
|
|
35
|
+
var props = _ref2.props;
|
|
36
|
+
return ['p-autocomplete-input p-inputtext p-component', {
|
|
37
|
+
'p-autocomplete-dd-input': props.dropdown
|
|
38
|
+
}];
|
|
39
|
+
},
|
|
40
|
+
container: 'p-autocomplete-multiple-container p-component p-inputtext',
|
|
41
|
+
token: function token(_ref3) {
|
|
42
|
+
var instance = _ref3.instance,
|
|
43
|
+
i = _ref3.i;
|
|
44
|
+
return ['p-autocomplete-token', {
|
|
45
|
+
'p-focus': instance.focusedMultipleOptionIndex === i
|
|
46
|
+
}];
|
|
47
|
+
},
|
|
48
|
+
tokenLabel: 'p-autocomplete-token-label',
|
|
49
|
+
removeTokenIcon: 'p-autocomplete-token-icon',
|
|
50
|
+
inputToken: 'p-autocomplete-input-token',
|
|
51
|
+
loadingIcon: 'p-autocomplete-loader',
|
|
52
|
+
dropdownButton: 'p-autocomplete-dropdown',
|
|
53
|
+
panel: function panel(_ref4) {
|
|
54
|
+
var instance = _ref4.instance;
|
|
55
|
+
return ['p-autocomplete-panel p-component', {
|
|
56
|
+
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
|
|
57
|
+
'p-ripple-disabled': instance.$primevue.config.ripple === false
|
|
58
|
+
}];
|
|
59
|
+
},
|
|
60
|
+
list: 'p-autocomplete-items',
|
|
61
|
+
itemGroup: 'p-autocomplete-item-group',
|
|
62
|
+
item: function item(_ref5) {
|
|
63
|
+
var instance = _ref5.instance,
|
|
64
|
+
option = _ref5.option,
|
|
65
|
+
i = _ref5.i,
|
|
66
|
+
getItemOptions = _ref5.getItemOptions;
|
|
67
|
+
return ['p-autocomplete-item', {
|
|
68
|
+
'p-highlight': instance.isSelected(option),
|
|
69
|
+
'p-focus': instance.focusedOptionIndex === instance.getOptionIndex(i, getItemOptions),
|
|
70
|
+
'p-disabled': instance.isOptionDisabled(option)
|
|
71
|
+
}];
|
|
72
|
+
},
|
|
73
|
+
emptyMessage: 'p-autocomplete-empty-message'
|
|
74
|
+
};
|
|
75
|
+
var _useStyle = useStyle(styles, {
|
|
76
|
+
name: 'autocomplete',
|
|
77
|
+
manual: true
|
|
78
|
+
}),
|
|
79
|
+
loadStyle = _useStyle.load;
|
|
80
|
+
var script$1 = {
|
|
81
|
+
name: 'BaseAutoComplete',
|
|
82
|
+
"extends": BaseComponent,
|
|
83
|
+
props: {
|
|
84
|
+
modelValue: null,
|
|
85
|
+
suggestions: {
|
|
86
|
+
type: Array,
|
|
87
|
+
"default": null
|
|
88
|
+
},
|
|
89
|
+
field: {
|
|
90
|
+
// TODO: Deprecated since v3.16.0
|
|
91
|
+
type: [String, Function],
|
|
92
|
+
"default": null
|
|
93
|
+
},
|
|
94
|
+
optionLabel: null,
|
|
95
|
+
optionDisabled: null,
|
|
96
|
+
optionGroupLabel: null,
|
|
97
|
+
optionGroupChildren: null,
|
|
98
|
+
scrollHeight: {
|
|
99
|
+
type: String,
|
|
100
|
+
"default": '200px'
|
|
101
|
+
},
|
|
102
|
+
dropdown: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
"default": false
|
|
105
|
+
},
|
|
106
|
+
dropdownMode: {
|
|
107
|
+
type: String,
|
|
108
|
+
"default": 'blank'
|
|
109
|
+
},
|
|
110
|
+
autoHighlight: {
|
|
111
|
+
// TODO: Deprecated since v3.16.0. Use selectOnFocus property instead.
|
|
112
|
+
type: Boolean,
|
|
113
|
+
"default": false
|
|
114
|
+
},
|
|
115
|
+
multiple: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
"default": false
|
|
118
|
+
},
|
|
119
|
+
disabled: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
"default": false
|
|
122
|
+
},
|
|
123
|
+
placeholder: {
|
|
124
|
+
type: String,
|
|
125
|
+
"default": null
|
|
126
|
+
},
|
|
127
|
+
dataKey: {
|
|
128
|
+
type: String,
|
|
129
|
+
"default": null
|
|
130
|
+
},
|
|
131
|
+
minLength: {
|
|
132
|
+
type: Number,
|
|
133
|
+
"default": 1
|
|
134
|
+
},
|
|
135
|
+
delay: {
|
|
136
|
+
type: Number,
|
|
137
|
+
"default": 300
|
|
138
|
+
},
|
|
139
|
+
appendTo: {
|
|
140
|
+
type: String,
|
|
141
|
+
"default": 'body'
|
|
142
|
+
},
|
|
143
|
+
forceSelection: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
"default": false
|
|
146
|
+
},
|
|
147
|
+
completeOnFocus: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
"default": false
|
|
150
|
+
},
|
|
151
|
+
inputId: {
|
|
152
|
+
type: String,
|
|
153
|
+
"default": null
|
|
154
|
+
},
|
|
155
|
+
inputStyle: {
|
|
156
|
+
type: Object,
|
|
157
|
+
"default": null
|
|
158
|
+
},
|
|
159
|
+
inputClass: {
|
|
160
|
+
type: [String, Object],
|
|
161
|
+
"default": null
|
|
162
|
+
},
|
|
163
|
+
inputProps: {
|
|
164
|
+
type: null,
|
|
165
|
+
"default": null
|
|
166
|
+
},
|
|
167
|
+
panelStyle: {
|
|
168
|
+
type: Object,
|
|
169
|
+
"default": null
|
|
170
|
+
},
|
|
171
|
+
panelClass: {
|
|
172
|
+
type: [String, Object],
|
|
173
|
+
"default": null
|
|
174
|
+
},
|
|
175
|
+
panelProps: {
|
|
176
|
+
type: null,
|
|
177
|
+
"default": null
|
|
178
|
+
},
|
|
179
|
+
dropdownIcon: {
|
|
180
|
+
type: String,
|
|
181
|
+
"default": undefined
|
|
182
|
+
},
|
|
183
|
+
dropdownClass: {
|
|
184
|
+
type: [String, Object],
|
|
185
|
+
"default": null
|
|
186
|
+
},
|
|
187
|
+
loadingIcon: {
|
|
188
|
+
type: String,
|
|
189
|
+
"default": undefined
|
|
190
|
+
},
|
|
191
|
+
removeTokenIcon: {
|
|
192
|
+
type: String,
|
|
193
|
+
"default": undefined
|
|
194
|
+
},
|
|
195
|
+
virtualScrollerOptions: {
|
|
196
|
+
type: Object,
|
|
197
|
+
"default": null
|
|
198
|
+
},
|
|
199
|
+
autoOptionFocus: {
|
|
200
|
+
type: Boolean,
|
|
201
|
+
"default": true
|
|
202
|
+
},
|
|
203
|
+
selectOnFocus: {
|
|
204
|
+
type: Boolean,
|
|
205
|
+
"default": false
|
|
206
|
+
},
|
|
207
|
+
searchLocale: {
|
|
208
|
+
type: String,
|
|
209
|
+
"default": undefined
|
|
210
|
+
},
|
|
211
|
+
searchMessage: {
|
|
212
|
+
type: String,
|
|
213
|
+
"default": null
|
|
214
|
+
},
|
|
215
|
+
selectionMessage: {
|
|
216
|
+
type: String,
|
|
217
|
+
"default": null
|
|
218
|
+
},
|
|
219
|
+
emptySelectionMessage: {
|
|
220
|
+
type: String,
|
|
221
|
+
"default": null
|
|
222
|
+
},
|
|
223
|
+
emptySearchMessage: {
|
|
224
|
+
type: String,
|
|
225
|
+
"default": null
|
|
226
|
+
},
|
|
227
|
+
tabindex: {
|
|
228
|
+
type: Number,
|
|
229
|
+
"default": 0
|
|
230
|
+
},
|
|
231
|
+
'aria-label': {
|
|
232
|
+
type: String,
|
|
233
|
+
"default": null
|
|
234
|
+
},
|
|
235
|
+
'aria-labelledby': {
|
|
236
|
+
type: String,
|
|
237
|
+
"default": null
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
css: {
|
|
241
|
+
classes: classes,
|
|
242
|
+
inlineStyles: inlineStyles,
|
|
243
|
+
loadStyle: loadStyle
|
|
244
|
+
},
|
|
245
|
+
provide: function provide() {
|
|
246
|
+
return {
|
|
247
|
+
$parentInstance: this
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
};
|
|
12
251
|
|
|
252
|
+
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); }
|
|
253
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
254
|
+
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."); }
|
|
255
|
+
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); }
|
|
256
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
257
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
258
|
+
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; }
|
|
13
259
|
var script = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
inputStyle: {
|
|
90
|
-
type: Object,
|
|
91
|
-
default: null
|
|
92
|
-
},
|
|
93
|
-
inputClass: {
|
|
94
|
-
type: [String, Object],
|
|
95
|
-
default: null
|
|
96
|
-
},
|
|
97
|
-
inputProps: {
|
|
98
|
-
type: null,
|
|
99
|
-
default: null
|
|
100
|
-
},
|
|
101
|
-
panelStyle: {
|
|
102
|
-
type: Object,
|
|
103
|
-
default: null
|
|
104
|
-
},
|
|
105
|
-
panelClass: {
|
|
106
|
-
type: [String, Object],
|
|
107
|
-
default: null
|
|
108
|
-
},
|
|
109
|
-
panelProps: {
|
|
110
|
-
type: null,
|
|
111
|
-
default: null
|
|
112
|
-
},
|
|
113
|
-
dropdownIcon: {
|
|
114
|
-
type: String,
|
|
115
|
-
default: undefined
|
|
116
|
-
},
|
|
117
|
-
dropdownClass: {
|
|
118
|
-
type: [String, Object],
|
|
119
|
-
default: null
|
|
120
|
-
},
|
|
121
|
-
loadingIcon: {
|
|
122
|
-
type: String,
|
|
123
|
-
default: undefined
|
|
124
|
-
},
|
|
125
|
-
removeTokenIcon: {
|
|
126
|
-
type: String,
|
|
127
|
-
default: undefined
|
|
128
|
-
},
|
|
129
|
-
virtualScrollerOptions: {
|
|
130
|
-
type: Object,
|
|
131
|
-
default: null
|
|
132
|
-
},
|
|
133
|
-
autoOptionFocus: {
|
|
134
|
-
type: Boolean,
|
|
135
|
-
default: true
|
|
136
|
-
},
|
|
137
|
-
selectOnFocus: {
|
|
138
|
-
type: Boolean,
|
|
139
|
-
default: false
|
|
140
|
-
},
|
|
141
|
-
searchLocale: {
|
|
142
|
-
type: String,
|
|
143
|
-
default: undefined
|
|
144
|
-
},
|
|
145
|
-
searchMessage: {
|
|
146
|
-
type: String,
|
|
147
|
-
default: null
|
|
148
|
-
},
|
|
149
|
-
selectionMessage: {
|
|
150
|
-
type: String,
|
|
151
|
-
default: null
|
|
152
|
-
},
|
|
153
|
-
emptySelectionMessage: {
|
|
154
|
-
type: String,
|
|
155
|
-
default: null
|
|
156
|
-
},
|
|
157
|
-
emptySearchMessage: {
|
|
158
|
-
type: String,
|
|
159
|
-
default: null
|
|
160
|
-
},
|
|
161
|
-
tabindex: {
|
|
162
|
-
type: Number,
|
|
163
|
-
default: 0
|
|
164
|
-
},
|
|
165
|
-
'aria-label': {
|
|
166
|
-
type: String,
|
|
167
|
-
default: null
|
|
168
|
-
},
|
|
169
|
-
'aria-labelledby': {
|
|
170
|
-
type: String,
|
|
171
|
-
default: null
|
|
260
|
+
name: 'AutoComplete',
|
|
261
|
+
"extends": script$1,
|
|
262
|
+
emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
|
|
263
|
+
outsideClickListener: null,
|
|
264
|
+
resizeListener: null,
|
|
265
|
+
scrollHandler: null,
|
|
266
|
+
overlay: null,
|
|
267
|
+
virtualScroller: null,
|
|
268
|
+
searchTimeout: null,
|
|
269
|
+
focusOnHover: false,
|
|
270
|
+
dirty: false,
|
|
271
|
+
data: function data() {
|
|
272
|
+
return {
|
|
273
|
+
id: this.$attrs.id,
|
|
274
|
+
focused: false,
|
|
275
|
+
focusedOptionIndex: -1,
|
|
276
|
+
focusedMultipleOptionIndex: -1,
|
|
277
|
+
overlayVisible: false,
|
|
278
|
+
searching: false
|
|
279
|
+
};
|
|
280
|
+
},
|
|
281
|
+
watch: {
|
|
282
|
+
'$attrs.id': function $attrsId(newValue) {
|
|
283
|
+
this.id = newValue || UniqueComponentId();
|
|
284
|
+
},
|
|
285
|
+
suggestions: function suggestions() {
|
|
286
|
+
if (this.searching) {
|
|
287
|
+
ObjectUtils.isNotEmpty(this.suggestions) ? this.show() : !!this.$slots.empty ? this.show() : this.hide();
|
|
288
|
+
this.focusedOptionIndex = this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
289
|
+
this.searching = false;
|
|
290
|
+
}
|
|
291
|
+
this.autoUpdateModel();
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
mounted: function mounted() {
|
|
295
|
+
this.id = this.id || UniqueComponentId();
|
|
296
|
+
this.autoUpdateModel();
|
|
297
|
+
},
|
|
298
|
+
updated: function updated() {
|
|
299
|
+
if (this.overlayVisible) {
|
|
300
|
+
this.alignOverlay();
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
beforeUnmount: function beforeUnmount() {
|
|
304
|
+
this.unbindOutsideClickListener();
|
|
305
|
+
this.unbindResizeListener();
|
|
306
|
+
if (this.scrollHandler) {
|
|
307
|
+
this.scrollHandler.destroy();
|
|
308
|
+
this.scrollHandler = null;
|
|
309
|
+
}
|
|
310
|
+
if (this.overlay) {
|
|
311
|
+
ZIndexUtils.clear(this.overlay);
|
|
312
|
+
this.overlay = null;
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
methods: {
|
|
316
|
+
getOptionIndex: function getOptionIndex(index, fn) {
|
|
317
|
+
return this.virtualScrollerDisabled ? index : fn && fn(index)['index'];
|
|
318
|
+
},
|
|
319
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
320
|
+
return this.field || this.optionLabel ? ObjectUtils.resolveFieldData(option, this.field || this.optionLabel) : option;
|
|
321
|
+
},
|
|
322
|
+
getOptionValue: function getOptionValue(option) {
|
|
323
|
+
return option; // TODO: The 'optionValue' properties can be added.
|
|
324
|
+
},
|
|
325
|
+
getOptionRenderKey: function getOptionRenderKey(option, index) {
|
|
326
|
+
return (this.dataKey ? ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option)) + '_' + index;
|
|
327
|
+
},
|
|
328
|
+
getPTOptions: function getPTOptions(option, itemOptions, index, key) {
|
|
329
|
+
return this.ptm(key, {
|
|
330
|
+
context: {
|
|
331
|
+
selected: this.isSelected(option),
|
|
332
|
+
focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
|
|
333
|
+
disabled: this.isOptionDisabled(option)
|
|
172
334
|
}
|
|
335
|
+
});
|
|
173
336
|
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
scrollHandler: null,
|
|
177
|
-
overlay: null,
|
|
178
|
-
virtualScroller: null,
|
|
179
|
-
searchTimeout: null,
|
|
180
|
-
focusOnHover: false,
|
|
181
|
-
dirty: false,
|
|
182
|
-
data() {
|
|
183
|
-
return {
|
|
184
|
-
id: this.$attrs.id,
|
|
185
|
-
focused: false,
|
|
186
|
-
focusedOptionIndex: -1,
|
|
187
|
-
focusedMultipleOptionIndex: -1,
|
|
188
|
-
overlayVisible: false,
|
|
189
|
-
searching: false
|
|
190
|
-
};
|
|
337
|
+
isOptionDisabled: function isOptionDisabled(option) {
|
|
338
|
+
return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
|
|
191
339
|
},
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
340
|
+
isOptionGroup: function isOptionGroup(option) {
|
|
341
|
+
return this.optionGroupLabel && option.optionGroup && option.group;
|
|
342
|
+
},
|
|
343
|
+
getOptionGroupLabel: function getOptionGroupLabel(optionGroup) {
|
|
344
|
+
return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
|
|
345
|
+
},
|
|
346
|
+
getOptionGroupChildren: function getOptionGroupChildren(optionGroup) {
|
|
347
|
+
return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
|
|
348
|
+
},
|
|
349
|
+
getAriaPosInset: function getAriaPosInset(index) {
|
|
350
|
+
var _this = this;
|
|
351
|
+
return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter(function (option) {
|
|
352
|
+
return _this.isOptionGroup(option);
|
|
353
|
+
}).length : index) + 1;
|
|
354
|
+
},
|
|
355
|
+
show: function show(isFocus) {
|
|
356
|
+
this.$emit('before-show');
|
|
357
|
+
this.dirty = true;
|
|
358
|
+
this.overlayVisible = true;
|
|
359
|
+
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
360
|
+
isFocus && DomHandler.focus(this.$refs.focusInput);
|
|
361
|
+
},
|
|
362
|
+
hide: function hide(isFocus) {
|
|
363
|
+
var _this2 = this;
|
|
364
|
+
var _hide = function _hide() {
|
|
365
|
+
_this2.$emit('before-hide');
|
|
366
|
+
_this2.dirty = isFocus;
|
|
367
|
+
_this2.overlayVisible = false;
|
|
368
|
+
_this2.focusedOptionIndex = -1;
|
|
369
|
+
isFocus && DomHandler.focus(_this2.$refs.focusInput);
|
|
370
|
+
};
|
|
371
|
+
setTimeout(function () {
|
|
372
|
+
_hide();
|
|
373
|
+
}, 0); // For ScreenReaders
|
|
374
|
+
},
|
|
375
|
+
onFocus: function onFocus(event) {
|
|
376
|
+
if (this.disabled) {
|
|
377
|
+
// For ScreenReaders
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
if (!this.dirty && this.completeOnFocus) {
|
|
381
|
+
this.search(event, event.target.value, 'focus');
|
|
382
|
+
}
|
|
383
|
+
this.dirty = true;
|
|
384
|
+
this.focused = true;
|
|
385
|
+
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
386
|
+
this.overlayVisible && this.scrollInView(this.focusedOptionIndex);
|
|
387
|
+
this.$emit('focus', event);
|
|
388
|
+
},
|
|
389
|
+
onBlur: function onBlur(event) {
|
|
390
|
+
this.dirty = false;
|
|
391
|
+
this.focused = false;
|
|
392
|
+
this.focusedOptionIndex = -1;
|
|
393
|
+
this.$emit('blur', event);
|
|
394
|
+
},
|
|
395
|
+
onKeyDown: function onKeyDown(event) {
|
|
396
|
+
if (this.disabled) {
|
|
397
|
+
event.preventDefault();
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
switch (event.code) {
|
|
401
|
+
case 'ArrowDown':
|
|
402
|
+
this.onArrowDownKey(event);
|
|
403
|
+
break;
|
|
404
|
+
case 'ArrowUp':
|
|
405
|
+
this.onArrowUpKey(event);
|
|
406
|
+
break;
|
|
407
|
+
case 'ArrowLeft':
|
|
408
|
+
this.onArrowLeftKey(event);
|
|
409
|
+
break;
|
|
410
|
+
case 'ArrowRight':
|
|
411
|
+
this.onArrowRightKey(event);
|
|
412
|
+
break;
|
|
413
|
+
case 'Home':
|
|
414
|
+
this.onHomeKey(event);
|
|
415
|
+
break;
|
|
416
|
+
case 'End':
|
|
417
|
+
this.onEndKey(event);
|
|
418
|
+
break;
|
|
419
|
+
case 'PageDown':
|
|
420
|
+
this.onPageDownKey(event);
|
|
421
|
+
break;
|
|
422
|
+
case 'PageUp':
|
|
423
|
+
this.onPageUpKey(event);
|
|
424
|
+
break;
|
|
425
|
+
case 'Enter':
|
|
426
|
+
case 'NumpadEnter':
|
|
427
|
+
this.onEnterKey(event);
|
|
428
|
+
break;
|
|
429
|
+
case 'Escape':
|
|
430
|
+
this.onEscapeKey(event);
|
|
431
|
+
break;
|
|
432
|
+
case 'Tab':
|
|
433
|
+
this.onTabKey(event);
|
|
434
|
+
break;
|
|
435
|
+
case 'Backspace':
|
|
436
|
+
this.onBackspaceKey(event);
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
onInput: function onInput(event) {
|
|
441
|
+
var _this3 = this;
|
|
442
|
+
if (this.searchTimeout) {
|
|
443
|
+
clearTimeout(this.searchTimeout);
|
|
444
|
+
}
|
|
445
|
+
var query = event.target.value;
|
|
446
|
+
if (!this.multiple) {
|
|
447
|
+
this.updateModel(event, query);
|
|
448
|
+
}
|
|
449
|
+
if (query.length === 0) {
|
|
450
|
+
this.hide();
|
|
451
|
+
this.$emit('clear');
|
|
452
|
+
} else {
|
|
453
|
+
if (query.length >= this.minLength) {
|
|
454
|
+
this.focusedOptionIndex = -1;
|
|
455
|
+
this.searchTimeout = setTimeout(function () {
|
|
456
|
+
_this3.search(event, query, 'input');
|
|
457
|
+
}, this.delay);
|
|
458
|
+
} else {
|
|
459
|
+
this.hide();
|
|
204
460
|
}
|
|
461
|
+
}
|
|
205
462
|
},
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
463
|
+
onChange: function onChange(event) {
|
|
464
|
+
var _this4 = this;
|
|
465
|
+
if (this.forceSelection) {
|
|
466
|
+
var valid = false;
|
|
467
|
+
if (this.visibleOptions) {
|
|
468
|
+
var matchedValue = this.visibleOptions.find(function (option) {
|
|
469
|
+
return _this4.isOptionMatched(option, _this4.$refs.focusInput.value || '');
|
|
470
|
+
});
|
|
471
|
+
if (matchedValue !== undefined) {
|
|
472
|
+
valid = true;
|
|
473
|
+
!this.isSelected(matchedValue) && this.onOptionSelect(event, matchedValue);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
if (!valid) {
|
|
477
|
+
this.$refs.focusInput.value = '';
|
|
478
|
+
this.$emit('clear');
|
|
479
|
+
!this.multiple && this.updateModel(event, null);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
onMultipleContainerFocus: function onMultipleContainerFocus() {
|
|
484
|
+
if (this.disabled) {
|
|
485
|
+
// For ScreenReaders
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
this.focused = true;
|
|
489
|
+
},
|
|
490
|
+
onMultipleContainerBlur: function onMultipleContainerBlur() {
|
|
491
|
+
this.focusedMultipleOptionIndex = -1;
|
|
492
|
+
this.focused = false;
|
|
493
|
+
},
|
|
494
|
+
onMultipleContainerKeyDown: function onMultipleContainerKeyDown(event) {
|
|
495
|
+
if (this.disabled) {
|
|
496
|
+
event.preventDefault();
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
switch (event.code) {
|
|
500
|
+
case 'ArrowLeft':
|
|
501
|
+
this.onArrowLeftKeyOnMultiple(event);
|
|
502
|
+
break;
|
|
503
|
+
case 'ArrowRight':
|
|
504
|
+
this.onArrowRightKeyOnMultiple(event);
|
|
505
|
+
break;
|
|
506
|
+
case 'Backspace':
|
|
507
|
+
this.onBackspaceKeyOnMultiple(event);
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
onContainerClick: function onContainerClick(event) {
|
|
512
|
+
if (this.disabled || this.searching || this.isInputClicked(event) || this.isDropdownClicked(event)) {
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
if (!this.overlay || !this.overlay.contains(event.target)) {
|
|
516
|
+
DomHandler.focus(this.$refs.focusInput);
|
|
517
|
+
}
|
|
210
518
|
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
519
|
+
onDropdownClick: function onDropdownClick(event) {
|
|
520
|
+
var query = undefined;
|
|
521
|
+
if (this.overlayVisible) {
|
|
522
|
+
this.hide(true);
|
|
523
|
+
} else {
|
|
524
|
+
DomHandler.focus(this.$refs.focusInput);
|
|
525
|
+
query = this.$refs.focusInput.value;
|
|
526
|
+
if (this.dropdownMode === 'blank') this.search(event, '', 'dropdown');else if (this.dropdownMode === 'current') this.search(event, query, 'dropdown');
|
|
527
|
+
}
|
|
528
|
+
this.$emit('dropdown-click', {
|
|
529
|
+
originalEvent: event,
|
|
530
|
+
query: query
|
|
531
|
+
});
|
|
532
|
+
},
|
|
533
|
+
onOptionSelect: function onOptionSelect(event, option) {
|
|
534
|
+
var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
535
|
+
var value = this.getOptionValue(option);
|
|
536
|
+
if (this.multiple) {
|
|
537
|
+
this.$refs.focusInput.value = '';
|
|
538
|
+
if (!this.isSelected(option)) {
|
|
539
|
+
this.updateModel(event, [].concat(_toConsumableArray(this.modelValue || []), [value]));
|
|
214
540
|
}
|
|
541
|
+
} else {
|
|
542
|
+
this.updateModel(event, value);
|
|
543
|
+
}
|
|
544
|
+
this.$emit('item-select', {
|
|
545
|
+
originalEvent: event,
|
|
546
|
+
value: option
|
|
547
|
+
});
|
|
548
|
+
isHide && this.hide(true);
|
|
215
549
|
},
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
this.
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
550
|
+
onOptionMouseMove: function onOptionMouseMove(event, index) {
|
|
551
|
+
if (this.focusOnHover) {
|
|
552
|
+
this.changeFocusedOptionIndex(event, index);
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
onOverlayClick: function onOverlayClick(event) {
|
|
556
|
+
OverlayEventBus.emit('overlay-click', {
|
|
557
|
+
originalEvent: event,
|
|
558
|
+
target: this.$el
|
|
559
|
+
});
|
|
560
|
+
},
|
|
561
|
+
onOverlayKeyDown: function onOverlayKeyDown(event) {
|
|
562
|
+
switch (event.code) {
|
|
563
|
+
case 'Escape':
|
|
564
|
+
this.onEscapeKey(event);
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
onArrowDownKey: function onArrowDownKey(event) {
|
|
569
|
+
if (!this.overlayVisible) {
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
|
|
573
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
574
|
+
event.preventDefault();
|
|
575
|
+
},
|
|
576
|
+
onArrowUpKey: function onArrowUpKey(event) {
|
|
577
|
+
if (!this.overlayVisible) {
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
if (event.altKey) {
|
|
581
|
+
if (this.focusedOptionIndex !== -1) {
|
|
582
|
+
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
223
583
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
584
|
+
this.overlayVisible && this.hide();
|
|
585
|
+
event.preventDefault();
|
|
586
|
+
} else {
|
|
587
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
|
|
588
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
589
|
+
event.preventDefault();
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
onArrowLeftKey: function onArrowLeftKey(event) {
|
|
593
|
+
var target = event.currentTarget;
|
|
594
|
+
this.focusedOptionIndex = -1;
|
|
595
|
+
if (this.multiple) {
|
|
596
|
+
if (ObjectUtils.isEmpty(target.value) && this.hasSelectedOption) {
|
|
597
|
+
DomHandler.focus(this.$refs.multiContainer);
|
|
598
|
+
this.focusedMultipleOptionIndex = this.modelValue.length;
|
|
599
|
+
} else {
|
|
600
|
+
event.stopPropagation(); // To prevent onArrowLeftKeyOnMultiple method
|
|
228
601
|
}
|
|
602
|
+
}
|
|
229
603
|
},
|
|
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
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
|
|
263
|
-
},
|
|
264
|
-
getAriaPosInset(index) {
|
|
265
|
-
return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter((option) => this.isOptionGroup(option)).length : index) + 1;
|
|
266
|
-
},
|
|
267
|
-
show(isFocus) {
|
|
268
|
-
this.$emit('before-show');
|
|
269
|
-
this.dirty = true;
|
|
270
|
-
this.overlayVisible = true;
|
|
271
|
-
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
272
|
-
|
|
273
|
-
isFocus && DomHandler.focus(this.$refs.focusInput);
|
|
274
|
-
},
|
|
275
|
-
hide(isFocus) {
|
|
276
|
-
const _hide = () => {
|
|
277
|
-
this.$emit('before-hide');
|
|
278
|
-
this.dirty = isFocus;
|
|
279
|
-
this.overlayVisible = false;
|
|
280
|
-
this.focusedOptionIndex = -1;
|
|
281
|
-
|
|
282
|
-
isFocus && DomHandler.focus(this.$refs.focusInput);
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
setTimeout(() => {
|
|
286
|
-
_hide();
|
|
287
|
-
}, 0); // For ScreenReaders
|
|
288
|
-
},
|
|
289
|
-
onFocus(event) {
|
|
290
|
-
if (this.disabled) {
|
|
291
|
-
// For ScreenReaders
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
if (!this.dirty && this.completeOnFocus) {
|
|
296
|
-
this.search(event, event.target.value, 'focus');
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
this.dirty = true;
|
|
300
|
-
this.focused = true;
|
|
301
|
-
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
|
302
|
-
this.overlayVisible && this.scrollInView(this.focusedOptionIndex);
|
|
303
|
-
this.$emit('focus', event);
|
|
304
|
-
},
|
|
305
|
-
onBlur(event) {
|
|
306
|
-
this.dirty = false;
|
|
307
|
-
this.focused = false;
|
|
308
|
-
this.focusedOptionIndex = -1;
|
|
309
|
-
this.$emit('blur', event);
|
|
310
|
-
},
|
|
311
|
-
onKeyDown(event) {
|
|
312
|
-
if (this.disabled) {
|
|
313
|
-
event.preventDefault();
|
|
314
|
-
|
|
315
|
-
return;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
switch (event.code) {
|
|
319
|
-
case 'ArrowDown':
|
|
320
|
-
this.onArrowDownKey(event);
|
|
321
|
-
break;
|
|
322
|
-
|
|
323
|
-
case 'ArrowUp':
|
|
324
|
-
this.onArrowUpKey(event);
|
|
325
|
-
break;
|
|
326
|
-
|
|
327
|
-
case 'ArrowLeft':
|
|
328
|
-
this.onArrowLeftKey(event);
|
|
329
|
-
break;
|
|
330
|
-
|
|
331
|
-
case 'ArrowRight':
|
|
332
|
-
this.onArrowRightKey(event);
|
|
333
|
-
break;
|
|
334
|
-
|
|
335
|
-
case 'Home':
|
|
336
|
-
this.onHomeKey(event);
|
|
337
|
-
break;
|
|
338
|
-
|
|
339
|
-
case 'End':
|
|
340
|
-
this.onEndKey(event);
|
|
341
|
-
break;
|
|
342
|
-
|
|
343
|
-
case 'PageDown':
|
|
344
|
-
this.onPageDownKey(event);
|
|
345
|
-
break;
|
|
346
|
-
|
|
347
|
-
case 'PageUp':
|
|
348
|
-
this.onPageUpKey(event);
|
|
349
|
-
break;
|
|
350
|
-
|
|
351
|
-
case 'Enter':
|
|
352
|
-
case 'NumpadEnter':
|
|
353
|
-
this.onEnterKey(event);
|
|
354
|
-
break;
|
|
355
|
-
|
|
356
|
-
case 'Escape':
|
|
357
|
-
this.onEscapeKey(event);
|
|
358
|
-
break;
|
|
359
|
-
|
|
360
|
-
case 'Tab':
|
|
361
|
-
this.onTabKey(event);
|
|
362
|
-
break;
|
|
363
|
-
|
|
364
|
-
case 'Backspace':
|
|
365
|
-
this.onBackspaceKey(event);
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
onInput(event) {
|
|
370
|
-
if (this.searchTimeout) {
|
|
371
|
-
clearTimeout(this.searchTimeout);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
let query = event.target.value;
|
|
375
|
-
|
|
376
|
-
if (!this.multiple) {
|
|
377
|
-
this.updateModel(event, query);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
if (query.length === 0) {
|
|
381
|
-
this.hide();
|
|
382
|
-
this.$emit('clear');
|
|
383
|
-
} else {
|
|
384
|
-
if (query.length >= this.minLength) {
|
|
385
|
-
this.focusedOptionIndex = -1;
|
|
386
|
-
|
|
387
|
-
this.searchTimeout = setTimeout(() => {
|
|
388
|
-
this.search(event, query, 'input');
|
|
389
|
-
}, this.delay);
|
|
390
|
-
} else {
|
|
391
|
-
this.hide();
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
onChange(event) {
|
|
396
|
-
if (this.forceSelection) {
|
|
397
|
-
let valid = false;
|
|
398
|
-
|
|
399
|
-
if (this.visibleOptions) {
|
|
400
|
-
const matchedValue = this.visibleOptions.find((option) => this.isOptionMatched(option, this.$refs.focusInput.value || ''));
|
|
401
|
-
|
|
402
|
-
if (matchedValue !== undefined) {
|
|
403
|
-
valid = true;
|
|
404
|
-
!this.isSelected(matchedValue) && this.onOptionSelect(event, matchedValue);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
if (!valid) {
|
|
409
|
-
this.$refs.focusInput.value = '';
|
|
410
|
-
this.$emit('clear');
|
|
411
|
-
!this.multiple && this.updateModel(event, null);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
onMultipleContainerFocus() {
|
|
416
|
-
if (this.disabled) {
|
|
417
|
-
// For ScreenReaders
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
this.focused = true;
|
|
422
|
-
},
|
|
423
|
-
onMultipleContainerBlur() {
|
|
424
|
-
this.focusedMultipleOptionIndex = -1;
|
|
425
|
-
this.focused = false;
|
|
426
|
-
},
|
|
427
|
-
onMultipleContainerKeyDown(event) {
|
|
428
|
-
if (this.disabled) {
|
|
429
|
-
event.preventDefault();
|
|
430
|
-
|
|
431
|
-
return;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
switch (event.code) {
|
|
435
|
-
case 'ArrowLeft':
|
|
436
|
-
this.onArrowLeftKeyOnMultiple(event);
|
|
437
|
-
break;
|
|
438
|
-
|
|
439
|
-
case 'ArrowRight':
|
|
440
|
-
this.onArrowRightKeyOnMultiple(event);
|
|
441
|
-
break;
|
|
442
|
-
|
|
443
|
-
case 'Backspace':
|
|
444
|
-
this.onBackspaceKeyOnMultiple(event);
|
|
445
|
-
break;
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
onContainerClick(event) {
|
|
449
|
-
if (this.disabled || this.searching || this.isInputClicked(event) || this.isDropdownClicked(event)) {
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
if (!this.overlay || !this.overlay.contains(event.target)) {
|
|
454
|
-
DomHandler.focus(this.$refs.focusInput);
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
|
-
onDropdownClick(event) {
|
|
458
|
-
let query = undefined;
|
|
459
|
-
|
|
460
|
-
if (this.overlayVisible) {
|
|
461
|
-
this.hide(true);
|
|
462
|
-
} else {
|
|
463
|
-
DomHandler.focus(this.$refs.focusInput);
|
|
464
|
-
query = this.$refs.focusInput.value;
|
|
465
|
-
|
|
466
|
-
if (this.dropdownMode === 'blank') this.search(event, '', 'dropdown');
|
|
467
|
-
else if (this.dropdownMode === 'current') this.search(event, query, 'dropdown');
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
this.$emit('dropdown-click', { originalEvent: event, query });
|
|
471
|
-
},
|
|
472
|
-
onOptionSelect(event, option, isHide = true) {
|
|
473
|
-
const value = this.getOptionValue(option);
|
|
474
|
-
|
|
475
|
-
if (this.multiple) {
|
|
476
|
-
this.$refs.focusInput.value = '';
|
|
477
|
-
|
|
478
|
-
if (!this.isSelected(option)) {
|
|
479
|
-
this.updateModel(event, [...(this.modelValue || []), value]);
|
|
480
|
-
}
|
|
481
|
-
} else {
|
|
482
|
-
this.updateModel(event, value);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
this.$emit('item-select', { originalEvent: event, value: option });
|
|
486
|
-
|
|
487
|
-
isHide && this.hide(true);
|
|
488
|
-
},
|
|
489
|
-
onOptionMouseMove(event, index) {
|
|
490
|
-
if (this.focusOnHover) {
|
|
491
|
-
this.changeFocusedOptionIndex(event, index);
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
onOverlayClick(event) {
|
|
495
|
-
OverlayEventBus.emit('overlay-click', {
|
|
496
|
-
originalEvent: event,
|
|
497
|
-
target: this.$el
|
|
498
|
-
});
|
|
499
|
-
},
|
|
500
|
-
onOverlayKeyDown(event) {
|
|
501
|
-
switch (event.code) {
|
|
502
|
-
case 'Escape':
|
|
503
|
-
this.onEscapeKey(event);
|
|
504
|
-
break;
|
|
505
|
-
}
|
|
506
|
-
},
|
|
507
|
-
onArrowDownKey(event) {
|
|
508
|
-
if (!this.overlayVisible) {
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
const optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
|
|
513
|
-
|
|
514
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
515
|
-
|
|
516
|
-
event.preventDefault();
|
|
517
|
-
},
|
|
518
|
-
onArrowUpKey(event) {
|
|
519
|
-
if (!this.overlayVisible) {
|
|
520
|
-
return;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
if (event.altKey) {
|
|
524
|
-
if (this.focusedOptionIndex !== -1) {
|
|
525
|
-
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
this.overlayVisible && this.hide();
|
|
529
|
-
event.preventDefault();
|
|
530
|
-
} else {
|
|
531
|
-
const optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
|
|
532
|
-
|
|
533
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
|
534
|
-
|
|
535
|
-
event.preventDefault();
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
onArrowLeftKey(event) {
|
|
539
|
-
const target = event.currentTarget;
|
|
540
|
-
|
|
541
|
-
this.focusedOptionIndex = -1;
|
|
542
|
-
|
|
543
|
-
if (this.multiple) {
|
|
544
|
-
if (ObjectUtils.isEmpty(target.value) && this.hasSelectedOption) {
|
|
545
|
-
DomHandler.focus(this.$refs.multiContainer);
|
|
546
|
-
this.focusedMultipleOptionIndex = this.modelValue.length;
|
|
547
|
-
} else {
|
|
548
|
-
event.stopPropagation(); // To prevent onArrowLeftKeyOnMultiple method
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
onArrowRightKey(event) {
|
|
553
|
-
this.focusedOptionIndex = -1;
|
|
554
|
-
|
|
555
|
-
this.multiple && event.stopPropagation(); // To prevent onArrowRightKeyOnMultiple method
|
|
556
|
-
},
|
|
557
|
-
onHomeKey(event) {
|
|
558
|
-
const { currentTarget } = event;
|
|
559
|
-
const len = currentTarget.value.length;
|
|
560
|
-
|
|
561
|
-
currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
|
|
562
|
-
this.focusedOptionIndex = -1;
|
|
563
|
-
|
|
564
|
-
event.preventDefault();
|
|
565
|
-
},
|
|
566
|
-
onEndKey(event) {
|
|
567
|
-
const { currentTarget } = event;
|
|
568
|
-
const len = currentTarget.value.length;
|
|
569
|
-
|
|
570
|
-
currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
|
|
571
|
-
this.focusedOptionIndex = -1;
|
|
572
|
-
|
|
573
|
-
event.preventDefault();
|
|
574
|
-
},
|
|
575
|
-
onPageUpKey(event) {
|
|
576
|
-
this.scrollInView(0);
|
|
577
|
-
event.preventDefault();
|
|
578
|
-
},
|
|
579
|
-
onPageDownKey(event) {
|
|
580
|
-
this.scrollInView(this.visibleOptions.length - 1);
|
|
581
|
-
event.preventDefault();
|
|
582
|
-
},
|
|
583
|
-
onEnterKey(event) {
|
|
584
|
-
if (!this.overlayVisible) {
|
|
585
|
-
this.onArrowDownKey(event);
|
|
586
|
-
} else {
|
|
587
|
-
if (this.focusedOptionIndex !== -1) {
|
|
588
|
-
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
this.hide();
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
event.preventDefault();
|
|
595
|
-
},
|
|
596
|
-
onEscapeKey(event) {
|
|
597
|
-
this.overlayVisible && this.hide(true);
|
|
598
|
-
event.preventDefault();
|
|
599
|
-
},
|
|
600
|
-
onTabKey(event) {
|
|
601
|
-
if (this.focusedOptionIndex !== -1) {
|
|
602
|
-
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
this.overlayVisible && this.hide();
|
|
606
|
-
},
|
|
607
|
-
onBackspaceKey(event) {
|
|
608
|
-
if (this.multiple) {
|
|
609
|
-
if (ObjectUtils.isNotEmpty(this.modelValue) && !this.$refs.focusInput.value) {
|
|
610
|
-
const removedValue = this.modelValue[this.modelValue.length - 1];
|
|
611
|
-
const newValue = this.modelValue.slice(0, -1);
|
|
612
|
-
|
|
613
|
-
this.$emit('update:modelValue', newValue);
|
|
614
|
-
this.$emit('item-unselect', { originalEvent: event, value: removedValue });
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
event.stopPropagation(); // To prevent onBackspaceKeyOnMultiple method
|
|
618
|
-
}
|
|
619
|
-
},
|
|
620
|
-
onArrowLeftKeyOnMultiple() {
|
|
621
|
-
this.focusedMultipleOptionIndex = this.focusedMultipleOptionIndex < 1 ? 0 : this.focusedMultipleOptionIndex - 1;
|
|
622
|
-
},
|
|
623
|
-
onArrowRightKeyOnMultiple() {
|
|
624
|
-
this.focusedMultipleOptionIndex++;
|
|
625
|
-
|
|
626
|
-
if (this.focusedMultipleOptionIndex > this.modelValue.length - 1) {
|
|
627
|
-
this.focusedMultipleOptionIndex = -1;
|
|
628
|
-
DomHandler.focus(this.$refs.focusInput);
|
|
629
|
-
}
|
|
630
|
-
},
|
|
631
|
-
onBackspaceKeyOnMultiple(event) {
|
|
632
|
-
if (this.focusedMultipleOptionIndex !== -1) {
|
|
633
|
-
this.removeOption(event, this.focusedMultipleOptionIndex);
|
|
634
|
-
}
|
|
635
|
-
},
|
|
636
|
-
onOverlayEnter(el) {
|
|
637
|
-
ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
|
|
638
|
-
this.alignOverlay();
|
|
639
|
-
},
|
|
640
|
-
onOverlayAfterEnter() {
|
|
641
|
-
this.bindOutsideClickListener();
|
|
642
|
-
this.bindScrollListener();
|
|
643
|
-
this.bindResizeListener();
|
|
644
|
-
|
|
645
|
-
this.$emit('show');
|
|
646
|
-
},
|
|
647
|
-
onOverlayLeave() {
|
|
648
|
-
this.unbindOutsideClickListener();
|
|
649
|
-
this.unbindScrollListener();
|
|
650
|
-
this.unbindResizeListener();
|
|
651
|
-
|
|
652
|
-
this.$emit('hide');
|
|
653
|
-
this.overlay = null;
|
|
654
|
-
},
|
|
655
|
-
onOverlayAfterLeave(el) {
|
|
656
|
-
ZIndexUtils.clear(el);
|
|
657
|
-
},
|
|
658
|
-
alignOverlay() {
|
|
659
|
-
let target = this.multiple ? this.$refs.multiContainer : this.$refs.focusInput;
|
|
660
|
-
|
|
661
|
-
if (this.appendTo === 'self') {
|
|
662
|
-
DomHandler.relativePosition(this.overlay, target);
|
|
663
|
-
} else {
|
|
664
|
-
this.overlay.style.minWidth = DomHandler.getOuterWidth(target) + 'px';
|
|
665
|
-
DomHandler.absolutePosition(this.overlay, target);
|
|
666
|
-
}
|
|
667
|
-
},
|
|
668
|
-
bindOutsideClickListener() {
|
|
669
|
-
if (!this.outsideClickListener) {
|
|
670
|
-
this.outsideClickListener = (event) => {
|
|
671
|
-
if (this.overlayVisible && this.overlay && this.isOutsideClicked(event)) {
|
|
672
|
-
this.hide();
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
document.addEventListener('click', this.outsideClickListener);
|
|
677
|
-
}
|
|
678
|
-
},
|
|
679
|
-
unbindOutsideClickListener() {
|
|
680
|
-
if (this.outsideClickListener) {
|
|
681
|
-
document.removeEventListener('click', this.outsideClickListener);
|
|
682
|
-
this.outsideClickListener = null;
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
|
-
bindScrollListener() {
|
|
686
|
-
if (!this.scrollHandler) {
|
|
687
|
-
this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, () => {
|
|
688
|
-
if (this.overlayVisible) {
|
|
689
|
-
this.hide();
|
|
690
|
-
}
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
this.scrollHandler.bindScrollListener();
|
|
695
|
-
},
|
|
696
|
-
unbindScrollListener() {
|
|
697
|
-
if (this.scrollHandler) {
|
|
698
|
-
this.scrollHandler.unbindScrollListener();
|
|
699
|
-
}
|
|
700
|
-
},
|
|
701
|
-
bindResizeListener() {
|
|
702
|
-
if (!this.resizeListener) {
|
|
703
|
-
this.resizeListener = () => {
|
|
704
|
-
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
|
705
|
-
this.hide();
|
|
706
|
-
}
|
|
707
|
-
};
|
|
708
|
-
|
|
709
|
-
window.addEventListener('resize', this.resizeListener);
|
|
710
|
-
}
|
|
711
|
-
},
|
|
712
|
-
unbindResizeListener() {
|
|
713
|
-
if (this.resizeListener) {
|
|
714
|
-
window.removeEventListener('resize', this.resizeListener);
|
|
715
|
-
this.resizeListener = null;
|
|
716
|
-
}
|
|
717
|
-
},
|
|
718
|
-
isOutsideClicked(event) {
|
|
719
|
-
return !this.overlay.contains(event.target) && !this.isInputClicked(event) && !this.isDropdownClicked(event);
|
|
720
|
-
},
|
|
721
|
-
isInputClicked(event) {
|
|
722
|
-
if (this.multiple) return event.target === this.$refs.multiContainer || this.$refs.multiContainer.contains(event.target);
|
|
723
|
-
else return event.target === this.$refs.focusInput;
|
|
724
|
-
},
|
|
725
|
-
isDropdownClicked(event) {
|
|
726
|
-
return this.$refs.dropdownButton ? event.target === this.$refs.dropdownButton || this.$refs.dropdownButton.$el.contains(event.target) : false;
|
|
727
|
-
},
|
|
728
|
-
isOptionMatched(option, value) {
|
|
729
|
-
return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
|
|
730
|
-
},
|
|
731
|
-
isValidOption(option) {
|
|
732
|
-
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
733
|
-
},
|
|
734
|
-
isValidSelectedOption(option) {
|
|
735
|
-
return this.isValidOption(option) && this.isSelected(option);
|
|
736
|
-
},
|
|
737
|
-
isSelected(option) {
|
|
738
|
-
return ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
|
|
739
|
-
},
|
|
740
|
-
findFirstOptionIndex() {
|
|
741
|
-
return this.visibleOptions.findIndex((option) => this.isValidOption(option));
|
|
742
|
-
},
|
|
743
|
-
findLastOptionIndex() {
|
|
744
|
-
return ObjectUtils.findLastIndex(this.visibleOptions, (option) => this.isValidOption(option));
|
|
745
|
-
},
|
|
746
|
-
findNextOptionIndex(index) {
|
|
747
|
-
const matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex((option) => this.isValidOption(option)) : -1;
|
|
748
|
-
|
|
749
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
750
|
-
},
|
|
751
|
-
findPrevOptionIndex(index) {
|
|
752
|
-
const matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), (option) => this.isValidOption(option)) : -1;
|
|
753
|
-
|
|
754
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
755
|
-
},
|
|
756
|
-
findSelectedOptionIndex() {
|
|
757
|
-
return this.hasSelectedOption ? this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
|
758
|
-
},
|
|
759
|
-
findFirstFocusedOptionIndex() {
|
|
760
|
-
const selectedIndex = this.findSelectedOptionIndex();
|
|
761
|
-
|
|
762
|
-
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
763
|
-
},
|
|
764
|
-
findLastFocusedOptionIndex() {
|
|
765
|
-
const selectedIndex = this.findSelectedOptionIndex();
|
|
766
|
-
|
|
767
|
-
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
768
|
-
},
|
|
769
|
-
search(event, query, source) {
|
|
770
|
-
//allow empty string but not undefined or null
|
|
771
|
-
if (query === undefined || query === null) {
|
|
772
|
-
return;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
//do not search blank values on input change
|
|
776
|
-
if (source === 'input' && query.trim().length === 0) {
|
|
777
|
-
return;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
this.searching = true;
|
|
781
|
-
this.$emit('complete', { originalEvent: event, query });
|
|
782
|
-
},
|
|
783
|
-
removeOption(event, index) {
|
|
784
|
-
const removedOption = this.modelValue[index];
|
|
785
|
-
const value = this.modelValue.filter((_, i) => i !== index).map((option) => this.getOptionValue(option));
|
|
786
|
-
|
|
787
|
-
this.updateModel(event, value);
|
|
788
|
-
this.$emit('item-unselect', { originalEvent: event, value: removedOption });
|
|
789
|
-
this.dirty = true;
|
|
790
|
-
DomHandler.focus(this.$refs.focusInput);
|
|
791
|
-
},
|
|
792
|
-
changeFocusedOptionIndex(event, index) {
|
|
793
|
-
if (this.focusedOptionIndex !== index) {
|
|
794
|
-
this.focusedOptionIndex = index;
|
|
795
|
-
this.scrollInView();
|
|
796
|
-
|
|
797
|
-
if (this.selectOnFocus || this.autoHighlight) {
|
|
798
|
-
this.onOptionSelect(event, this.visibleOptions[index], false);
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
scrollInView(index = -1) {
|
|
803
|
-
const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;
|
|
804
|
-
const element = DomHandler.findSingle(this.list, `li[id="${id}"]`);
|
|
805
|
-
|
|
806
|
-
if (element) {
|
|
807
|
-
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
|
|
808
|
-
} else if (!this.virtualScrollerDisabled) {
|
|
809
|
-
setTimeout(() => {
|
|
810
|
-
this.virtualScroller && this.virtualScroller.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex);
|
|
811
|
-
}, 0);
|
|
812
|
-
}
|
|
813
|
-
},
|
|
814
|
-
autoUpdateModel() {
|
|
815
|
-
if ((this.selectOnFocus || this.autoHighlight) && this.autoOptionFocus && !this.hasSelectedOption) {
|
|
816
|
-
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
817
|
-
this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
|
|
818
|
-
}
|
|
819
|
-
},
|
|
820
|
-
updateModel(event, value) {
|
|
821
|
-
this.$emit('update:modelValue', value);
|
|
822
|
-
this.$emit('change', { originalEvent: event, value });
|
|
823
|
-
},
|
|
824
|
-
flatOptions(options) {
|
|
825
|
-
return (options || []).reduce((result, option, index) => {
|
|
826
|
-
result.push({ optionGroup: option, group: true, index });
|
|
827
|
-
|
|
828
|
-
const optionGroupChildren = this.getOptionGroupChildren(option);
|
|
829
|
-
|
|
830
|
-
optionGroupChildren && optionGroupChildren.forEach((o) => result.push(o));
|
|
831
|
-
|
|
832
|
-
return result;
|
|
833
|
-
}, []);
|
|
834
|
-
},
|
|
835
|
-
overlayRef(el) {
|
|
836
|
-
this.overlay = el;
|
|
837
|
-
},
|
|
838
|
-
listRef(el, contentRef) {
|
|
839
|
-
this.list = el;
|
|
840
|
-
contentRef && contentRef(el); // For VirtualScroller
|
|
841
|
-
},
|
|
842
|
-
virtualScrollerRef(el) {
|
|
843
|
-
this.virtualScroller = el;
|
|
604
|
+
onArrowRightKey: function onArrowRightKey(event) {
|
|
605
|
+
this.focusedOptionIndex = -1;
|
|
606
|
+
this.multiple && event.stopPropagation(); // To prevent onArrowRightKeyOnMultiple method
|
|
607
|
+
},
|
|
608
|
+
onHomeKey: function onHomeKey(event) {
|
|
609
|
+
var currentTarget = event.currentTarget;
|
|
610
|
+
var len = currentTarget.value.length;
|
|
611
|
+
currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);
|
|
612
|
+
this.focusedOptionIndex = -1;
|
|
613
|
+
event.preventDefault();
|
|
614
|
+
},
|
|
615
|
+
onEndKey: function onEndKey(event) {
|
|
616
|
+
var currentTarget = event.currentTarget;
|
|
617
|
+
var len = currentTarget.value.length;
|
|
618
|
+
currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);
|
|
619
|
+
this.focusedOptionIndex = -1;
|
|
620
|
+
event.preventDefault();
|
|
621
|
+
},
|
|
622
|
+
onPageUpKey: function onPageUpKey(event) {
|
|
623
|
+
this.scrollInView(0);
|
|
624
|
+
event.preventDefault();
|
|
625
|
+
},
|
|
626
|
+
onPageDownKey: function onPageDownKey(event) {
|
|
627
|
+
this.scrollInView(this.visibleOptions.length - 1);
|
|
628
|
+
event.preventDefault();
|
|
629
|
+
},
|
|
630
|
+
onEnterKey: function onEnterKey(event) {
|
|
631
|
+
if (!this.overlayVisible) {
|
|
632
|
+
this.onArrowDownKey(event);
|
|
633
|
+
} else {
|
|
634
|
+
if (this.focusedOptionIndex !== -1) {
|
|
635
|
+
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
844
636
|
}
|
|
637
|
+
this.hide();
|
|
638
|
+
}
|
|
639
|
+
event.preventDefault();
|
|
845
640
|
},
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
'p-autocomplete-dd-input': this.dropdown
|
|
867
|
-
}
|
|
868
|
-
];
|
|
869
|
-
},
|
|
870
|
-
multiContainerClass() {
|
|
871
|
-
return ['p-autocomplete-multiple-container p-component p-inputtext'];
|
|
872
|
-
},
|
|
873
|
-
panelStyleClass() {
|
|
874
|
-
return [
|
|
875
|
-
'p-autocomplete-panel p-component',
|
|
876
|
-
this.panelClass,
|
|
877
|
-
{
|
|
878
|
-
'p-input-filled': this.$primevue.config.inputStyle === 'filled',
|
|
879
|
-
'p-ripple-disabled': this.$primevue.config.ripple === false
|
|
880
|
-
}
|
|
881
|
-
];
|
|
882
|
-
},
|
|
883
|
-
visibleOptions() {
|
|
884
|
-
return this.optionGroupLabel ? this.flatOptions(this.suggestions) : this.suggestions || [];
|
|
885
|
-
},
|
|
886
|
-
inputValue() {
|
|
887
|
-
if (this.modelValue) {
|
|
888
|
-
if (typeof this.modelValue === 'object') {
|
|
889
|
-
const label = this.getOptionLabel(this.modelValue);
|
|
890
|
-
|
|
891
|
-
return label != null ? label : this.modelValue;
|
|
892
|
-
} else {
|
|
893
|
-
return this.modelValue;
|
|
894
|
-
}
|
|
895
|
-
} else {
|
|
896
|
-
return '';
|
|
897
|
-
}
|
|
898
|
-
},
|
|
899
|
-
hasSelectedOption() {
|
|
900
|
-
return ObjectUtils.isNotEmpty(this.modelValue);
|
|
901
|
-
},
|
|
902
|
-
equalityKey() {
|
|
903
|
-
return this.dataKey; // TODO: The 'optionValue' properties can be added.
|
|
904
|
-
},
|
|
905
|
-
searchResultMessageText() {
|
|
906
|
-
return ObjectUtils.isNotEmpty(this.visibleOptions) && this.overlayVisible ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
|
|
907
|
-
},
|
|
908
|
-
searchMessageText() {
|
|
909
|
-
return this.searchMessage || this.$primevue.config.locale.searchMessage || '';
|
|
910
|
-
},
|
|
911
|
-
emptySearchMessageText() {
|
|
912
|
-
return this.emptySearchMessage || this.$primevue.config.locale.emptySearchMessage || '';
|
|
913
|
-
},
|
|
914
|
-
selectionMessageText() {
|
|
915
|
-
return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
|
|
916
|
-
},
|
|
917
|
-
emptySelectionMessageText() {
|
|
918
|
-
return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
|
|
919
|
-
},
|
|
920
|
-
selectedMessageText() {
|
|
921
|
-
return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
|
|
922
|
-
},
|
|
923
|
-
focusedOptionId() {
|
|
924
|
-
return this.focusedOptionIndex !== -1 ? `${this.id}_${this.focusedOptionIndex}` : null;
|
|
925
|
-
},
|
|
926
|
-
focusedMultipleOptionId() {
|
|
927
|
-
return this.focusedMultipleOptionIndex !== -1 ? `${this.id}_multiple_option_${this.focusedMultipleOptionIndex}` : null;
|
|
928
|
-
},
|
|
929
|
-
ariaSetSize() {
|
|
930
|
-
return this.visibleOptions.filter((option) => !this.isOptionGroup(option)).length;
|
|
931
|
-
},
|
|
932
|
-
virtualScrollerDisabled() {
|
|
933
|
-
return !this.virtualScrollerOptions;
|
|
641
|
+
onEscapeKey: function onEscapeKey(event) {
|
|
642
|
+
this.overlayVisible && this.hide(true);
|
|
643
|
+
event.preventDefault();
|
|
644
|
+
},
|
|
645
|
+
onTabKey: function onTabKey(event) {
|
|
646
|
+
if (this.focusedOptionIndex !== -1) {
|
|
647
|
+
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
648
|
+
}
|
|
649
|
+
this.overlayVisible && this.hide();
|
|
650
|
+
},
|
|
651
|
+
onBackspaceKey: function onBackspaceKey(event) {
|
|
652
|
+
if (this.multiple) {
|
|
653
|
+
if (ObjectUtils.isNotEmpty(this.modelValue) && !this.$refs.focusInput.value) {
|
|
654
|
+
var removedValue = this.modelValue[this.modelValue.length - 1];
|
|
655
|
+
var newValue = this.modelValue.slice(0, -1);
|
|
656
|
+
this.$emit('update:modelValue', newValue);
|
|
657
|
+
this.$emit('item-unselect', {
|
|
658
|
+
originalEvent: event,
|
|
659
|
+
value: removedValue
|
|
660
|
+
});
|
|
934
661
|
}
|
|
662
|
+
event.stopPropagation(); // To prevent onBackspaceKeyOnMultiple method
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
onArrowLeftKeyOnMultiple: function onArrowLeftKeyOnMultiple() {
|
|
666
|
+
this.focusedMultipleOptionIndex = this.focusedMultipleOptionIndex < 1 ? 0 : this.focusedMultipleOptionIndex - 1;
|
|
667
|
+
},
|
|
668
|
+
onArrowRightKeyOnMultiple: function onArrowRightKeyOnMultiple() {
|
|
669
|
+
this.focusedMultipleOptionIndex++;
|
|
670
|
+
if (this.focusedMultipleOptionIndex > this.modelValue.length - 1) {
|
|
671
|
+
this.focusedMultipleOptionIndex = -1;
|
|
672
|
+
DomHandler.focus(this.$refs.focusInput);
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
onBackspaceKeyOnMultiple: function onBackspaceKeyOnMultiple(event) {
|
|
676
|
+
if (this.focusedMultipleOptionIndex !== -1) {
|
|
677
|
+
this.removeOption(event, this.focusedMultipleOptionIndex);
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
onOverlayEnter: function onOverlayEnter(el) {
|
|
681
|
+
ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
|
|
682
|
+
DomHandler.addStyles(el, {
|
|
683
|
+
position: 'absolute',
|
|
684
|
+
top: '0',
|
|
685
|
+
left: '0'
|
|
686
|
+
});
|
|
687
|
+
this.alignOverlay();
|
|
688
|
+
},
|
|
689
|
+
onOverlayAfterEnter: function onOverlayAfterEnter() {
|
|
690
|
+
this.bindOutsideClickListener();
|
|
691
|
+
this.bindScrollListener();
|
|
692
|
+
this.bindResizeListener();
|
|
693
|
+
this.$emit('show');
|
|
694
|
+
},
|
|
695
|
+
onOverlayLeave: function onOverlayLeave() {
|
|
696
|
+
this.unbindOutsideClickListener();
|
|
697
|
+
this.unbindScrollListener();
|
|
698
|
+
this.unbindResizeListener();
|
|
699
|
+
this.$emit('hide');
|
|
700
|
+
this.overlay = null;
|
|
701
|
+
},
|
|
702
|
+
onOverlayAfterLeave: function onOverlayAfterLeave(el) {
|
|
703
|
+
ZIndexUtils.clear(el);
|
|
704
|
+
},
|
|
705
|
+
alignOverlay: function alignOverlay() {
|
|
706
|
+
var target = this.multiple ? this.$refs.multiContainer : this.$refs.focusInput;
|
|
707
|
+
if (this.appendTo === 'self') {
|
|
708
|
+
DomHandler.relativePosition(this.overlay, target);
|
|
709
|
+
} else {
|
|
710
|
+
this.overlay.style.minWidth = DomHandler.getOuterWidth(target) + 'px';
|
|
711
|
+
DomHandler.absolutePosition(this.overlay, target);
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
715
|
+
var _this5 = this;
|
|
716
|
+
if (!this.outsideClickListener) {
|
|
717
|
+
this.outsideClickListener = function (event) {
|
|
718
|
+
if (_this5.overlayVisible && _this5.overlay && _this5.isOutsideClicked(event)) {
|
|
719
|
+
_this5.hide();
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
document.addEventListener('click', this.outsideClickListener);
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
unbindOutsideClickListener: function unbindOutsideClickListener() {
|
|
726
|
+
if (this.outsideClickListener) {
|
|
727
|
+
document.removeEventListener('click', this.outsideClickListener);
|
|
728
|
+
this.outsideClickListener = null;
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
bindScrollListener: function bindScrollListener() {
|
|
732
|
+
var _this6 = this;
|
|
733
|
+
if (!this.scrollHandler) {
|
|
734
|
+
this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function () {
|
|
735
|
+
if (_this6.overlayVisible) {
|
|
736
|
+
_this6.hide();
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
this.scrollHandler.bindScrollListener();
|
|
741
|
+
},
|
|
742
|
+
unbindScrollListener: function unbindScrollListener() {
|
|
743
|
+
if (this.scrollHandler) {
|
|
744
|
+
this.scrollHandler.unbindScrollListener();
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
bindResizeListener: function bindResizeListener() {
|
|
748
|
+
var _this7 = this;
|
|
749
|
+
if (!this.resizeListener) {
|
|
750
|
+
this.resizeListener = function () {
|
|
751
|
+
if (_this7.overlayVisible && !DomHandler.isTouchDevice()) {
|
|
752
|
+
_this7.hide();
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
window.addEventListener('resize', this.resizeListener);
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
unbindResizeListener: function unbindResizeListener() {
|
|
759
|
+
if (this.resizeListener) {
|
|
760
|
+
window.removeEventListener('resize', this.resizeListener);
|
|
761
|
+
this.resizeListener = null;
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
isOutsideClicked: function isOutsideClicked(event) {
|
|
765
|
+
return !this.overlay.contains(event.target) && !this.isInputClicked(event) && !this.isDropdownClicked(event);
|
|
766
|
+
},
|
|
767
|
+
isInputClicked: function isInputClicked(event) {
|
|
768
|
+
if (this.multiple) return event.target === this.$refs.multiContainer || this.$refs.multiContainer.contains(event.target);else return event.target === this.$refs.focusInput;
|
|
769
|
+
},
|
|
770
|
+
isDropdownClicked: function isDropdownClicked(event) {
|
|
771
|
+
return this.$refs.dropdownButton ? event.target === this.$refs.dropdownButton || this.$refs.dropdownButton.$el.contains(event.target) : false;
|
|
772
|
+
},
|
|
773
|
+
isOptionMatched: function isOptionMatched(option, value) {
|
|
774
|
+
return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
|
|
775
|
+
},
|
|
776
|
+
isValidOption: function isValidOption(option) {
|
|
777
|
+
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
778
|
+
},
|
|
779
|
+
isValidSelectedOption: function isValidSelectedOption(option) {
|
|
780
|
+
return this.isValidOption(option) && this.isSelected(option);
|
|
781
|
+
},
|
|
782
|
+
isSelected: function isSelected(option) {
|
|
783
|
+
return ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
|
|
784
|
+
},
|
|
785
|
+
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
786
|
+
var _this8 = this;
|
|
787
|
+
return this.visibleOptions.findIndex(function (option) {
|
|
788
|
+
return _this8.isValidOption(option);
|
|
789
|
+
});
|
|
790
|
+
},
|
|
791
|
+
findLastOptionIndex: function findLastOptionIndex() {
|
|
792
|
+
var _this9 = this;
|
|
793
|
+
return ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
|
|
794
|
+
return _this9.isValidOption(option);
|
|
795
|
+
});
|
|
796
|
+
},
|
|
797
|
+
findNextOptionIndex: function findNextOptionIndex(index) {
|
|
798
|
+
var _this10 = this;
|
|
799
|
+
var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
800
|
+
return _this10.isValidOption(option);
|
|
801
|
+
}) : -1;
|
|
802
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
935
803
|
},
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
TimesCircleIcon: TimesCircleIcon
|
|
804
|
+
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
805
|
+
var _this11 = this;
|
|
806
|
+
var matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
807
|
+
return _this11.isValidOption(option);
|
|
808
|
+
}) : -1;
|
|
809
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
943
810
|
},
|
|
944
|
-
|
|
945
|
-
|
|
811
|
+
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
812
|
+
var _this12 = this;
|
|
813
|
+
return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
|
|
814
|
+
return _this12.isValidSelectedOption(option);
|
|
815
|
+
}) : -1;
|
|
816
|
+
},
|
|
817
|
+
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
818
|
+
var selectedIndex = this.findSelectedOptionIndex();
|
|
819
|
+
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
820
|
+
},
|
|
821
|
+
findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
|
|
822
|
+
var selectedIndex = this.findSelectedOptionIndex();
|
|
823
|
+
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
824
|
+
},
|
|
825
|
+
search: function search(event, query, source) {
|
|
826
|
+
//allow empty string but not undefined or null
|
|
827
|
+
if (query === undefined || query === null) {
|
|
828
|
+
return;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
//do not search blank values on input change
|
|
832
|
+
if (source === 'input' && query.trim().length === 0) {
|
|
833
|
+
return;
|
|
834
|
+
}
|
|
835
|
+
this.searching = true;
|
|
836
|
+
this.$emit('complete', {
|
|
837
|
+
originalEvent: event,
|
|
838
|
+
query: query
|
|
839
|
+
});
|
|
840
|
+
},
|
|
841
|
+
removeOption: function removeOption(event, index) {
|
|
842
|
+
var _this13 = this;
|
|
843
|
+
var removedOption = this.modelValue[index];
|
|
844
|
+
var value = this.modelValue.filter(function (_, i) {
|
|
845
|
+
return i !== index;
|
|
846
|
+
}).map(function (option) {
|
|
847
|
+
return _this13.getOptionValue(option);
|
|
848
|
+
});
|
|
849
|
+
this.updateModel(event, value);
|
|
850
|
+
this.$emit('item-unselect', {
|
|
851
|
+
originalEvent: event,
|
|
852
|
+
value: removedOption
|
|
853
|
+
});
|
|
854
|
+
this.dirty = true;
|
|
855
|
+
DomHandler.focus(this.$refs.focusInput);
|
|
856
|
+
},
|
|
857
|
+
changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
|
|
858
|
+
if (this.focusedOptionIndex !== index) {
|
|
859
|
+
this.focusedOptionIndex = index;
|
|
860
|
+
this.scrollInView();
|
|
861
|
+
if (this.selectOnFocus || this.autoHighlight) {
|
|
862
|
+
this.onOptionSelect(event, this.visibleOptions[index], false);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
scrollInView: function scrollInView() {
|
|
867
|
+
var _this14 = this;
|
|
868
|
+
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
869
|
+
var id = index !== -1 ? "".concat(this.id, "_").concat(index) : this.focusedOptionId;
|
|
870
|
+
var element = DomHandler.findSingle(this.list, "li[id=\"".concat(id, "\"]"));
|
|
871
|
+
if (element) {
|
|
872
|
+
element.scrollIntoView && element.scrollIntoView({
|
|
873
|
+
block: 'nearest',
|
|
874
|
+
inline: 'start'
|
|
875
|
+
});
|
|
876
|
+
} else if (!this.virtualScrollerDisabled) {
|
|
877
|
+
setTimeout(function () {
|
|
878
|
+
_this14.virtualScroller && _this14.virtualScroller.scrollToIndex(index !== -1 ? index : _this14.focusedOptionIndex);
|
|
879
|
+
}, 0);
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
autoUpdateModel: function autoUpdateModel() {
|
|
883
|
+
if ((this.selectOnFocus || this.autoHighlight) && this.autoOptionFocus && !this.hasSelectedOption) {
|
|
884
|
+
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
885
|
+
this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
updateModel: function updateModel(event, value) {
|
|
889
|
+
this.$emit('update:modelValue', value);
|
|
890
|
+
this.$emit('change', {
|
|
891
|
+
originalEvent: event,
|
|
892
|
+
value: value
|
|
893
|
+
});
|
|
894
|
+
},
|
|
895
|
+
flatOptions: function flatOptions(options) {
|
|
896
|
+
var _this15 = this;
|
|
897
|
+
return (options || []).reduce(function (result, option, index) {
|
|
898
|
+
result.push({
|
|
899
|
+
optionGroup: option,
|
|
900
|
+
group: true,
|
|
901
|
+
index: index
|
|
902
|
+
});
|
|
903
|
+
var optionGroupChildren = _this15.getOptionGroupChildren(option);
|
|
904
|
+
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
905
|
+
return result.push(o);
|
|
906
|
+
});
|
|
907
|
+
return result;
|
|
908
|
+
}, []);
|
|
909
|
+
},
|
|
910
|
+
overlayRef: function overlayRef(el) {
|
|
911
|
+
this.overlay = el;
|
|
912
|
+
},
|
|
913
|
+
listRef: function listRef(el, contentRef) {
|
|
914
|
+
this.list = el;
|
|
915
|
+
contentRef && contentRef(el); // For VirtualScroller
|
|
916
|
+
},
|
|
917
|
+
virtualScrollerRef: function virtualScrollerRef(el) {
|
|
918
|
+
this.virtualScroller = el;
|
|
946
919
|
}
|
|
920
|
+
},
|
|
921
|
+
computed: {
|
|
922
|
+
visibleOptions: function visibleOptions() {
|
|
923
|
+
return this.optionGroupLabel ? this.flatOptions(this.suggestions) : this.suggestions || [];
|
|
924
|
+
},
|
|
925
|
+
inputValue: function inputValue() {
|
|
926
|
+
if (this.modelValue) {
|
|
927
|
+
if (_typeof$1(this.modelValue) === 'object') {
|
|
928
|
+
var label = this.getOptionLabel(this.modelValue);
|
|
929
|
+
return label != null ? label : this.modelValue;
|
|
930
|
+
} else {
|
|
931
|
+
return this.modelValue;
|
|
932
|
+
}
|
|
933
|
+
} else {
|
|
934
|
+
return '';
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
hasSelectedOption: function hasSelectedOption() {
|
|
938
|
+
return ObjectUtils.isNotEmpty(this.modelValue);
|
|
939
|
+
},
|
|
940
|
+
equalityKey: function equalityKey() {
|
|
941
|
+
return this.dataKey; // TODO: The 'optionValue' properties can be added.
|
|
942
|
+
},
|
|
943
|
+
searchResultMessageText: function searchResultMessageText() {
|
|
944
|
+
return ObjectUtils.isNotEmpty(this.visibleOptions) && this.overlayVisible ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
|
|
945
|
+
},
|
|
946
|
+
searchMessageText: function searchMessageText() {
|
|
947
|
+
return this.searchMessage || this.$primevue.config.locale.searchMessage || '';
|
|
948
|
+
},
|
|
949
|
+
emptySearchMessageText: function emptySearchMessageText() {
|
|
950
|
+
return this.emptySearchMessage || this.$primevue.config.locale.emptySearchMessage || '';
|
|
951
|
+
},
|
|
952
|
+
selectionMessageText: function selectionMessageText() {
|
|
953
|
+
return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';
|
|
954
|
+
},
|
|
955
|
+
emptySelectionMessageText: function emptySelectionMessageText() {
|
|
956
|
+
return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
|
|
957
|
+
},
|
|
958
|
+
selectedMessageText: function selectedMessageText() {
|
|
959
|
+
return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
|
|
960
|
+
},
|
|
961
|
+
focusedOptionId: function focusedOptionId() {
|
|
962
|
+
return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
|
|
963
|
+
},
|
|
964
|
+
focusedMultipleOptionId: function focusedMultipleOptionId() {
|
|
965
|
+
return this.focusedMultipleOptionIndex !== -1 ? "".concat(this.id, "_multiple_option_").concat(this.focusedMultipleOptionIndex) : null;
|
|
966
|
+
},
|
|
967
|
+
ariaSetSize: function ariaSetSize() {
|
|
968
|
+
var _this16 = this;
|
|
969
|
+
return this.visibleOptions.filter(function (option) {
|
|
970
|
+
return !_this16.isOptionGroup(option);
|
|
971
|
+
}).length;
|
|
972
|
+
},
|
|
973
|
+
virtualScrollerDisabled: function virtualScrollerDisabled() {
|
|
974
|
+
return !this.virtualScrollerOptions;
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
components: {
|
|
978
|
+
Button: Button,
|
|
979
|
+
VirtualScroller: VirtualScroller,
|
|
980
|
+
Portal: Portal,
|
|
981
|
+
ChevronDownIcon: ChevronDownIcon,
|
|
982
|
+
SpinnerIcon: SpinnerIcon,
|
|
983
|
+
TimesCircleIcon: TimesCircleIcon
|
|
984
|
+
},
|
|
985
|
+
directives: {
|
|
986
|
+
ripple: Ripple
|
|
987
|
+
}
|
|
947
988
|
};
|
|
948
989
|
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
990
|
+
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); }
|
|
991
|
+
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; }
|
|
992
|
+
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; }
|
|
993
|
+
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; }
|
|
994
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
995
|
+
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); }
|
|
996
|
+
var _hoisted_1 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
|
|
997
|
+
var _hoisted_2 = ["aria-activedescendant"];
|
|
998
|
+
var _hoisted_3 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
|
|
999
|
+
var _hoisted_4 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
|
|
1000
|
+
var _hoisted_5 = ["id"];
|
|
1001
|
+
var _hoisted_6 = ["id"];
|
|
1002
|
+
var _hoisted_7 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focus", "data-p-disabled"];
|
|
957
1003
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
return (openBlock(), createElementBlock("div", mergeProps({
|
|
1004
|
+
var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
|
|
1005
|
+
var _component_Button = resolveComponent("Button");
|
|
1006
|
+
var _component_VirtualScroller = resolveComponent("VirtualScroller");
|
|
1007
|
+
var _component_Portal = resolveComponent("Portal");
|
|
1008
|
+
var _directive_ripple = resolveDirective("ripple");
|
|
1009
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
965
1010
|
ref: "container",
|
|
966
|
-
class:
|
|
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
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
:
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
"aria-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1011
|
+
"class": _ctx.cx('root'),
|
|
1012
|
+
style: _ctx.sx('root'),
|
|
1013
|
+
onClick: _cache[15] || (_cache[15] = function () {
|
|
1014
|
+
return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
|
|
1015
|
+
})
|
|
1016
|
+
}, _ctx.ptm('root'), {
|
|
1017
|
+
"data-pc-name": "autocomplete"
|
|
1018
|
+
}), [!_ctx.multiple ? (openBlock(), createElementBlock("input", mergeProps({
|
|
1019
|
+
key: 0,
|
|
1020
|
+
ref: "focusInput",
|
|
1021
|
+
id: _ctx.inputId,
|
|
1022
|
+
type: "text",
|
|
1023
|
+
"class": [_ctx.cx('input'), _ctx.inputClass],
|
|
1024
|
+
style: _ctx.inputStyle,
|
|
1025
|
+
value: $options.inputValue,
|
|
1026
|
+
placeholder: _ctx.placeholder,
|
|
1027
|
+
tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
|
|
1028
|
+
disabled: _ctx.disabled,
|
|
1029
|
+
autocomplete: "off",
|
|
1030
|
+
role: "combobox",
|
|
1031
|
+
"aria-label": _ctx.ariaLabel,
|
|
1032
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
1033
|
+
"aria-haspopup": "listbox",
|
|
1034
|
+
"aria-autocomplete": "list",
|
|
1035
|
+
"aria-expanded": $data.overlayVisible,
|
|
1036
|
+
"aria-controls": $data.id + '_list',
|
|
1037
|
+
"aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
|
|
1038
|
+
onFocus: _cache[0] || (_cache[0] = function () {
|
|
1039
|
+
return $options.onFocus && $options.onFocus.apply($options, arguments);
|
|
1040
|
+
}),
|
|
1041
|
+
onBlur: _cache[1] || (_cache[1] = function () {
|
|
1042
|
+
return $options.onBlur && $options.onBlur.apply($options, arguments);
|
|
1043
|
+
}),
|
|
1044
|
+
onKeydown: _cache[2] || (_cache[2] = function () {
|
|
1045
|
+
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
1046
|
+
}),
|
|
1047
|
+
onInput: _cache[3] || (_cache[3] = function () {
|
|
1048
|
+
return $options.onInput && $options.onInput.apply($options, arguments);
|
|
1049
|
+
}),
|
|
1050
|
+
onChange: _cache[4] || (_cache[4] = function () {
|
|
1051
|
+
return $options.onChange && $options.onChange.apply($options, arguments);
|
|
1052
|
+
})
|
|
1053
|
+
}, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('input'))), null, 16, _hoisted_1)) : createCommentVNode("", true), _ctx.multiple ? (openBlock(), createElementBlock("ul", mergeProps({
|
|
1054
|
+
key: 1,
|
|
1055
|
+
ref: "multiContainer",
|
|
1056
|
+
"class": _ctx.cx('container'),
|
|
1057
|
+
tabindex: "-1",
|
|
1058
|
+
role: "listbox",
|
|
1059
|
+
"aria-orientation": "horizontal",
|
|
1060
|
+
"aria-activedescendant": $data.focused ? $options.focusedMultipleOptionId : undefined,
|
|
1061
|
+
onFocus: _cache[10] || (_cache[10] = function () {
|
|
1062
|
+
return $options.onMultipleContainerFocus && $options.onMultipleContainerFocus.apply($options, arguments);
|
|
1063
|
+
}),
|
|
1064
|
+
onBlur: _cache[11] || (_cache[11] = function () {
|
|
1065
|
+
return $options.onMultipleContainerBlur && $options.onMultipleContainerBlur.apply($options, arguments);
|
|
1066
|
+
}),
|
|
1067
|
+
onKeydown: _cache[12] || (_cache[12] = function () {
|
|
1068
|
+
return $options.onMultipleContainerKeyDown && $options.onMultipleContainerKeyDown.apply($options, arguments);
|
|
1069
|
+
})
|
|
1070
|
+
}, _ctx.ptm('container')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.modelValue, function (option, i) {
|
|
1071
|
+
return openBlock(), createElementBlock("li", mergeProps({
|
|
1072
|
+
key: i,
|
|
1073
|
+
id: $data.id + '_multiple_option_' + i,
|
|
1074
|
+
"class": _ctx.cx('token', {
|
|
1075
|
+
i: i
|
|
1076
|
+
}),
|
|
1077
|
+
role: "option",
|
|
1078
|
+
"aria-label": $options.getOptionLabel(option),
|
|
1079
|
+
"aria-selected": true,
|
|
1080
|
+
"aria-setsize": _ctx.modelValue.length,
|
|
1081
|
+
"aria-posinset": i + 1
|
|
1082
|
+
}, _ctx.ptm('token')), [renderSlot(_ctx.$slots, "chip", {
|
|
1083
|
+
value: option
|
|
1084
|
+
}, function () {
|
|
1085
|
+
return [createElementVNode("span", mergeProps({
|
|
1086
|
+
"class": _ctx.cx('tokenLabel')
|
|
1087
|
+
}, _ctx.ptm('tokenLabel')), toDisplayString($options.getOptionLabel(option)), 17)];
|
|
1088
|
+
}), renderSlot(_ctx.$slots, "removetokenicon", {
|
|
1089
|
+
"class": normalizeClass(_ctx.cx(_ctx.removeTokenIcon)),
|
|
1090
|
+
onClick: function onClick(event) {
|
|
1091
|
+
return $options.removeOption(event, i);
|
|
1092
|
+
}
|
|
1093
|
+
}, function () {
|
|
1094
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.removeTokenIcon ? 'span' : 'TimesCircleIcon'), mergeProps({
|
|
1095
|
+
"class": [_ctx.cx(_ctx.removeTokenIcon), _ctx.removeTokenIcon],
|
|
1096
|
+
onClick: function onClick($event) {
|
|
1097
|
+
return $options.removeOption($event, i);
|
|
1098
|
+
},
|
|
1099
|
+
"aria-hidden": "true"
|
|
1100
|
+
}, _ctx.ptm('removeTokenIcon')), null, 16, ["class", "onClick"]))];
|
|
1101
|
+
})], 16, _hoisted_3);
|
|
1102
|
+
}), 128)), createElementVNode("li", mergeProps({
|
|
1103
|
+
"class": _ctx.cx('inputToken'),
|
|
1104
|
+
role: "option"
|
|
1105
|
+
}, _ctx.ptm('inputToken')), [createElementVNode("input", mergeProps({
|
|
1106
|
+
ref: "focusInput",
|
|
1107
|
+
id: _ctx.inputId,
|
|
1108
|
+
type: "text",
|
|
1109
|
+
style: _ctx.inputStyle,
|
|
1110
|
+
"class": _ctx.inputClass,
|
|
1111
|
+
placeholder: _ctx.placeholder,
|
|
1112
|
+
tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
|
|
1113
|
+
disabled: _ctx.disabled,
|
|
1114
|
+
autocomplete: "off",
|
|
1115
|
+
role: "combobox",
|
|
1116
|
+
"aria-label": _ctx.ariaLabel,
|
|
1117
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
1118
|
+
"aria-haspopup": "listbox",
|
|
1119
|
+
"aria-autocomplete": "list",
|
|
1120
|
+
"aria-expanded": $data.overlayVisible,
|
|
1121
|
+
"aria-controls": $data.id + '_list',
|
|
1122
|
+
"aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
|
|
1123
|
+
onFocus: _cache[5] || (_cache[5] = function () {
|
|
1124
|
+
return $options.onFocus && $options.onFocus.apply($options, arguments);
|
|
1125
|
+
}),
|
|
1126
|
+
onBlur: _cache[6] || (_cache[6] = function () {
|
|
1127
|
+
return $options.onBlur && $options.onBlur.apply($options, arguments);
|
|
1128
|
+
}),
|
|
1129
|
+
onKeydown: _cache[7] || (_cache[7] = function () {
|
|
1130
|
+
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
1131
|
+
}),
|
|
1132
|
+
onInput: _cache[8] || (_cache[8] = function () {
|
|
1133
|
+
return $options.onInput && $options.onInput.apply($options, arguments);
|
|
1134
|
+
}),
|
|
1135
|
+
onChange: _cache[9] || (_cache[9] = function () {
|
|
1136
|
+
return $options.onChange && $options.onChange.apply($options, arguments);
|
|
1137
|
+
})
|
|
1138
|
+
}, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('input'))), null, 16, _hoisted_4)], 16)], 16, _hoisted_2)) : createCommentVNode("", true), $data.searching ? renderSlot(_ctx.$slots, "loadingicon", {
|
|
1139
|
+
key: 2,
|
|
1140
|
+
"class": normalizeClass(_ctx.cx('loadingIcon'))
|
|
1141
|
+
}, function () {
|
|
1142
|
+
return [_ctx.loadingIcon ? (openBlock(), createElementBlock("i", mergeProps({
|
|
1143
|
+
key: 0,
|
|
1144
|
+
"class": ['pi-spin', _ctx.cx('loadingIcon'), _ctx.loadingIcon],
|
|
1145
|
+
"aria-hidden": "true"
|
|
1146
|
+
}, _ctx.ptm('loadingIcon')), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
|
|
1147
|
+
key: 1,
|
|
1148
|
+
"class": [_ctx.cx('loadingIcon'), _ctx.loadingIcon],
|
|
1149
|
+
spin: "",
|
|
1150
|
+
"aria-hidden": "true"
|
|
1151
|
+
}, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
|
|
1152
|
+
}) : createCommentVNode("", true), _ctx.dropdown ? (openBlock(), createBlock(_component_Button, {
|
|
1153
|
+
key: 3,
|
|
1154
|
+
ref: "dropdownButton",
|
|
1155
|
+
type: "button",
|
|
1156
|
+
tabindex: "-1",
|
|
1157
|
+
"class": normalizeClass([_ctx.cx('dropdownButton'), _ctx.dropdownClass]),
|
|
1158
|
+
disabled: _ctx.disabled,
|
|
1159
|
+
"aria-hidden": "true",
|
|
1160
|
+
onClick: $options.onDropdownClick,
|
|
1161
|
+
unstyled: _ctx.unstyled,
|
|
1162
|
+
pt: _ctx.ptm('dropdownButton'),
|
|
1163
|
+
"data-pc-section": "dropdownbutton"
|
|
1164
|
+
}, {
|
|
1165
|
+
icon: withCtx(function () {
|
|
1166
|
+
return [renderSlot(_ctx.$slots, "dropdownicon", {
|
|
1167
|
+
"class": normalizeClass(_ctx.dropdownIcon)
|
|
1168
|
+
}, function () {
|
|
1169
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
|
|
1170
|
+
"class": _ctx.dropdownIcon
|
|
1171
|
+
}, _ctx.ptm('dropdownButton')['icon']), null, 16, ["class"]))];
|
|
1172
|
+
})];
|
|
1173
|
+
}),
|
|
1174
|
+
_: 3
|
|
1175
|
+
}, 8, ["class", "disabled", "onClick", "unstyled", "pt"])) : createCommentVNode("", true), createElementVNode("span", mergeProps({
|
|
1176
|
+
role: "status",
|
|
1177
|
+
"aria-live": "polite",
|
|
1178
|
+
"class": "p-hidden-accessible"
|
|
1179
|
+
}, _ctx.ptm('hiddenSearchResult'), {
|
|
1180
|
+
"data-p-hidden-accessible": true
|
|
1181
|
+
}), toDisplayString($options.searchResultMessageText), 17), createVNode(_component_Portal, {
|
|
1182
|
+
appendTo: _ctx.appendTo
|
|
1183
|
+
}, {
|
|
1184
|
+
"default": withCtx(function () {
|
|
1185
|
+
return [createVNode(Transition, {
|
|
1186
|
+
name: "p-connected-overlay",
|
|
1187
|
+
onEnter: $options.onOverlayEnter,
|
|
1188
|
+
onAfterEnter: $options.onOverlayAfterEnter,
|
|
1189
|
+
onLeave: $options.onOverlayLeave,
|
|
1190
|
+
onAfterLeave: $options.onOverlayAfterLeave
|
|
1191
|
+
}, {
|
|
1192
|
+
"default": withCtx(function () {
|
|
1193
|
+
return [$data.overlayVisible ? (openBlock(), createElementBlock("div", mergeProps({
|
|
1194
|
+
key: 0,
|
|
1195
|
+
ref: $options.overlayRef,
|
|
1196
|
+
"class": [_ctx.cx('panel'), _ctx.panelClass],
|
|
1197
|
+
style: _objectSpread(_objectSpread({}, _ctx.panelStyle), {}, {
|
|
1198
|
+
'max-height': $options.virtualScrollerDisabled ? _ctx.scrollHeight : ''
|
|
1199
|
+
}),
|
|
1200
|
+
onClick: _cache[13] || (_cache[13] = function () {
|
|
1201
|
+
return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
|
|
1202
|
+
}),
|
|
1203
|
+
onKeydown: _cache[14] || (_cache[14] = function () {
|
|
1204
|
+
return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
|
|
1205
|
+
})
|
|
1206
|
+
}, _objectSpread(_objectSpread({}, _ctx.panelProps), _ctx.ptm('panel'))), [renderSlot(_ctx.$slots, "header", {
|
|
1207
|
+
value: _ctx.modelValue,
|
|
1208
|
+
suggestions: $options.visibleOptions
|
|
1209
|
+
}), createVNode(_component_VirtualScroller, mergeProps({
|
|
1210
|
+
ref: $options.virtualScrollerRef
|
|
1211
|
+
}, _ctx.virtualScrollerOptions, {
|
|
1212
|
+
style: {
|
|
1213
|
+
height: _ctx.scrollHeight
|
|
1214
|
+
},
|
|
1215
|
+
items: $options.visibleOptions,
|
|
1216
|
+
tabindex: -1,
|
|
1217
|
+
disabled: $options.virtualScrollerDisabled,
|
|
1218
|
+
pt: _ctx.ptm('virtualScroller')
|
|
1219
|
+
}), createSlots({
|
|
1220
|
+
content: withCtx(function (_ref) {
|
|
1221
|
+
var styleClass = _ref.styleClass,
|
|
1222
|
+
contentRef = _ref.contentRef,
|
|
1223
|
+
items = _ref.items,
|
|
1224
|
+
getItemOptions = _ref.getItemOptions,
|
|
1225
|
+
contentStyle = _ref.contentStyle,
|
|
1226
|
+
itemSize = _ref.itemSize;
|
|
1227
|
+
return [createElementVNode("ul", mergeProps({
|
|
1228
|
+
ref: function ref(el) {
|
|
1229
|
+
return $options.listRef(el, contentRef);
|
|
1230
|
+
},
|
|
1231
|
+
id: $data.id + '_list',
|
|
1232
|
+
"class": [_ctx.cx('list'), styleClass],
|
|
1233
|
+
style: contentStyle,
|
|
1234
|
+
role: "listbox"
|
|
1235
|
+
}, _ctx.ptm('list')), [(openBlock(true), createElementBlock(Fragment, null, renderList(items, function (option, i) {
|
|
1236
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
1237
|
+
key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
|
|
1238
|
+
}, [$options.isOptionGroup(option) ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1120
1239
|
key: 0,
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1240
|
+
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1241
|
+
style: {
|
|
1242
|
+
height: itemSize ? itemSize + 'px' : undefined
|
|
1243
|
+
},
|
|
1244
|
+
"class": _ctx.cx('itemGroup'),
|
|
1245
|
+
role: "option"
|
|
1246
|
+
}, _ctx.ptm('itemGroup')), [renderSlot(_ctx.$slots, "optiongroup", {
|
|
1247
|
+
option: option.optionGroup,
|
|
1248
|
+
item: option.optionGroup,
|
|
1249
|
+
index: $options.getOptionIndex(i, getItemOptions)
|
|
1250
|
+
}, function () {
|
|
1251
|
+
return [createTextVNode(toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];
|
|
1252
|
+
})], 16, _hoisted_6)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
|
|
1253
|
+
key: 1,
|
|
1254
|
+
id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1255
|
+
style: {
|
|
1256
|
+
height: itemSize ? itemSize + 'px' : undefined
|
|
1257
|
+
},
|
|
1258
|
+
"class": _ctx.cx('item', {
|
|
1259
|
+
option: option,
|
|
1260
|
+
i: i,
|
|
1261
|
+
getItemOptions: getItemOptions
|
|
1130
1262
|
}),
|
|
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
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
])
|
|
1194
|
-
], 16, _hoisted_7)), [
|
|
1195
|
-
[_directive_ripple]
|
|
1196
|
-
])
|
|
1197
|
-
], 64))
|
|
1198
|
-
}), 128)),
|
|
1199
|
-
(!items || (items && items.length === 0))
|
|
1200
|
-
? (openBlock(), createElementBlock("li", mergeProps({
|
|
1201
|
-
key: 0,
|
|
1202
|
-
class: "p-autocomplete-empty-message",
|
|
1203
|
-
role: "option"
|
|
1204
|
-
}, _ctx.ptm('emptyMessage')), [
|
|
1205
|
-
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
1206
|
-
createTextVNode(toDisplayString($options.searchResultMessageText), 1)
|
|
1207
|
-
])
|
|
1208
|
-
], 16))
|
|
1209
|
-
: createCommentVNode("", true)
|
|
1210
|
-
], 16, _hoisted_5)
|
|
1211
|
-
]),
|
|
1212
|
-
_: 2
|
|
1213
|
-
}, [
|
|
1214
|
-
(_ctx.$slots.loader)
|
|
1215
|
-
? {
|
|
1216
|
-
name: "loader",
|
|
1217
|
-
fn: withCtx(({ options }) => [
|
|
1218
|
-
renderSlot(_ctx.$slots, "loader", { options: options })
|
|
1219
|
-
]),
|
|
1220
|
-
key: "0"
|
|
1221
|
-
}
|
|
1222
|
-
: undefined
|
|
1223
|
-
]), 1040, ["style", "items", "disabled"]),
|
|
1224
|
-
renderSlot(_ctx.$slots, "footer", {
|
|
1225
|
-
value: $props.modelValue,
|
|
1226
|
-
suggestions: $options.visibleOptions
|
|
1227
|
-
}),
|
|
1228
|
-
createElementVNode("span", mergeProps({
|
|
1229
|
-
role: "status",
|
|
1230
|
-
"aria-live": "polite",
|
|
1231
|
-
class: "p-hidden-accessible"
|
|
1232
|
-
}, _ctx.ptm('hiddenSelectedMessage')), toDisplayString($options.selectedMessageText), 17)
|
|
1233
|
-
], 16))
|
|
1234
|
-
: createCommentVNode("", true)
|
|
1235
|
-
]),
|
|
1236
|
-
_: 3
|
|
1237
|
-
}, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])
|
|
1238
|
-
]),
|
|
1239
|
-
_: 3
|
|
1240
|
-
}, 8, ["appendTo"])
|
|
1241
|
-
], 16))
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
function styleInject(css, ref) {
|
|
1245
|
-
if ( ref === void 0 ) ref = {};
|
|
1246
|
-
var insertAt = ref.insertAt;
|
|
1247
|
-
|
|
1248
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
1249
|
-
|
|
1250
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
1251
|
-
var style = document.createElement('style');
|
|
1252
|
-
style.type = 'text/css';
|
|
1253
|
-
|
|
1254
|
-
if (insertAt === 'top') {
|
|
1255
|
-
if (head.firstChild) {
|
|
1256
|
-
head.insertBefore(style, head.firstChild);
|
|
1257
|
-
} else {
|
|
1258
|
-
head.appendChild(style);
|
|
1259
|
-
}
|
|
1260
|
-
} else {
|
|
1261
|
-
head.appendChild(style);
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
if (style.styleSheet) {
|
|
1265
|
-
style.styleSheet.cssText = css;
|
|
1266
|
-
} else {
|
|
1267
|
-
style.appendChild(document.createTextNode(css));
|
|
1268
|
-
}
|
|
1263
|
+
role: "option",
|
|
1264
|
+
"aria-label": $options.getOptionLabel(option),
|
|
1265
|
+
"aria-selected": $options.isSelected(option),
|
|
1266
|
+
"aria-disabled": $options.isOptionDisabled(option),
|
|
1267
|
+
"aria-setsize": $options.ariaSetSize,
|
|
1268
|
+
"aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
|
|
1269
|
+
onClick: function onClick($event) {
|
|
1270
|
+
return $options.onOptionSelect($event, option);
|
|
1271
|
+
},
|
|
1272
|
+
onMousemove: function onMousemove($event) {
|
|
1273
|
+
return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
|
|
1274
|
+
},
|
|
1275
|
+
"data-p-highlight": $options.isSelected(option),
|
|
1276
|
+
"data-p-focus": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
|
|
1277
|
+
"data-p-disabled": $options.isOptionDisabled(option)
|
|
1278
|
+
}, $options.getPTOptions(option, getItemOptions, i, 'item')), [_ctx.$slots.option ? renderSlot(_ctx.$slots, "option", {
|
|
1279
|
+
key: 0,
|
|
1280
|
+
option: option,
|
|
1281
|
+
index: $options.getOptionIndex(i, getItemOptions)
|
|
1282
|
+
}, function () {
|
|
1283
|
+
return [createTextVNode(toDisplayString($options.getOptionLabel(option)), 1)];
|
|
1284
|
+
}) : renderSlot(_ctx.$slots, "item", {
|
|
1285
|
+
key: 1,
|
|
1286
|
+
item: option,
|
|
1287
|
+
index: $options.getOptionIndex(i, getItemOptions)
|
|
1288
|
+
}, function () {
|
|
1289
|
+
return [createTextVNode(toDisplayString($options.getOptionLabel(option)), 1)];
|
|
1290
|
+
})], 16, _hoisted_7)), [[_directive_ripple]])], 64);
|
|
1291
|
+
}), 128)), !items || items && items.length === 0 ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1292
|
+
key: 0,
|
|
1293
|
+
"class": _ctx.cx('emptyMessage'),
|
|
1294
|
+
role: "option"
|
|
1295
|
+
}, _ctx.ptm('emptyMessage')), [renderSlot(_ctx.$slots, "empty", {}, function () {
|
|
1296
|
+
return [createTextVNode(toDisplayString($options.searchResultMessageText), 1)];
|
|
1297
|
+
})], 16)) : createCommentVNode("", true)], 16, _hoisted_5)];
|
|
1298
|
+
}),
|
|
1299
|
+
_: 2
|
|
1300
|
+
}, [_ctx.$slots.loader ? {
|
|
1301
|
+
name: "loader",
|
|
1302
|
+
fn: withCtx(function (_ref2) {
|
|
1303
|
+
var options = _ref2.options;
|
|
1304
|
+
return [renderSlot(_ctx.$slots, "loader", {
|
|
1305
|
+
options: options
|
|
1306
|
+
})];
|
|
1307
|
+
}),
|
|
1308
|
+
key: "0"
|
|
1309
|
+
} : undefined]), 1040, ["style", "items", "disabled", "pt"]), renderSlot(_ctx.$slots, "footer", {
|
|
1310
|
+
value: _ctx.modelValue,
|
|
1311
|
+
suggestions: $options.visibleOptions
|
|
1312
|
+
}), createElementVNode("span", mergeProps({
|
|
1313
|
+
role: "status",
|
|
1314
|
+
"aria-live": "polite",
|
|
1315
|
+
"class": "p-hidden-accessible"
|
|
1316
|
+
}, _ctx.ptm('hiddenSelectedMessage'), {
|
|
1317
|
+
"data-p-hidden-accessible": true
|
|
1318
|
+
}), toDisplayString($options.selectedMessageText), 17)], 16)) : createCommentVNode("", true)];
|
|
1319
|
+
}),
|
|
1320
|
+
_: 3
|
|
1321
|
+
}, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
|
|
1322
|
+
}),
|
|
1323
|
+
_: 3
|
|
1324
|
+
}, 8, ["appendTo"])], 16);
|
|
1269
1325
|
}
|
|
1270
1326
|
|
|
1271
|
-
var css_248z = "\n.p-autocomplete {\n display: inline-flex;\n position: relative;\n}\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n.p-autocomplete-dd .p-autocomplete-input {\n flex: 1 1 auto;\n width: 1%;\n}\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n}\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n";
|
|
1272
|
-
styleInject(css_248z);
|
|
1273
|
-
|
|
1274
1327
|
script.render = render;
|
|
1275
1328
|
|
|
1276
1329
|
export { script as default };
|