primevue 3.20.0 → 3.21.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/autocomplete/AutoComplete.d.ts +5 -1
- package/autocomplete/AutoComplete.vue +9 -5
- package/autocomplete/autocomplete.cjs.js +10 -6
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +10 -6
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +10 -6
- package/autocomplete/autocomplete.min.js +1 -1
- package/calendar/Calendar.vue +1 -0
- package/calendar/calendar.cjs.js +1 -0
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +1 -0
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +1 -0
- package/calendar/calendar.min.js +1 -1
- package/carousel/Carousel.d.ts +9 -1
- package/carousel/Carousel.vue +131 -9
- package/carousel/carousel.cjs.js +142 -29
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +143 -30
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +143 -30
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.vue +4 -4
- package/cascadeselect/cascadeselect.cjs.js +3 -3
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +3 -3
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +3 -3
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/Chart.d.ts +5 -0
- package/chart/Chart.vue +5 -1
- package/chart/chart.cjs.js +6 -2
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +7 -3
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +6 -2
- package/chart/chart.min.js +1 -1
- package/colorpicker/ColorPicker.vue +5 -7
- package/colorpicker/colorpicker.cjs.js +5 -7
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +5 -7
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +6 -8
- package/colorpicker/colorpicker.min.js +1 -1
- package/config/PrimeVue.d.ts +37 -0
- package/config/config.cjs.js +38 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +38 -1
- package/config/config.esm.min.js +1 -1
- package/config/config.js +38 -1
- package/config/config.min.js +1 -1
- package/core/core.js +451 -198
- package/core/core.min.js +11 -11
- package/datatable/BodyCell.vue +39 -14
- package/datatable/ColumnFilter.vue +67 -41
- package/datatable/DataTable.d.ts +9 -1
- package/datatable/DataTable.vue +162 -25
- package/datatable/HeaderCell.vue +12 -6
- package/datatable/HeaderCheckbox.vue +17 -14
- package/datatable/RowCheckbox.vue +28 -13
- package/datatable/RowRadioButton.vue +11 -3
- package/datatable/TableBody.vue +25 -7
- package/datatable/TableFooter.vue +1 -1
- package/datatable/TableHeader.vue +9 -3
- package/datatable/TableLoadingBody.vue +1 -1
- package/datatable/datatable.cjs.js +539 -268
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +538 -268
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +538 -268
- package/datatable/datatable.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +23 -3
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +40 -11
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +40 -11
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +40 -11
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
- package/dialog/Dialog.vue +12 -7
- package/dialog/dialog.cjs.js +14 -9
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +14 -9
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +14 -9
- package/dialog/dialog.min.js +1 -1
- package/dropdown/Dropdown.vue +13 -16
- package/dropdown/dropdown.cjs.js +13 -16
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +13 -16
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +13 -16
- package/dropdown/dropdown.min.js +1 -1
- package/fieldset/Fieldset.vue +1 -1
- package/fieldset/fieldset.cjs.js +1 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +1 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +2 -2
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/FileUpload.d.ts +51 -1
- package/fileupload/FileUpload.vue +2 -2
- package/fileupload/fileupload.cjs.js +2 -2
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +2 -2
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +2 -2
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +86 -64
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +85 -63
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +86 -64
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/Galleria.d.ts +15 -3
- package/galleria/Galleria.vue +36 -6
- package/galleria/GalleriaContent.vue +11 -7
- package/galleria/GalleriaItem.vue +36 -6
- package/galleria/GalleriaThumbnails.vue +108 -4
- package/galleria/galleria.cjs.js +258 -122
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +257 -122
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +258 -123
- package/galleria/galleria.min.js +1 -1
- package/image/Image.vue +71 -13
- package/image/image.cjs.js +112 -39
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +112 -40
- package/image/image.esm.min.js +1 -1
- package/image/image.js +112 -40
- package/image/image.min.js +1 -1
- package/inputnumber/InputNumber.vue +11 -20
- package/inputnumber/inputnumber.cjs.js +11 -20
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +11 -20
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +11 -20
- package/inputnumber/inputnumber.min.js +1 -1
- package/listbox/Listbox.vue +7 -7
- package/listbox/listbox.cjs.js +7 -7
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +7 -7
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +8 -8
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.vue +10 -1
- package/megamenu/megamenu.cjs.js +10 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +10 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +10 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.vue +8 -2
- package/menu/menu.cjs.js +8 -2
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +8 -2
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +8 -2
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.vue +7 -2
- package/menubar/menubar.cjs.js +7 -2
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +7 -2
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +7 -2
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +5 -1
- package/message/Message.vue +9 -2
- package/message/message.cjs.js +17 -6
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +18 -7
- package/message/message.esm.min.js +1 -1
- package/message/message.js +17 -6
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.vue +33 -32
- package/multiselect/multiselect.cjs.js +33 -32
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +34 -33
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +33 -32
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +33 -1
- package/orderlist/OrderList.vue +258 -63
- package/orderlist/orderlist.cjs.js +270 -68
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +271 -69
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +271 -69
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChartNode.vue +7 -1
- package/organizationchart/organizationchart.cjs.js +7 -1
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +8 -2
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +7 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/package.json +1 -1
- package/paginator/CurrentPageReport.vue +0 -1
- package/paginator/JumpToPageDropdown.vue +0 -1
- package/paginator/JumpToPageInput.vue +6 -1
- package/paginator/PageLinks.vue +16 -1
- package/paginator/Paginator.vue +23 -10
- package/paginator/RowsPerPageDropdown.vue +0 -1
- package/paginator/paginator.cjs.js +35 -15
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +35 -15
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +35 -15
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +1 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +1 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +2 -2
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenuList.vue +57 -0
- package/panelmenu/panelmenu.cjs.js +70 -0
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +70 -0
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +70 -0
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.vue +5 -0
- package/password/password.cjs.js +1 -1
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +1 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +1 -1
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +45 -1
- package/picklist/PickList.vue +296 -58
- package/picklist/picklist.cjs.js +340 -88
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +341 -89
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +341 -89
- package/picklist/picklist.min.js +1 -1
- package/resources/primevue.css +2 -6
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +31 -13
- package/resources/themes/arya-green/theme.css +31 -13
- package/resources/themes/arya-orange/theme.css +31 -13
- package/resources/themes/arya-purple/theme.css +31 -13
- package/resources/themes/bootstrap4-dark-blue/theme.css +31 -13
- package/resources/themes/bootstrap4-dark-purple/theme.css +31 -13
- package/resources/themes/bootstrap4-light-blue/theme.css +31 -13
- package/resources/themes/bootstrap4-light-purple/theme.css +31 -13
- package/resources/themes/fluent-light/theme.css +31 -13
- package/resources/themes/lara-dark-blue/theme.css +35 -13
- package/resources/themes/lara-dark-indigo/theme.css +35 -13
- package/resources/themes/lara-dark-purple/theme.css +35 -13
- package/resources/themes/lara-dark-teal/theme.css +35 -13
- package/resources/themes/lara-light-blue/theme.css +35 -13
- package/resources/themes/lara-light-indigo/theme.css +35 -13
- package/resources/themes/lara-light-purple/theme.css +35 -13
- package/resources/themes/lara-light-teal/theme.css +35 -13
- package/resources/themes/luna-amber/theme.css +31 -13
- package/resources/themes/luna-blue/theme.css +31 -13
- package/resources/themes/luna-green/theme.css +31 -13
- package/resources/themes/luna-pink/theme.css +31 -13
- package/resources/themes/md-dark-deeppurple/theme.css +55 -19
- package/resources/themes/md-dark-indigo/theme.css +55 -19
- package/resources/themes/md-light-deeppurple/theme.css +55 -19
- package/resources/themes/md-light-indigo/theme.css +55 -19
- package/resources/themes/mdc-dark-deeppurple/theme.css +55 -19
- package/resources/themes/mdc-dark-indigo/theme.css +55 -19
- package/resources/themes/mdc-light-deeppurple/theme.css +55 -19
- package/resources/themes/mdc-light-indigo/theme.css +55 -19
- package/resources/themes/nova/theme.css +31 -13
- package/resources/themes/nova-accent/theme.css +31 -13
- package/resources/themes/nova-alt/theme.css +31 -13
- package/resources/themes/nova-vue/theme.css +31 -13
- package/resources/themes/rhea/theme.css +31 -13
- package/resources/themes/saga-blue/theme.css +31 -13
- package/resources/themes/saga-green/theme.css +31 -13
- package/resources/themes/saga-orange/theme.css +31 -13
- package/resources/themes/saga-purple/theme.css +31 -13
- package/resources/themes/tailwind-light/theme.css +35 -13
- package/resources/themes/vela-blue/theme.css +31 -13
- package/resources/themes/vela-green/theme.css +31 -13
- package/resources/themes/vela-orange/theme.css +31 -13
- package/resources/themes/vela-purple/theme.css +31 -13
- package/selectbutton/SelectButton.vue +1 -1
- package/selectbutton/selectbutton.cjs.js +1 -1
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +1 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +2 -2
- package/selectbutton/selectbutton.min.js +1 -1
- package/speeddial/SpeedDial.d.ts +19 -1
- package/speeddial/SpeedDial.vue +250 -7
- package/speeddial/speeddial.cjs.js +254 -13
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +255 -14
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +254 -13
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +16 -4
- package/splitbutton/SplitButton.vue +49 -8
- package/splitbutton/splitbutton.cjs.js +49 -16
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +49 -16
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +49 -16
- package/splitbutton/splitbutton.min.js +1 -1
- package/tabmenu/TabMenu.vue +2 -14
- package/tabmenu/tabmenu.cjs.js +12 -11
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +12 -11
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +12 -11
- package/tabmenu/tabmenu.min.js +1 -1
- package/tieredmenu/TieredMenu.vue +13 -3
- package/tieredmenu/tieredmenu.cjs.js +13 -3
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +13 -3
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +13 -3
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/toast/Toast.d.ts +5 -1
- package/toast/Toast.vue +5 -0
- package/toast/ToastMessage.vue +36 -8
- package/toast/toast.cjs.js +48 -12
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +49 -13
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +48 -12
- package/toast/toast.min.js +1 -1
- package/toolbar/Toolbar.d.ts +6 -0
- package/toolbar/Toolbar.vue +12 -2
- package/toolbar/toolbar.cjs.js +7 -3
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +7 -3
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +7 -3
- package/toolbar/toolbar.min.js +1 -1
- package/tree/Tree.d.ts +8 -0
- package/tree/Tree.vue +10 -2
- package/tree/TreeNode.vue +174 -37
- package/tree/tree.cjs.js +192 -58
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +192 -58
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +192 -58
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.vue +40 -26
- package/treeselect/treeselect.cjs.js +45 -29
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +43 -27
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +44 -28
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BodyCell.vue +4 -4
- package/treetable/HeaderCell.vue +4 -2
- package/treetable/TreeTable.d.ts +4 -0
- package/treetable/TreeTable.vue +43 -17
- package/treetable/TreeTableRow.vue +200 -59
- package/treetable/treetable.cjs.js +797 -620
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +794 -617
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +794 -617
- package/treetable/treetable.min.js +1 -1
- package/utils/utils.cjs.js +26 -6
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +26 -6
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +26 -6
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +153 -1
- package/vetur-tags.json +51 -13
- package/web-types.json +420 -4
- package/galleria/GalleriaItemSlot.vue +0 -53
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.autocomplete=function(e,t,i,n,o,l,s){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(e),d=a(t),p=a(i),u=a(n),c=a(l),h={name:"AutoComplete",emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:null,default:null},inputClass:{type:String,default:null},inputProps:{type:null,default:null},panelStyle:{type:null,default:null},panelClass:{type:String,default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:"pi pi-chevron-down"},loadingIcon:{type:String,default:"pi pi-spinner"},removeTokenIcon:{type:String,default:"pi pi-times-circle"},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data:()=>({focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}),watch:{suggestions(){this.searching&&(o.ObjectUtils.isNotEmpty(this.suggestions)?this.show():this.hide(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted(){this.autoUpdateModel()},updated(){this.overlayVisible&&this.alignOverlay()},beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(o.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel(e){return this.field||this.optionLabel?o.ObjectUtils.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:e=>e,getOptionRenderKey(e,t){return(this.dataKey?o.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},isOptionDisabled(e){return!!this.optionDisabled&&o.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel(e){return o.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren(e){return o.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((e=>this.isOptionGroup(e))).length:e)+1},show(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&o.DomHandler.focus(this.$refs.focusInput)},hide(e){const t=()=>{this.$emit("before-hide"),this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex=-1,e&&o.DomHandler.focus(this.$refs.focusInput)};setTimeout((()=>{t()}),0)},onFocus(e){!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e)},onBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let t=e.target.value;this.multiple||this.updateModel(e,t),0===t.length?(this.hide(),this.$emit("clear")):t.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((()=>{this.search(e,t,"input")}),this.delay)):this.hide()},onChange(e){if(this.forceSelection){let t=!1;if(this.visibleOptions){const i=this.visibleOptions.find((t=>this.isOptionMatched(t,e.target.value)));void 0!==i&&(t=!0,!this.isSelected(i)&&this.onOptionSelect(e,i))}t||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus(){this.focused=!0},onMultipleContainerBlur(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown(e){switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}},onContainerClick(e){this.disabled||this.searching||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||o.DomHandler.focus(this.$refs.focusInput)},onDropdownClick(e){let t;this.overlayVisible?this.hide(!0):(o.DomHandler.focus(this.$refs.focusInput),t=this.$refs.focusInput.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown")),this.$emit("dropdown-click",{originalEvent:e,query:t})},onOptionSelect(e,t,i=!0){const n=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[...this.modelValue||[],n])):this.updateModel(e,n),this.$emit("item-select",{originalEvent:e,value:t}),i&&this.hide(!0)},onOptionMouseMove(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick(e){d.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey(e){if(!this.overlayVisible)return;const t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()},onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{const t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey(e){const t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(o.ObjectUtils.isEmpty(t.value)&&this.hasSelectedOption?(o.DomHandler.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey(e){const t=e.currentTarget.value.length;e.shiftKey?e.currentTarget.setSelectionRange(0,t):e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey(e){const t=e.currentTarget,i=t.value.length;e.shiftKey?e.currentTarget.setSelectionRange(0,i):t.setSelectionRange(i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey(e){this.scrollInView(0),e.preventDefault()},onPageDownKey(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey(e){if(this.multiple){if(o.ObjectUtils.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){const t=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,o.DomHandler.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter(e){o.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),this.alignOverlay()},onOverlayAfterEnter(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave(e){o.ZIndexUtils.clear(e)},alignOverlay(){let e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?o.DomHandler.relativePosition(this.overlay,e):(this.overlay.style.minWidth=o.DomHandler.getOuterWidth(e)+"px",o.DomHandler.absolutePosition(this.overlay,e))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.overlay&&this.isOutsideClicked(e)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new o.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!o.DomHandler.isTouchDevice()&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected(e){return o.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex(){return this.visibleOptions.findIndex((e=>this.isValidOption(e)))},findLastOptionIndex(){return o.ObjectUtils.findLastIndex(this.visibleOptions,(e=>this.isValidOption(e)))},findNextOptionIndex(e){const t=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((e=>this.isValidOption(e))):-1;return t>-1?t+e+1:e},findPrevOptionIndex(e){const t=e>0?o.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(e=>this.isValidOption(e))):-1;return t>-1?t:e},findSelectedOptionIndex(){return this.hasSelectedOption?this.visibleOptions.findIndex((e=>this.isValidSelectedOption(e))):-1},findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption(e,t){const i=this.modelValue[t],n=this.modelValue.filter(((e,i)=>i!==t)).map((e=>this.getOptionValue(e)));this.updateModel(e,n),this.$emit("item-unselect",{originalEvent:e,value:i}),this.dirty=!0,o.DomHandler.focus(this.$refs.focusInput)},changeFocusedOptionIndex(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView(e=-1){const t=-1!==e?`${this.id}_${e}`:this.focusedOptionId,i=o.DomHandler.findSingle(this.list,`li[id="${t}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((()=>{this.virtualScroller&&this.virtualScroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex)}),0)},autoUpdateModel(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions(e){return(e||[]).reduce(((e,t,i)=>{e.push({optionGroup:t,group:!0,index:i});const n=this.getOptionGroupChildren(t);return n&&n.forEach((t=>e.push(t))),e}),[])},overlayRef(e){this.overlay=e},listRef(e,t){this.list=e,t&&t(e)},virtualScrollerRef(e){this.virtualScroller=e}},computed:{containerClass(){return["p-autocomplete p-component p-inputwrapper",{"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue||o.ObjectUtils.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}]},inputStyleClass(){return["p-autocomplete-input p-inputtext p-component",this.inputClass,{"p-autocomplete-dd-input":this.dropdown}]},multiContainerClass:()=>["p-autocomplete-multiple-container p-component p-inputtext"],panelStyleClass(){return["p-autocomplete-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},loadingIconClass(){return["p-autocomplete-loader pi-spin",this.loadingIcon]},visibleOptions(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue(){if(this.modelValue){if("object"==typeof this.modelValue){const e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption(){return o.ObjectUtils.isNotEmpty(this.modelValue)},equalityKey(){return this.dataKey},searchResultMessageText(){return o.ObjectUtils.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},id(){return this.$attrs.id||o.UniqueComponentId()},focusedOptionId(){return-1!==this.focusedOptionIndex?`${this.id}_${this.focusedOptionIndex}`:null},focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex}`:null},ariaSetSize(){return this.visibleOptions.filter((e=>!this.isOptionGroup(e))).length},virtualScrollerDisabled(){return!this.virtualScrollerOptions}},components:{Button:r.default,VirtualScroller:c.default,Portal:p.default},directives:{ripple:u.default}};const f=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],m=["aria-activedescendant"],y=["id","aria-label","aria-setsize","aria-posinset"],b={class:"p-autocomplete-token-label"},g=["onClick"],O={class:"p-autocomplete-input-token",role:"option"},v=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],x={role:"status","aria-live":"polite",class:"p-hidden-accessible"},I=["id"],w=["id"],k=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove"],S={role:"status","aria-live":"polite",class:"p-hidden-accessible"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-autocomplete {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\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 -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\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: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\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 -webkit-box-shadow: none;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n"),h.render=function(e,t,i,n,o,l){const a=s.resolveComponent("Button"),r=s.resolveComponent("VirtualScroller"),d=s.resolveComponent("Portal"),p=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",{ref:"container",class:s.normalizeClass(l.containerClass),onClick:t[15]||(t[15]=(...e)=>l.onContainerClick&&l.onContainerClick(...e))},[i.multiple?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("input",s.mergeProps({key:0,ref:"focusInput",id:i.inputId,type:"text",style:i.inputStyle,class:l.inputStyleClass,value:l.inputValue,placeholder:i.placeholder,tabindex:i.disabled?-1:i.tabindex,disabled:i.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":l.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,onFocus:t[0]||(t[0]=(...e)=>l.onFocus&&l.onFocus(...e)),onBlur:t[1]||(t[1]=(...e)=>l.onBlur&&l.onBlur(...e)),onKeydown:t[2]||(t[2]=(...e)=>l.onKeyDown&&l.onKeyDown(...e)),onInput:t[3]||(t[3]=(...e)=>l.onInput&&l.onInput(...e)),onChange:t[4]||(t[4]=(...e)=>l.onChange&&l.onChange(...e))},i.inputProps),null,16,f)),i.multiple?(s.openBlock(),s.createElementBlock("ul",{key:1,ref:"multiContainer",class:s.normalizeClass(l.multiContainerClass),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":o.focused?l.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=(...e)=>l.onMultipleContainerFocus&&l.onMultipleContainerFocus(...e)),onBlur:t[11]||(t[11]=(...e)=>l.onMultipleContainerBlur&&l.onMultipleContainerBlur(...e)),onKeydown:t[12]||(t[12]=(...e)=>l.onMultipleContainerKeyDown&&l.onMultipleContainerKeyDown(...e))},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.modelValue,((t,n)=>(s.openBlock(),s.createElementBlock("li",{key:n,id:l.id+"_multiple_option_"+n,class:s.normalizeClass(["p-autocomplete-token",{"p-focus":o.focusedMultipleOptionIndex===n}]),role:"option","aria-label":l.getOptionLabel(t),"aria-selected":!0,"aria-setsize":i.modelValue.length,"aria-posinset":n+1},[s.renderSlot(e.$slots,"chip",{value:t},(()=>[s.createElementVNode("span",b,s.toDisplayString(l.getOptionLabel(t)),1)])),s.createElementVNode("span",{class:s.normalizeClass(["p-autocomplete-token-icon",i.removeTokenIcon]),onClick:e=>l.removeOption(e,n),"aria-hidden":"true"},null,10,g)],10,y)))),128)),s.createElementVNode("li",O,[s.createElementVNode("input",s.mergeProps({ref:"focusInput",id:i.inputId,type:"text",style:i.inputStyle,class:i.inputClass,placeholder:i.placeholder,tabindex:i.disabled?-1:i.tabindex,disabled:i.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":l.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,onFocus:t[5]||(t[5]=(...e)=>l.onFocus&&l.onFocus(...e)),onBlur:t[6]||(t[6]=(...e)=>l.onBlur&&l.onBlur(...e)),onKeydown:t[7]||(t[7]=(...e)=>l.onKeyDown&&l.onKeyDown(...e)),onInput:t[8]||(t[8]=(...e)=>l.onInput&&l.onInput(...e)),onChange:t[9]||(t[9]=(...e)=>l.onChange&&l.onChange(...e))},i.inputProps),null,16,v)])],42,m)):s.createCommentVNode("",!0),o.searching?(s.openBlock(),s.createElementBlock("i",{key:2,class:s.normalizeClass(l.loadingIconClass),"aria-hidden":"true"},null,2)):s.createCommentVNode("",!0),i.dropdown?(s.openBlock(),s.createBlock(a,{key:3,ref:"dropdownButton",type:"button",icon:i.dropdownIcon,class:"p-autocomplete-dropdown",tabindex:"-1",disabled:i.disabled,"aria-hidden":"true",onClick:l.onDropdownClick},null,8,["icon","disabled","onClick"])):s.createCommentVNode("",!0),s.createElementVNode("span",x,s.toDisplayString(l.searchResultMessageText),1),s.createVNode(d,{appendTo:i.appendTo},{default:s.withCtx((()=>[s.createVNode(s.Transition,{name:"p-connected-overlay",onEnter:l.onOverlayEnter,onAfterEnter:l.onOverlayAfterEnter,onLeave:l.onOverlayLeave,onAfterLeave:l.onOverlayAfterLeave},{default:s.withCtx((()=>[o.overlayVisible?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref:l.overlayRef,class:l.panelStyleClass,style:{...i.panelStyle,"max-height":l.virtualScrollerDisabled?i.scrollHeight:""},onClick:t[13]||(t[13]=(...e)=>l.onOverlayClick&&l.onOverlayClick(...e)),onKeydown:t[14]||(t[14]=(...e)=>l.onOverlayKeyDown&&l.onOverlayKeyDown(...e))},i.panelProps),[s.renderSlot(e.$slots,"header",{value:i.modelValue,suggestions:l.visibleOptions}),s.createVNode(r,s.mergeProps({ref:l.virtualScrollerRef},i.virtualScrollerOptions,{style:{height:i.scrollHeight},items:l.visibleOptions,tabindex:-1,disabled:l.virtualScrollerDisabled}),s.createSlots({content:s.withCtx((({styleClass:t,contentRef:i,items:n,getItemOptions:a,contentStyle:r,itemSize:d})=>[s.createElementVNode("ul",{ref:e=>l.listRef(e,i),id:l.id+"_list",class:s.normalizeClass(["p-autocomplete-items",t]),style:s.normalizeStyle(r),role:"listbox"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n,((t,i)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:l.getOptionRenderKey(t,l.getOptionIndex(i,a))},[l.isOptionGroup(t)?(s.openBlock(),s.createElementBlock("li",{key:0,id:l.id+"_"+l.getOptionIndex(i,a),style:s.normalizeStyle({height:d?d+"px":void 0}),class:"p-autocomplete-item-group",role:"option"},[s.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:l.getOptionIndex(i,a)},(()=>[s.createTextVNode(s.toDisplayString(l.getOptionGroupLabel(t.optionGroup)),1)]))],12,w)):s.withDirectives((s.openBlock(),s.createElementBlock("li",{key:1,id:l.id+"_"+l.getOptionIndex(i,a),style:s.normalizeStyle({height:d?d+"px":void 0}),class:s.normalizeClass(["p-autocomplete-item",{"p-highlight":l.isSelected(t),"p-focus":o.focusedOptionIndex===l.getOptionIndex(i,a),"p-disabled":l.isOptionDisabled(t)}]),role:"option","aria-label":l.getOptionLabel(t),"aria-selected":l.isSelected(t),"aria-disabled":l.isOptionDisabled(t),"aria-setsize":l.ariaSetSize,"aria-posinset":l.getAriaPosInset(l.getOptionIndex(i,a)),onClick:e=>l.onOptionSelect(e,t),onMousemove:e=>l.onOptionMouseMove(e,l.getOptionIndex(i,a))},[e.$slots.option?s.renderSlot(e.$slots,"option",{key:0,option:t,index:l.getOptionIndex(i,a)},(()=>[s.createTextVNode(s.toDisplayString(l.getOptionLabel(t)),1)])):s.renderSlot(e.$slots,"item",{key:1,item:t,index:l.getOptionIndex(i,a)},(()=>[s.createTextVNode(s.toDisplayString(l.getOptionLabel(t)),1)]))],46,k)),[[p]])],64)))),128))],14,I),s.createElementVNode("span",S,s.toDisplayString(l.selectedMessageText),1)])),_:2},[e.$slots.loader?{name:"loader",fn:s.withCtx((({options:t})=>[s.renderSlot(e.$slots,"loader",{options:t})])),key:"0"}:void 0]),1040,["style","items","disabled"]),s.renderSlot(e.$slots,"footer",{value:i.modelValue,suggestions:l.visibleOptions})],16)):s.createCommentVNode("",!0)])),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])])),_:3},8,["appendTo"])],2)},h}(primevue.button,primevue.overlayeventbus,primevue.portal,primevue.ripple,primevue.utils,primevue.virtualscroller,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.autocomplete=function(e,t,i,n,o,l,s){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(e),d=a(t),p=a(i),u=a(n),c=a(l),h={name:"AutoComplete",emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:null,default:null},inputClass:{type:String,default:null},inputProps:{type:null,default:null},panelStyle:{type:null,default:null},panelClass:{type:String,default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:"pi pi-chevron-down"},dropdownClass:{type:String,default:null},loadingIcon:{type:String,default:"pi pi-spinner"},removeTokenIcon:{type:String,default:"pi pi-times-circle"},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data:()=>({focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}),watch:{suggestions(){this.searching&&(o.ObjectUtils.isNotEmpty(this.suggestions)?this.show():this.hide(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted(){this.autoUpdateModel()},updated(){this.overlayVisible&&this.alignOverlay()},beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(o.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel(e){return this.field||this.optionLabel?o.ObjectUtils.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:e=>e,getOptionRenderKey(e,t){return(this.dataKey?o.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},isOptionDisabled(e){return!!this.optionDisabled&&o.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel(e){return o.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren(e){return o.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((e=>this.isOptionGroup(e))).length:e)+1},show(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&o.DomHandler.focus(this.$refs.focusInput)},hide(e){const t=()=>{this.$emit("before-hide"),this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex=-1,e&&o.DomHandler.focus(this.$refs.focusInput)};setTimeout((()=>{t()}),0)},onFocus(e){!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e)},onBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let t=e.target.value;this.multiple||this.updateModel(e,t),0===t.length?(this.hide(),this.$emit("clear")):t.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((()=>{this.search(e,t,"input")}),this.delay)):this.hide()},onChange(e){if(this.forceSelection){let t=!1;if(this.visibleOptions){const i=this.visibleOptions.find((e=>this.isOptionMatched(e,this.$refs.focusInput.value||"")));void 0!==i&&(t=!0,!this.isSelected(i)&&this.onOptionSelect(e,i))}t||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus(){this.focused=!0},onMultipleContainerBlur(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown(e){switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}},onContainerClick(e){this.disabled||this.searching||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||o.DomHandler.focus(this.$refs.focusInput)},onDropdownClick(e){let t;this.overlayVisible?this.hide(!0):(o.DomHandler.focus(this.$refs.focusInput),t=this.$refs.focusInput.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown")),this.$emit("dropdown-click",{originalEvent:e,query:t})},onOptionSelect(e,t,i=!0){const n=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[...this.modelValue||[],n])):this.updateModel(e,n),this.$emit("item-select",{originalEvent:e,value:t}),i&&this.hide(!0)},onOptionMouseMove(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick(e){d.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey(e){if(!this.overlayVisible)return;const t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()},onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{const t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey(e){const t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(o.ObjectUtils.isEmpty(t.value)&&this.hasSelectedOption?(o.DomHandler.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey(e){const t=e.currentTarget.value.length;e.shiftKey?e.currentTarget.setSelectionRange(0,t):e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey(e){const t=e.currentTarget,i=t.value.length;e.shiftKey?e.currentTarget.setSelectionRange(0,i):t.setSelectionRange(i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey(e){this.scrollInView(0),e.preventDefault()},onPageDownKey(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey(e){if(this.multiple){if(o.ObjectUtils.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){const t=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,o.DomHandler.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter(e){o.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),this.alignOverlay()},onOverlayAfterEnter(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave(e){o.ZIndexUtils.clear(e)},alignOverlay(){let e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?o.DomHandler.relativePosition(this.overlay,e):(this.overlay.style.minWidth=o.DomHandler.getOuterWidth(e)+"px",o.DomHandler.absolutePosition(this.overlay,e))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.overlay&&this.isOutsideClicked(e)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new o.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!o.DomHandler.isTouchDevice()&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected(e){return o.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex(){return this.visibleOptions.findIndex((e=>this.isValidOption(e)))},findLastOptionIndex(){return o.ObjectUtils.findLastIndex(this.visibleOptions,(e=>this.isValidOption(e)))},findNextOptionIndex(e){const t=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((e=>this.isValidOption(e))):-1;return t>-1?t+e+1:e},findPrevOptionIndex(e){const t=e>0?o.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(e=>this.isValidOption(e))):-1;return t>-1?t:e},findSelectedOptionIndex(){return this.hasSelectedOption?this.visibleOptions.findIndex((e=>this.isValidSelectedOption(e))):-1},findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption(e,t){const i=this.modelValue[t],n=this.modelValue.filter(((e,i)=>i!==t)).map((e=>this.getOptionValue(e)));this.updateModel(e,n),this.$emit("item-unselect",{originalEvent:e,value:i}),this.dirty=!0,o.DomHandler.focus(this.$refs.focusInput)},changeFocusedOptionIndex(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView(e=-1){const t=-1!==e?`${this.id}_${e}`:this.focusedOptionId,i=o.DomHandler.findSingle(this.list,`li[id="${t}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((()=>{this.virtualScroller&&this.virtualScroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex)}),0)},autoUpdateModel(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions(e){return(e||[]).reduce(((e,t,i)=>{e.push({optionGroup:t,group:!0,index:i});const n=this.getOptionGroupChildren(t);return n&&n.forEach((t=>e.push(t))),e}),[])},overlayRef(e){this.overlay=e},listRef(e,t){this.list=e,t&&t(e)},virtualScrollerRef(e){this.virtualScroller=e}},computed:{containerClass(){return["p-autocomplete p-component p-inputwrapper",{"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue||o.ObjectUtils.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}]},inputStyleClass(){return["p-autocomplete-input p-inputtext p-component",this.inputClass,{"p-autocomplete-dd-input":this.dropdown}]},multiContainerClass:()=>["p-autocomplete-multiple-container p-component p-inputtext"],panelStyleClass(){return["p-autocomplete-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},loadingIconClass(){return["p-autocomplete-loader pi-spin",this.loadingIcon]},visibleOptions(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue(){if(this.modelValue){if("object"==typeof this.modelValue){const e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption(){return o.ObjectUtils.isNotEmpty(this.modelValue)},equalityKey(){return this.dataKey},searchResultMessageText(){return o.ObjectUtils.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},id(){return this.$attrs.id||o.UniqueComponentId()},focusedOptionId(){return-1!==this.focusedOptionIndex?`${this.id}_${this.focusedOptionIndex}`:null},focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex}`:null},ariaSetSize(){return this.visibleOptions.filter((e=>!this.isOptionGroup(e))).length},virtualScrollerDisabled(){return!this.virtualScrollerOptions}},components:{Button:r.default,VirtualScroller:c.default,Portal:p.default},directives:{ripple:u.default}};const f=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],m=["aria-activedescendant"],y=["id","aria-label","aria-setsize","aria-posinset"],b={class:"p-autocomplete-token-label"},g=["onClick"],O={class:"p-autocomplete-input-token",role:"option"},v=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],x={role:"status","aria-live":"polite",class:"p-hidden-accessible"},I=["id"],w=["id"],k=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove"],S={role:"status","aria-live":"polite",class:"p-hidden-accessible"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-autocomplete {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\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 -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\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: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\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 -webkit-box-shadow: none;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n"),h.render=function(e,t,i,n,o,l){const a=s.resolveComponent("Button"),r=s.resolveComponent("VirtualScroller"),d=s.resolveComponent("Portal"),p=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",{ref:"container",class:s.normalizeClass(l.containerClass),onClick:t[15]||(t[15]=(...e)=>l.onContainerClick&&l.onContainerClick(...e))},[i.multiple?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("input",s.mergeProps({key:0,ref:"focusInput",id:i.inputId,type:"text",style:i.inputStyle,class:l.inputStyleClass,value:l.inputValue,placeholder:i.placeholder,tabindex:i.disabled?-1:i.tabindex,disabled:i.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":l.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,onFocus:t[0]||(t[0]=(...e)=>l.onFocus&&l.onFocus(...e)),onBlur:t[1]||(t[1]=(...e)=>l.onBlur&&l.onBlur(...e)),onKeydown:t[2]||(t[2]=(...e)=>l.onKeyDown&&l.onKeyDown(...e)),onInput:t[3]||(t[3]=(...e)=>l.onInput&&l.onInput(...e)),onChange:t[4]||(t[4]=(...e)=>l.onChange&&l.onChange(...e))},i.inputProps),null,16,f)),i.multiple?(s.openBlock(),s.createElementBlock("ul",{key:1,ref:"multiContainer",class:s.normalizeClass(l.multiContainerClass),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":o.focused?l.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=(...e)=>l.onMultipleContainerFocus&&l.onMultipleContainerFocus(...e)),onBlur:t[11]||(t[11]=(...e)=>l.onMultipleContainerBlur&&l.onMultipleContainerBlur(...e)),onKeydown:t[12]||(t[12]=(...e)=>l.onMultipleContainerKeyDown&&l.onMultipleContainerKeyDown(...e))},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.modelValue,((t,n)=>(s.openBlock(),s.createElementBlock("li",{key:n,id:l.id+"_multiple_option_"+n,class:s.normalizeClass(["p-autocomplete-token",{"p-focus":o.focusedMultipleOptionIndex===n}]),role:"option","aria-label":l.getOptionLabel(t),"aria-selected":!0,"aria-setsize":i.modelValue.length,"aria-posinset":n+1},[s.renderSlot(e.$slots,"chip",{value:t},(()=>[s.createElementVNode("span",b,s.toDisplayString(l.getOptionLabel(t)),1)])),s.createElementVNode("span",{class:s.normalizeClass(["p-autocomplete-token-icon",i.removeTokenIcon]),onClick:e=>l.removeOption(e,n),"aria-hidden":"true"},null,10,g)],10,y)))),128)),s.createElementVNode("li",O,[s.createElementVNode("input",s.mergeProps({ref:"focusInput",id:i.inputId,type:"text",style:i.inputStyle,class:i.inputClass,placeholder:i.placeholder,tabindex:i.disabled?-1:i.tabindex,disabled:i.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":l.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,onFocus:t[5]||(t[5]=(...e)=>l.onFocus&&l.onFocus(...e)),onBlur:t[6]||(t[6]=(...e)=>l.onBlur&&l.onBlur(...e)),onKeydown:t[7]||(t[7]=(...e)=>l.onKeyDown&&l.onKeyDown(...e)),onInput:t[8]||(t[8]=(...e)=>l.onInput&&l.onInput(...e)),onChange:t[9]||(t[9]=(...e)=>l.onChange&&l.onChange(...e))},i.inputProps),null,16,v)])],42,m)):s.createCommentVNode("",!0),o.searching?(s.openBlock(),s.createElementBlock("i",{key:2,class:s.normalizeClass(l.loadingIconClass),"aria-hidden":"true"},null,2)):s.createCommentVNode("",!0),i.dropdown?(s.openBlock(),s.createBlock(a,{key:3,ref:"dropdownButton",type:"button",icon:i.dropdownIcon,class:s.normalizeClass(["p-autocomplete-dropdown",i.dropdownClass]),tabindex:"-1",disabled:i.disabled,"aria-hidden":"true",onClick:l.onDropdownClick},null,8,["icon","class","disabled","onClick"])):s.createCommentVNode("",!0),s.createElementVNode("span",x,s.toDisplayString(l.searchResultMessageText),1),s.createVNode(d,{appendTo:i.appendTo},{default:s.withCtx((()=>[s.createVNode(s.Transition,{name:"p-connected-overlay",onEnter:l.onOverlayEnter,onAfterEnter:l.onOverlayAfterEnter,onLeave:l.onOverlayLeave,onAfterLeave:l.onOverlayAfterLeave},{default:s.withCtx((()=>[o.overlayVisible?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref:l.overlayRef,class:l.panelStyleClass,style:{...i.panelStyle,"max-height":l.virtualScrollerDisabled?i.scrollHeight:""},onClick:t[13]||(t[13]=(...e)=>l.onOverlayClick&&l.onOverlayClick(...e)),onKeydown:t[14]||(t[14]=(...e)=>l.onOverlayKeyDown&&l.onOverlayKeyDown(...e))},i.panelProps),[s.renderSlot(e.$slots,"header",{value:i.modelValue,suggestions:l.visibleOptions}),s.createVNode(r,s.mergeProps({ref:l.virtualScrollerRef},i.virtualScrollerOptions,{style:{height:i.scrollHeight},items:l.visibleOptions,tabindex:-1,disabled:l.virtualScrollerDisabled}),s.createSlots({content:s.withCtx((({styleClass:t,contentRef:i,items:n,getItemOptions:a,contentStyle:r,itemSize:d})=>[s.createElementVNode("ul",{ref:e=>l.listRef(e,i),id:l.id+"_list",class:s.normalizeClass(["p-autocomplete-items",t]),style:s.normalizeStyle(r),role:"listbox"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n,((t,i)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:l.getOptionRenderKey(t,l.getOptionIndex(i,a))},[l.isOptionGroup(t)?(s.openBlock(),s.createElementBlock("li",{key:0,id:l.id+"_"+l.getOptionIndex(i,a),style:s.normalizeStyle({height:d?d+"px":void 0}),class:"p-autocomplete-item-group",role:"option"},[s.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:l.getOptionIndex(i,a)},(()=>[s.createTextVNode(s.toDisplayString(l.getOptionGroupLabel(t.optionGroup)),1)]))],12,w)):s.withDirectives((s.openBlock(),s.createElementBlock("li",{key:1,id:l.id+"_"+l.getOptionIndex(i,a),style:s.normalizeStyle({height:d?d+"px":void 0}),class:s.normalizeClass(["p-autocomplete-item",{"p-highlight":l.isSelected(t),"p-focus":o.focusedOptionIndex===l.getOptionIndex(i,a),"p-disabled":l.isOptionDisabled(t)}]),role:"option","aria-label":l.getOptionLabel(t),"aria-selected":l.isSelected(t),"aria-disabled":l.isOptionDisabled(t),"aria-setsize":l.ariaSetSize,"aria-posinset":l.getAriaPosInset(l.getOptionIndex(i,a)),onClick:e=>l.onOptionSelect(e,t),onMousemove:e=>l.onOptionMouseMove(e,l.getOptionIndex(i,a))},[e.$slots.option?s.renderSlot(e.$slots,"option",{key:0,option:t,index:l.getOptionIndex(i,a)},(()=>[s.createTextVNode(s.toDisplayString(l.getOptionLabel(t)),1)])):s.renderSlot(e.$slots,"item",{key:1,item:t,index:l.getOptionIndex(i,a)},(()=>[s.createTextVNode(s.toDisplayString(l.getOptionLabel(t)),1)]))],46,k)),[[p]])],64)))),128))],14,I)])),_:2},[e.$slots.loader?{name:"loader",fn:s.withCtx((({options:t})=>[s.renderSlot(e.$slots,"loader",{options:t})])),key:"0"}:void 0]),1040,["style","items","disabled"]),s.renderSlot(e.$slots,"footer",{value:i.modelValue,suggestions:l.visibleOptions}),s.createElementVNode("span",S,s.toDisplayString(l.selectedMessageText),1)],16)):s.createCommentVNode("",!0)])),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])])),_:3},8,["appendTo"])],2)},h}(primevue.button,primevue.overlayeventbus,primevue.portal,primevue.ripple,primevue.utils,primevue.virtualscroller,Vue);
|
package/calendar/Calendar.vue
CHANGED
package/calendar/calendar.cjs.js
CHANGED
|
@@ -2732,6 +2732,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2732
2732
|
class: ['p-inputtext p-component', $props.inputClass],
|
|
2733
2733
|
style: $props.inputStyle,
|
|
2734
2734
|
placeholder: $props.placeholder,
|
|
2735
|
+
autocomplete: "off",
|
|
2735
2736
|
"aria-autocomplete": "none",
|
|
2736
2737
|
"aria-haspopup": "dialog",
|
|
2737
2738
|
"aria-expanded": $data.overlayVisible,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/button"),t=require("primevue/overlayeventbus"),n=require("primevue/portal"),i=require("primevue/ripple"),a=require("primevue/utils"),r=require("vue");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),s=l(t),c=l(n),h=l(i),u={name:"Calendar",emits:["show","hide","input","month-change","year-change","date-select","update:modelValue","today-click","clear-click","focus","blur","keydown"],props:{modelValue:null,selectionMode:{type:String,default:"single"},dateFormat:{type:String,default:null},inline:{type:Boolean,default:!1},showOtherMonths:{type:Boolean,default:!0},selectOtherMonths:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},icon:{type:String,default:"pi pi-calendar"},previousIcon:{type:String,default:"pi pi-chevron-left"},nextIcon:{type:String,default:"pi pi-chevron-right"},incrementIcon:{type:String,default:"pi pi-chevron-up"},decrementIcon:{type:String,default:"pi pi-chevron-down"},numberOfMonths:{type:Number,default:1},responsiveOptions:Array,view:{type:String,default:"date"},touchUI:{type:Boolean,default:!1},monthNavigator:{type:Boolean,default:!1},yearNavigator:{type:Boolean,default:!1},yearRange:{type:String,default:null},minDate:{type:Date,value:null},maxDate:{type:Date,value:null},disabledDates:{type:Array,value:null},disabledDays:{type:Array,value:null},maxDateCount:{type:Number,value:null},showOnFocus:{type:Boolean,default:!0},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},showButtonBar:{type:Boolean,default:!1},shortYearCutoff:{type:String,default:"+10"},showTime:{type:Boolean,default:!1},timeOnly:{type:Boolean,default:!1},hourFormat:{type:String,default:"24"},stepHour:{type:Number,default:1},stepMinute:{type:Number,default:1},stepSecond:{type:Number,default:1},showSeconds:{type:Boolean,default:!1},hideOnDateTimeSelect:{type:Boolean,default:!1},hideOnRangeSelection:{type:Boolean,default:!1},timeSeparator:{type:String,default:":"},showWeek:{type:Boolean,default:!1},manualInput:{type:Boolean,default:!0},appendTo:{type:String,default:"body"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:null},id:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},panelProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},navigationState:null,timePickerChange:!1,scrollHandler:null,outsideClickListener:null,maskClickListener:null,resizeListener:null,overlay:null,input:null,mask:null,timePickerTimer:null,preventFocus:!1,typeUpdate:!1,data(){return{currentMonth:null,currentYear:null,currentHour:null,currentMinute:null,currentSecond:null,pm:null,focused:!1,overlayVisible:!1,currentView:this.view}},watch:{modelValue(e){this.updateCurrentMetaData(),this.typeUpdate||this.inline||!this.input||(this.input.value=this.formatValue(e)),this.typeUpdate=!1},showTime(){this.updateCurrentMetaData()},months(){this.overlay&&(this.focused||(this.inline&&(this.preventFocus=!0),setTimeout(this.updateFocus,0)))},numberOfMonths(){this.destroyResponsiveStyleElement(),this.createResponsiveStyle()},responsiveOptions(){this.destroyResponsiveStyleElement(),this.createResponsiveStyle()},currentView(){Promise.resolve(null).then((()=>this.alignOverlay()))}},created(){this.updateCurrentMetaData()},mounted(){this.createResponsiveStyle(),this.inline?(this.overlay&&this.overlay.setAttribute(this.attributeSelector,""),this.disabled||(this.preventFocus=!0,this.initFocusableCell(),1===this.numberOfMonths&&(this.overlay.style.width=a.DomHandler.getOuterWidth(this.$el)+"px"))):this.input.value=this.formatValue(this.modelValue)},updated(){this.overlay&&(this.preventFocus=!0,this.updateFocus()),this.input&&null!=this.selectionStart&&null!=this.selectionEnd&&(this.input.selectionStart=this.selectionStart,this.input.selectionEnd=this.selectionEnd,this.selectionStart=null,this.selectionEnd=null)},beforeUnmount(){this.timePickerTimer&&clearTimeout(this.timePickerTimer),this.mask&&this.destroyMask(),this.destroyResponsiveStyleElement(),this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&a.ZIndexUtils.clear(this.overlay),this.overlay=null},methods:{isComparable(){return null!=this.modelValue&&"string"!=typeof this.modelValue},isSelected(e){if(!this.isComparable())return!1;if(this.modelValue){if(this.isSingleSelection())return this.isDateEquals(this.modelValue,e);if(this.isMultipleSelection()){let t=!1;for(let n of this.modelValue)if(t=this.isDateEquals(n,e),t)break;return t}if(this.isRangeSelection())return this.modelValue[1]?this.isDateEquals(this.modelValue[0],e)||this.isDateEquals(this.modelValue[1],e)||this.isDateBetween(this.modelValue[0],this.modelValue[1],e):this.isDateEquals(this.modelValue[0],e)}return!1},isMonthSelected(e){if(this.isComparable()){let t=this.isRangeSelection()?this.modelValue[0]:this.modelValue;return!this.isMultipleSelection()&&(t.getMonth()===e&&t.getFullYear()===this.currentYear)}return!1},isYearSelected(e){if(this.isComparable()){let t=this.isRangeSelection()?this.modelValue[0]:this.modelValue;return!(this.isMultipleSelection()||!this.isComparable())&&t.getFullYear()===e}return!1},isDateEquals:(e,t)=>!!e&&(e.getDate()===t.day&&e.getMonth()===t.month&&e.getFullYear()===t.year),isDateBetween(e,t,n){if(e&&t){let i=new Date(n.year,n.month,n.day);return e.getTime()<=i.getTime()&&t.getTime()>=i.getTime()}return!1},getFirstDayOfMonthIndex(e,t){let n=new Date;n.setDate(1),n.setMonth(e),n.setFullYear(t);let i=n.getDay()+this.sundayIndex;return i>=7?i-7:i},getDaysCountInMonth(e,t){return 32-this.daylightSavingAdjust(new Date(t,e,32)).getDate()},getDaysCountInPrevMonth(e,t){let n=this.getPreviousMonthAndYear(e,t);return this.getDaysCountInMonth(n.month,n.year)},getPreviousMonthAndYear(e,t){let n,i;return 0===e?(n=11,i=t-1):(n=e-1,i=t),{month:n,year:i}},getNextMonthAndYear(e,t){let n,i;return 11===e?(n=0,i=t+1):(n=e+1,i=t),{month:n,year:i}},daylightSavingAdjust:e=>e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null,isToday:(e,t,n,i)=>e.getDate()===t&&e.getMonth()===n&&e.getFullYear()===i,isSelectable(e,t,n,i){let a=!0,r=!0,l=!0,o=!0;return!(i&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>n||this.minDate.getFullYear()===n&&(this.minDate.getMonth()>t||this.minDate.getMonth()===t&&this.minDate.getDate()>e))&&(a=!1),this.maxDate&&(this.maxDate.getFullYear()<n||this.maxDate.getFullYear()===n&&(this.maxDate.getMonth()<t||this.maxDate.getMonth()===t&&this.maxDate.getDate()<e))&&(r=!1),this.disabledDates&&(l=!this.isDateDisabled(e,t,n)),this.disabledDays&&(o=!this.isDayDisabled(e,t,n)),a&&r&&l&&o)},onOverlayEnter(e){e.setAttribute(this.attributeSelector,""),this.autoZIndex&&(this.touchUI?a.ZIndexUtils.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal):a.ZIndexUtils.set("overlay",e,this.baseZIndex||this.$primevue.config.zIndex.overlay)),this.alignOverlay(),this.$emit("show")},onOverlayEnterComplete(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener()},onOverlayAfterLeave(e){this.autoZIndex&&a.ZIndexUtils.clear(e)},onOverlayLeave(){this.currentView=this.view,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.mask&&this.disableModality(),this.overlay=null},onPrevButtonClick(e){this.showOtherMonths&&(this.navigationState={backward:!0,button:!0},this.navBackward(e))},onNextButtonClick(e){this.showOtherMonths&&(this.navigationState={backward:!1,button:!0},this.navForward(e))},navBackward(e){e.preventDefault(),this.isEnabled()&&("month"===this.currentView?this.decrementYear():"year"===this.currentView?this.decrementDecade():e.shiftKey?this.decrementYear():(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.$emit("month-change",{month:this.currentMonth+1,year:this.currentYear})))},navForward(e){e.preventDefault(),this.isEnabled()&&("month"===this.currentView?this.incrementYear():"year"===this.currentView?this.incrementDecade():e.shiftKey?this.incrementYear():(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.$emit("month-change",{month:this.currentMonth+1,year:this.currentYear})))},decrementYear(){this.currentYear--},decrementDecade(){this.currentYear=this.currentYear-10},incrementYear(){this.currentYear++},incrementDecade(){this.currentYear=this.currentYear+10},switchToMonthView(e){this.currentView="month",setTimeout(this.updateFocus,0),e.preventDefault()},switchToYearView(e){this.currentView="year",setTimeout(this.updateFocus,0),e.preventDefault()},isEnabled(){return!this.disabled&&!this.readonly},updateCurrentTimeMeta(e){let t=e.getHours();"12"===this.hourFormat&&(this.pm=t>11,t=t>=12?12==t?12:t-12:0==t?12:t),this.currentHour=Math.floor(t/this.stepHour)*this.stepHour,this.currentMinute=Math.floor(e.getMinutes()/this.stepMinute)*this.stepMinute,this.currentSecond=Math.floor(e.getSeconds()/this.stepSecond)*this.stepSecond},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.isOutsideClicked(e)&&(this.overlayVisible=!1)},document.addEventListener("mousedown",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("mousedown",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new a.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&(this.overlayVisible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!a.DomHandler.isTouchDevice()&&(this.overlayVisible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!(this.$el.isSameNode(e.target)||this.isNavIconClicked(e)||this.$el.contains(e.target)||this.overlay&&this.overlay.contains(e.target))},isNavIconClicked:e=>a.DomHandler.hasClass(e.target,"p-datepicker-prev")||a.DomHandler.hasClass(e.target,"p-datepicker-prev-icon")||a.DomHandler.hasClass(e.target,"p-datepicker-next")||a.DomHandler.hasClass(e.target,"p-datepicker-next-icon"),alignOverlay(){this.touchUI?this.enableModality():this.overlay&&("self"===this.appendTo||this.inline?a.DomHandler.relativePosition(this.overlay,this.$el):("date"===this.view?(this.overlay.style.width=a.DomHandler.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=a.DomHandler.getOuterWidth(this.$el)+"px"):this.overlay.style.width=a.DomHandler.getOuterWidth(this.$el)+"px",a.DomHandler.absolutePosition(this.overlay,this.$el)))},onButtonClick(){this.isEnabled()&&(this.overlayVisible?this.overlayVisible=!1:(this.input.focus(),this.overlayVisible=!0))},isDateDisabled(e,t,n){if(this.disabledDates)for(let i of this.disabledDates)if(i.getFullYear()===n&&i.getMonth()===t&&i.getDate()===e)return!0;return!1},isDayDisabled(e,t,n){if(this.disabledDays){let i=new Date(n,t,e).getDay();return-1!==this.disabledDays.indexOf(i)}return!1},onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.$emit("month-change",{month:this.currentMonth+1,year:this.currentYear})},onYearDropdownChange(e){this.currentYear=parseInt(e),this.$emit("year-change",{month:this.currentMonth+1,year:this.currentYear})},onDateSelect(e,t){if(!this.disabled&&t.selectable){if(a.DomHandler.find(this.overlay,".p-datepicker-calendar td span:not(.p-disabled)").forEach((e=>e.tabIndex=-1)),e&&e.currentTarget.focus(),this.isMultipleSelection()&&this.isSelected(t)){let e=this.modelValue.filter((e=>!this.isDateEquals(e,t)));this.updateModel(e)}else this.shouldSelectDate(t)&&(t.otherMonth?(this.currentMonth=t.month,this.currentYear=t.year,this.selectDate(t)):this.selectDate(t));!this.isSingleSelection()||this.showTime&&!this.hideOnDateTimeSelect||setTimeout((()=>{this.input&&this.input.focus(),this.overlayVisible=!1}),150)}},selectDate(e){let t=new Date(e.year,e.month,e.day);this.showTime&&("12"===this.hourFormat&&this.pm&&12!=this.currentHour?t.setHours(this.currentHour+12):t.setHours(this.currentHour),t.setMinutes(this.currentMinute),t.setSeconds(this.currentSecond)),this.minDate&&this.minDate>t&&(t=this.minDate,this.currentHour=t.getHours(),this.currentMinute=t.getMinutes(),this.currentSecond=t.getSeconds()),this.maxDate&&this.maxDate<t&&(t=this.maxDate,this.currentHour=t.getHours(),this.currentMinute=t.getMinutes(),this.currentSecond=t.getSeconds());let n=null;if(this.isSingleSelection())n=t;else if(this.isMultipleSelection())n=this.modelValue?[...this.modelValue,t]:[t];else if(this.isRangeSelection())if(this.modelValue&&this.modelValue.length){let e=this.modelValue[0],i=this.modelValue[1];!i&&t.getTime()>=e.getTime()?i=t:(e=t,i=null),n=[e,i]}else n=[t,null];null!==n&&this.updateModel(n),this.isRangeSelection()&&this.hideOnRangeSelection&&null!==n[1]&&setTimeout((()=>{this.overlayVisible=!1}),150),this.$emit("date-select",t)},updateModel(e){this.$emit("update:modelValue",e)},shouldSelectDate(){return!this.isMultipleSelection()||(null==this.maxDateCount||this.maxDateCount>(this.modelValue?this.modelValue.length:0))},isSingleSelection(){return"single"===this.selectionMode},isRangeSelection(){return"range"===this.selectionMode},isMultipleSelection(){return"multiple"===this.selectionMode},formatValue(e){if("string"==typeof e)return e;let t="";if(e)try{if(this.isSingleSelection())t=this.formatDateTime(e);else if(this.isMultipleSelection())for(let n=0;n<e.length;n++){t+=this.formatDateTime(e[n]),n!==e.length-1&&(t+=", ")}else if(this.isRangeSelection()&&e&&e.length){let n=e[0],i=e[1];t=this.formatDateTime(n),i&&(t+=" - "+this.formatDateTime(i))}}catch(n){t=e}return t},formatDateTime(e){let t=null;return e&&(this.timeOnly?t=this.formatTime(e):(t=this.formatDate(e,this.datePattern),this.showTime&&(t+=" "+this.formatTime(e)))),t},formatDate(e,t){if(!e)return"";let n;const i=e=>{const i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},a=(e,t,n)=>{let a=""+t;if(i(e))for(;a.length<n;)a="0"+a;return a},r=(e,t,n,a)=>i(e)?a[t]:n[t];let l="",o=!1;if(e)for(n=0;n<t.length;n++)if(o)"'"!==t.charAt(n)||i("'")?l+=t.charAt(n):o=!1;else switch(t.charAt(n)){case"d":l+=a("d",e.getDate(),2);break;case"D":l+=r("D",e.getDay(),this.$primevue.config.locale.dayNamesShort,this.$primevue.config.locale.dayNames);break;case"o":l+=a("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=a("m",e.getMonth()+1,2);break;case"M":l+=r("M",e.getMonth(),this.$primevue.config.locale.monthNamesShort,this.$primevue.config.locale.monthNames);break;case"y":l+=i("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":l+=e.getTime();break;case"!":l+=1e4*e.getTime()+this.ticksTo1970;break;case"'":i("'")?l+="'":o=!0;break;default:l+=t.charAt(n)}return l},formatTime(e){if(!e)return"";let t="",n=e.getHours(),i=e.getMinutes(),a=e.getSeconds();return"12"===this.hourFormat&&n>11&&12!==n&&(n-=12),"12"===this.hourFormat?t+=0===n?12:n<10?"0"+n:n:t+=n<10?"0"+n:n,t+=":",t+=i<10?"0"+i:i,this.showSeconds&&(t+=":",t+=a<10?"0"+a:a),"12"===this.hourFormat&&(t+=e.getHours()>11?` ${this.$primevue.config.locale.pm}`:` ${this.$primevue.config.locale.am}`),t},onTodayButtonClick(e){let t=new Date,n={day:t.getDate(),month:t.getMonth(),year:t.getFullYear(),otherMonth:t.getMonth()!==this.currentMonth||t.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(null,n),this.$emit("today-click",t),e.preventDefault()},onClearButtonClick(e){this.updateModel(null),this.overlayVisible=!1,this.$emit("clear-click",e),e.preventDefault()},onTimePickerElementMouseDown(e,t,n){this.isEnabled()&&(this.repeat(e,null,t,n),e.preventDefault())},onTimePickerElementMouseUp(e){this.isEnabled()&&(this.clearTimePickerTimer(),this.updateModelTime(),e.preventDefault())},onTimePickerElementMouseLeave(){this.clearTimePickerTimer()},repeat(e,t,n,i){let a=t||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout((()=>{this.repeat(e,100,n,i)}),a),n){case 0:1===i?this.incrementHour(e):this.decrementHour(e);break;case 1:1===i?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===i?this.incrementSecond(e):this.decrementSecond(e)}},convertTo24Hour(e,t){return"12"==this.hourFormat?12===e?t?12:0:t?e+12:e:e},validateTime(e,t,n,i){let a=this.isComparable()?this.modelValue:this.viewDate;const r=this.convertTo24Hour(e,i);this.isRangeSelection()&&(a=this.modelValue[1]||this.modelValue[0]),this.isMultipleSelection()&&(a=this.modelValue[this.modelValue.length-1]);const l=a?a.toDateString():null;if(this.minDate&&l&&this.minDate.toDateString()===l){if(this.minDate.getHours()>r)return!1;if(this.minDate.getHours()===r){if(this.minDate.getMinutes()>t)return!1;if(this.minDate.getMinutes()===t&&this.minDate.getSeconds()>n)return!1}}if(this.maxDate&&l&&this.maxDate.toDateString()===l){if(this.maxDate.getHours()<r)return!1;if(this.maxDate.getHours()===r){if(this.maxDate.getMinutes()<t)return!1;if(this.maxDate.getMinutes()===t&&this.maxDate.getSeconds()<n)return!1}}return!0},incrementHour(e){let t=this.currentHour,n=this.currentHour+this.stepHour,i=this.pm;"24"==this.hourFormat?n=n>=24?n-24:n:"12"==this.hourFormat&&(t<12&&n>11&&(i=!this.pm),n=n>=13?n-12:n),this.validateTime(n,this.currentMinute,this.currentSecond,i)&&(this.currentHour=n,this.pm=i),e.preventDefault()},decrementHour(e){let t=this.currentHour-this.stepHour,n=this.pm;"24"==this.hourFormat?t=t<0?24+t:t:"12"==this.hourFormat&&(12===this.currentHour&&(n=!this.pm),t=t<=0?12+t:t),this.validateTime(t,this.currentMinute,this.currentSecond,n)&&(this.currentHour=t,this.pm=n),e.preventDefault()},incrementMinute(e){let t=this.currentMinute+this.stepMinute;this.validateTime(this.currentHour,t,this.currentSecond,!0)&&(this.currentMinute=t>59?t-60:t),e.preventDefault()},decrementMinute(e){let t=this.currentMinute-this.stepMinute;t=t<0?60+t:t,this.validateTime(this.currentHour,t,this.currentSecond,!0)&&(this.currentMinute=t),e.preventDefault()},incrementSecond(e){let t=this.currentSecond+this.stepSecond;this.validateTime(this.currentHour,this.currentMinute,t,!0)&&(this.currentSecond=t>59?t-60:t),e.preventDefault()},decrementSecond(e){let t=this.currentSecond-this.stepSecond;t=t<0?60+t:t,this.validateTime(this.currentHour,this.currentMinute,t,!0)&&(this.currentSecond=t),e.preventDefault()},updateModelTime(){this.timePickerChange=!0;let e=this.isComparable()?this.modelValue:this.viewDate;this.isRangeSelection()&&(e=this.modelValue[1]||this.modelValue[0]),this.isMultipleSelection()&&(e=this.modelValue[this.modelValue.length-1]),e=e?new Date(e.getTime()):new Date,"12"==this.hourFormat?12===this.currentHour?e.setHours(this.pm?12:0):e.setHours(this.pm?this.currentHour+12:this.currentHour):e.setHours(this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.modelValue[1]?[this.modelValue[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.modelValue.slice(0,-1),e]),this.updateModel(e),this.$emit("date-select",e),setTimeout((()=>this.timePickerChange=!1),0)},toggleAMPM(e){(this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,!this.pm)||!this.maxDate&&!this.minDate)&&(this.pm=!this.pm,this.updateModelTime(),e.preventDefault())},clearTimePickerTimer(){this.timePickerTimer&&clearInterval(this.timePickerTimer)},onMonthSelect(e,t){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:t,day:1,selectable:!0}):(this.currentMonth=t,this.currentView="date",this.$emit("month-change",{month:this.currentMonth+1,year:this.currentYear})),setTimeout(this.updateFocus,0)},onYearSelect(e,t){"year"===this.view?this.onDateSelect(e,{year:t,month:0,day:1,selectable:!0}):(this.currentYear=t,this.currentView="month",this.$emit("year-change",{month:this.currentMonth+1,year:this.currentYear})),setTimeout(this.updateFocus,0)},enableModality(){this.mask||(this.mask=document.createElement("div"),this.mask.style.zIndex=String(parseInt(this.overlay.style.zIndex,10)-1),a.DomHandler.addMultipleClasses(this.mask,"p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=()=>{this.overlayVisible=!1},this.mask.addEventListener("click",this.maskClickListener),document.body.appendChild(this.mask),a.DomHandler.addClass(document.body,"p-overflow-hidden"))},disableModality(){this.mask&&(a.DomHandler.addClass(this.mask,"p-component-overlay-leave"),this.mask.addEventListener("animationend",(()=>{this.destroyMask()})))},destroyMask(){this.mask.removeEventListener("click",this.maskClickListener),this.maskClickListener=null,document.body.removeChild(this.mask),this.mask=null;let e,t=document.body.children;for(let n=0;n<t.length;n++){let i=t[n];if(a.DomHandler.hasClass(i,"p-datepicker-mask-scrollblocker")){e=!0;break}}e||a.DomHandler.removeClass(document.body,"p-overflow-hidden")},updateCurrentMetaData(){const e=this.viewDate;this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),(this.showTime||this.timeOnly)&&this.updateCurrentTimeMeta(e)},isValidSelection(e){if(null==e)return!0;let t=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(t=!1):e.every((e=>this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)))&&this.isRangeSelection()&&(t=e.length>1&&e[1]>e[0]),t},parseValue(e){if(!e||0===e.trim().length)return null;let t;if(this.isSingleSelection())t=this.parseDateTime(e);else if(this.isMultipleSelection()){let n=e.split(",");t=[];for(let e of n)t.push(this.parseDateTime(e.trim()))}else if(this.isRangeSelection()){let n=e.split(" - ");t=[];for(let e=0;e<n.length;e++)t[e]=this.parseDateTime(n[e].trim())}return t},parseDateTime(e){let t,n=e.split(" ");if(this.timeOnly)t=new Date,this.populateTime(t,n[0],n[1]);else{const i=this.datePattern;this.showTime?(t=this.parseDate(n[0],i),this.populateTime(t,n[1],n[2])):t=this.parseDate(e,i)}return t},populateTime(e,t,n){if("12"==this.hourFormat&&!n)throw"Invalid Time";this.pm=n===this.$primevue.config.locale.am||n===this.$primevue.config.locale.am.toLowerCase();let i=this.parseTime(t);e.setHours(i.hour),e.setMinutes(i.minute),e.setSeconds(i.second)},parseTime(e){let t=e.split(":"),n=this.showSeconds?3:2,i=/^[0-9][0-9]$/;if(t.length!==n||!t[0].match(i)||!t[1].match(i)||this.showSeconds&&!t[2].match(i))throw"Invalid time";let a=parseInt(t[0]),r=parseInt(t[1]),l=this.showSeconds?parseInt(t[2]):null;if(isNaN(a)||isNaN(r)||a>23||r>59||"12"==this.hourFormat&&a>12||this.showSeconds&&(isNaN(l)||l>59))throw"Invalid time";return"12"==this.hourFormat&&12!==a&&this.pm&&(a+=12),{hour:a,minute:r,second:l}},parseDate(e,t){if(null==t||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let n,i,a,r,l=0,o="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),s=-1,c=-1,h=-1,u=-1,d=!1,p=e=>{let i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},m=t=>{let n=p(t),i="@"===t?14:"!"===t?20:"y"===t&&n?4:"o"===t?3:2,a=new RegExp("^\\d{"+("y"===t?i:1)+","+i+"}"),r=e.substring(l).match(a);if(!r)throw"Missing number at position "+l;return l+=r[0].length,parseInt(r[0],10)},y=(t,n,i)=>{let a=-1,r=p(t)?i:n,o=[];for(let e=0;e<r.length;e++)o.push([e,r[e]]);o.sort(((e,t)=>-(e[1].length-t[1].length)));for(let t=0;t<o.length;t++){let n=o[t][1];if(e.substr(l,n.length).toLowerCase()===n.toLowerCase()){a=o[t][0],l+=n.length;break}}if(-1!==a)return a+1;throw"Unknown name at position "+l},k=()=>{if(e.charAt(l)!==t.charAt(n))throw"Unexpected literal at position "+l;l++};for("month"===this.currentView&&(h=1),n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||p("'")?k():d=!1;else switch(t.charAt(n)){case"d":h=m("d");break;case"D":y("D",this.$primevue.config.locale.dayNamesShort,this.$primevue.config.locale.dayNames);break;case"o":u=m("o");break;case"m":c=m("m");break;case"M":c=y("M",this.$primevue.config.locale.monthNamesShort,this.$primevue.config.locale.monthNames);break;case"y":s=m("y");break;case"@":r=new Date(m("@")),s=r.getFullYear(),c=r.getMonth()+1,h=r.getDate();break;case"!":r=new Date((m("!")-this.ticksTo1970)/1e4),s=r.getFullYear(),c=r.getMonth()+1,h=r.getDate();break;case"'":p("'")?k():d=!0;break;default:k()}if(l<e.length&&(a=e.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===s?s=(new Date).getFullYear():s<100&&(s+=(new Date).getFullYear()-(new Date).getFullYear()%100+(s<=o?0:-100)),u>-1)for(c=1,h=u;;){if(i=this.getDaysCountInMonth(s,c-1),h<=i)break;c++,h-=i}if(r=this.daylightSavingAdjust(new Date(s,c-1,h)),r.getFullYear()!==s||r.getMonth()+1!==c||r.getDate()!==h)throw"Invalid date";return r},getWeekNumber(e){let t=new Date(e.getTime());t.setDate(t.getDate()+4-(t.getDay()||7));let n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t.getTime())/864e5)/7)+1},onDateCellKeydown(e,t,n){const i=e.currentTarget,r=i.parentElement,l=a.DomHandler.index(r);switch(e.code){case"ArrowDown":if(i.tabIndex="-1",r.parentElement.nextElementSibling){let t=a.DomHandler.index(r.parentElement);let n=Array.from(r.parentElement.parentElement.children).slice(t+1).find((e=>{let t=e.children[l].children[0];return!a.DomHandler.hasClass(t,"p-disabled")}));if(n){let e=n.children[l].children[0];e.tabIndex="0",e.focus()}else this.navigationState={backward:!1},this.navForward(e)}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break;case"ArrowUp":if(i.tabIndex="-1",r.parentElement.previousElementSibling){let t=a.DomHandler.index(r.parentElement);let n=Array.from(r.parentElement.parentElement.children).slice(0,t).reverse().find((e=>{let t=e.children[l].children[0];return!a.DomHandler.hasClass(t,"p-disabled")}));if(n){let e=n.children[l].children[0];e.tabIndex="0",e.focus()}else this.navigationState={backward:!0},this.navBackward(e)}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break;case"ArrowLeft":if(i.tabIndex="-1",r.previousElementSibling){let t=Array.from(r.parentElement.children).slice(0,l).reverse().find((e=>{let t=e.children[0];return!a.DomHandler.hasClass(t,"p-disabled")}));if(t){let e=t.children[0];e.tabIndex="0",e.focus()}else this.navigateToMonth(e,!0,n)}else this.navigateToMonth(e,!0,n);e.preventDefault();break;case"ArrowRight":if(i.tabIndex="-1",r.nextElementSibling){let t=Array.from(r.parentElement.children).slice(l+1).find((e=>{let t=e.children[0];return!a.DomHandler.hasClass(t,"p-disabled")}));if(t){let e=t.children[0];e.tabIndex="0",e.focus()}else this.navigateToMonth(e,!1,n)}else this.navigateToMonth(e,!1,n);e.preventDefault();break;case"Enter":case"Space":this.onDateSelect(e,t),e.preventDefault();break;case"Escape":this.overlayVisible=!1,e.preventDefault();break;case"Tab":this.inline||this.trapFocus(e);break;case"Home":{i.tabIndex="-1";let t=r.parentElement.children[0].children[0];a.DomHandler.hasClass(t,"p-disabled")?this.navigateToMonth(e,!0,n):(t.tabIndex="0",t.focus()),e.preventDefault();break}case"End":{i.tabIndex="-1";let t=r.parentElement,l=t.children[t.children.length-1].children[0];a.DomHandler.hasClass(l,"p-disabled")?this.navigateToMonth(e,!1,n):(l.tabIndex="0",l.focus()),e.preventDefault();break}case"PageUp":i.tabIndex="-1",e.shiftKey?(this.navigationState={backward:!0},this.navBackward(e)):this.navigateToMonth(e,!0,n),e.preventDefault();break;case"PageDown":i.tabIndex="-1",e.shiftKey?(this.navigationState={backward:!1},this.navForward(e)):this.navigateToMonth(e,!1,n),e.preventDefault()}},navigateToMonth(e,t,n){if(t)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(e);else{let e=this.overlay.children[n-1],t=a.DomHandler.find(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i=t[t.length-1];i.tabIndex="0",i.focus()}else if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(e);else{let e=this.overlay.children[n+1],t=a.DomHandler.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");t.tabIndex="0",t.focus()}},onMonthCellKeydown(e,t){const n=e.currentTarget;switch(e.code){case"ArrowUp":case"ArrowDown":{n.tabIndex="-1";var i=n.parentElement.children,r=a.DomHandler.index(n);let t=i["ArrowDown"===e.code?r+3:r-3];t&&(t.tabIndex="0",t.focus()),e.preventDefault();break}case"ArrowLeft":{n.tabIndex="-1";let t=n.previousElementSibling;t?(t.tabIndex="0",t.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case"ArrowRight":{n.tabIndex="-1";let t=n.nextElementSibling;t?(t.tabIndex="0",t.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case"PageUp":if(e.shiftKey)return;this.navigationState={backward:!0},this.navBackward(e);break;case"PageDown":if(e.shiftKey)return;this.navigationState={backward:!1},this.navForward(e);break;case"Enter":case"Space":this.onMonthSelect(e,t),e.preventDefault();break;case"Escape":this.overlayVisible=!1,e.preventDefault();break;case"Tab":this.trapFocus(e)}},onYearCellKeydown(e,t){const n=e.currentTarget;switch(e.code){case"ArrowUp":case"ArrowDown":{n.tabIndex="-1";var i=n.parentElement.children,r=a.DomHandler.index(n);let t=i["ArrowDown"===e.code?r+2:r-2];t&&(t.tabIndex="0",t.focus()),e.preventDefault();break}case"ArrowLeft":{n.tabIndex="-1";let t=n.previousElementSibling;t?(t.tabIndex="0",t.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case"ArrowRight":{n.tabIndex="-1";let t=n.nextElementSibling;t?(t.tabIndex="0",t.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case"PageUp":if(e.shiftKey)return;this.navigationState={backward:!0},this.navBackward(e);break;case"PageDown":if(e.shiftKey)return;this.navigationState={backward:!1},this.navForward(e);break;case"Enter":case"Space":this.onYearSelect(e,t),e.preventDefault();break;case"Escape":this.overlayVisible=!1,e.preventDefault();break;case"Tab":this.trapFocus(e)}},updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?a.DomHandler.findSingle(this.overlay,".p-datepicker-prev").focus():a.DomHandler.findSingle(this.overlay,".p-datepicker-next").focus();else{if(this.navigationState.backward){let t;t="month"===this.currentView?a.DomHandler.find(this.overlay,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):"year"===this.currentView?a.DomHandler.find(this.overlay,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):a.DomHandler.find(this.overlay,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),t&&t.length>0&&(e=t[t.length-1])}else e="month"===this.currentView?a.DomHandler.findSingle(this.overlay,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):"year"===this.currentView?a.DomHandler.findSingle(this.overlay,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):a.DomHandler.findSingle(this.overlay,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()},initFocusableCell(){let e;if("month"===this.currentView){let t=a.DomHandler.find(this.overlay,".p-monthpicker .p-monthpicker-month"),n=a.DomHandler.findSingle(this.overlay,".p-monthpicker .p-monthpicker-month.p-highlight");t.forEach((e=>e.tabIndex=-1)),e=n||t[0]}else if("year"===this.currentView){let t=a.DomHandler.find(this.overlay,".p-yearpicker .p-yearpicker-year"),n=a.DomHandler.findSingle(this.overlay,".p-yearpicker .p-yearpicker-year.p-highlight");t.forEach((e=>e.tabIndex=-1)),e=n||t[0]}else if(e=a.DomHandler.findSingle(this.overlay,"span.p-highlight"),!e){let t=a.DomHandler.findSingle(this.overlay,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink");e=t||a.DomHandler.findSingle(this.overlay,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink")}e&&(e.tabIndex="0",this.preventFocus||this.navigationState&&this.navigationState.button||this.timePickerChange||e.focus(),this.preventFocus=!1)},trapFocus(e){e.preventDefault();let t=a.DomHandler.getFocusableElements(this.overlay);if(t&&t.length>0)if(document.activeElement){let n=t.indexOf(document.activeElement);if(e.shiftKey)-1===n||0===n?t[t.length-1].focus():t[n-1].focus();else if(-1===n)if(this.timeOnly)t[0].focus();else{let e=null;for(let n=0;n<t.length;n++)"SPAN"===t[n].tagName&&(e=n);t[e].focus()}else n===t.length-1?t[0].focus():t[n+1].focus()}else t[0].focus()},onContainerButtonKeydown(e){switch(e.code){case"Tab":this.trapFocus(e);break;case"Escape":this.overlayVisible=!1,e.preventDefault()}this.$emit("keydown",e)},onInput(e){try{this.selectionStart=this.input.selectionStart,this.selectionEnd=this.input.selectionEnd;let t=this.parseValue(e.target.value);this.isValidSelection(t)&&(this.typeUpdate=!0,this.updateModel(t))}catch(e){}this.$emit("input",e)},onInputClick(){this.showOnFocus&&this.isEnabled()&&!this.overlayVisible&&(this.overlayVisible=!0)},onFocus(e){this.showOnFocus&&this.isEnabled()&&(this.overlayVisible=!0),this.focused=!0,this.$emit("focus",e)},onBlur(e){this.$emit("blur",{originalEvent:e,value:e.target.value}),this.focused=!1,e.target.value=this.formatValue(this.modelValue)},onKeyDown(e){"ArrowDown"===e.code&&this.overlay?this.trapFocus(e):"ArrowDown"!==e.code||this.overlay?"Escape"===e.code?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):"Tab"===e.code&&(this.overlay&&a.DomHandler.getFocusableElements(this.overlay).forEach((e=>e.tabIndex="-1")),this.overlayVisible&&(this.overlayVisible=!1)):this.overlayVisible=!0},overlayRef(e){this.overlay=e},inputRef(e){this.input=e},getMonthName(e){return this.$primevue.config.locale.monthNames[e]},getYear(e){return"month"===this.currentView?this.currentYear:e.year},onOverlayClick(e){this.inline||s.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown(e){if("Escape"===e.code)this.input.focus(),this.overlayVisible=!1},onOverlayMouseUp(e){this.onOverlayClick(e)},createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.body.appendChild(this.responsiveStyleElement));let e="";if(this.responsiveOptions){let t=[...this.responsiveOptions].filter((e=>!(!e.breakpoint||!e.numMonths))).sort(((e,t)=>-1*e.breakpoint.localeCompare(t.breakpoint,void 0,{numeric:!0})));for(let n=0;n<t.length;n++){let{breakpoint:i,numMonths:a}=t[n],r=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${a}) .p-datepicker-next {\n display: inline-flex !important;\n }\n `;for(let e=a;e<this.numberOfMonths;e++)r+=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${e+1}) {\n display: none !important;\n }\n `;e+=`\n @media screen and (max-width: ${i}) {\n ${r}\n }\n `}}this.responsiveStyleElement.innerHTML=e}},destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}},computed:{viewDate(){let e=this.modelValue;if(e&&Array.isArray(e)&&(this.isRangeSelection()?e=this.inline?e[0]:e[1]||e[0]:this.isMultipleSelection()&&(e=e[e.length-1])),e&&"string"!=typeof e)return e;{let e=new Date;return this.maxDate&&this.maxDate<e?this.maxDate:this.minDate&&this.minDate>e?this.minDate:e}},inputFieldValue(){return this.formatValue(this.modelValue)},containerClass(){return["p-calendar p-component p-inputwrapper",{"p-calendar-w-btn":this.showIcon,"p-calendar-timeonly":this.timeOnly,"p-calendar-disabled":this.disabled,"p-inputwrapper-filled":this.modelValue,"p-inputwrapper-focus":this.focused}]},panelStyleClass(){return["p-datepicker p-component",this.panelClass,{"p-datepicker-inline":this.inline,"p-disabled":this.disabled,"p-datepicker-timeonly":this.timeOnly,"p-datepicker-multiple-month":this.numberOfMonths>1,"p-datepicker-monthpicker":"month"===this.currentView,"p-datepicker-yearpicker":"year"===this.currentView,"p-datepicker-touch-ui":this.touchUI,"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},months(){let e=[];for(let t=0;t<this.numberOfMonths;t++){let n=this.currentMonth+t,i=this.currentYear;n>11&&(n=n%11-1,i+=1);let a=[],r=this.getFirstDayOfMonthIndex(n,i),l=this.getDaysCountInMonth(n,i),o=this.getDaysCountInPrevMonth(n,i),s=1,c=new Date,h=[],u=Math.ceil((l+r)/7);for(let e=0;e<u;e++){let t=[];if(0==e){for(let e=o-r+1;e<=o;e++){let a=this.getPreviousMonthAndYear(n,i);t.push({day:e,month:a.month,year:a.year,otherMonth:!0,today:this.isToday(c,e,a.month,a.year),selectable:this.isSelectable(e,a.month,a.year,!0)})}let e=7-t.length;for(let a=0;a<e;a++)t.push({day:s,month:n,year:i,today:this.isToday(c,s,n,i),selectable:this.isSelectable(s,n,i,!1)}),s++}else for(let e=0;e<7;e++){if(s>l){let e=this.getNextMonthAndYear(n,i);t.push({day:s-l,month:e.month,year:e.year,otherMonth:!0,today:this.isToday(c,s-l,e.month,e.year),selectable:this.isSelectable(s-l,e.month,e.year,!0)})}else t.push({day:s,month:n,year:i,today:this.isToday(c,s,n,i),selectable:this.isSelectable(s,n,i,!1)});s++}this.showWeek&&h.push(this.getWeekNumber(new Date(t[0].year,t[0].month,t[0].day))),a.push(t)}e.push({month:n,year:i,dates:a,weekNumbers:h})}return e},weekDays(){let e=[],t=this.$primevue.config.locale.firstDayOfWeek;for(let n=0;n<7;n++)e.push(this.$primevue.config.locale.dayNamesMin[t]),t=6==t?0:++t;return e},ticksTo1970:()=>24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,sundayIndex(){return this.$primevue.config.locale.firstDayOfWeek>0?7-this.$primevue.config.locale.firstDayOfWeek:0},datePattern(){return this.dateFormat||this.$primevue.config.locale.dateFormat},yearOptions(){if(this.yearRange){let e=this;const t=this.yearRange.split(":");let n=parseInt(t[0]),i=parseInt(t[1]),a=[];this.currentYear<n?e.currentYear=i:this.currentYear>i&&(e.currentYear=n);for(let e=n;e<=i;e++)a.push(e);return a}return null},monthPickerValues(){let e=[];for(let t=0;t<=11;t++)e.push(this.$primevue.config.locale.monthNamesShort[t]);return e},yearPickerValues(){let e=[],t=this.currentYear-this.currentYear%10;for(let n=0;n<10;n++)e.push(t+n);return e},formattedCurrentHour(){return this.currentHour<10?"0"+this.currentHour:this.currentHour},formattedCurrentMinute(){return this.currentMinute<10?"0"+this.currentMinute:this.currentMinute},formattedCurrentSecond(){return this.currentSecond<10?"0"+this.currentSecond:this.currentSecond},todayLabel(){return this.$primevue.config.locale.today},clearLabel(){return this.$primevue.config.locale.clear},weekHeaderLabel(){return this.$primevue.config.locale.weekHeader},monthNames(){return this.$primevue.config.locale.monthNames},attributeSelector:()=>a.UniqueComponentId(),switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled},panelId:()=>a.UniqueComponentId()+"_panel"},components:{CalendarButton:o.default,Portal:c.default},directives:{ripple:h.default}};const d=["id"],p=["id","placeholder","aria-expanded","aria-controls","aria-labelledby","aria-label","disabled","readonly"],m=["id","role","aria-modal","aria-label"],y={class:"p-datepicker-group-container"},k={class:"p-datepicker-header"},b=["disabled","aria-label"],f={class:"p-datepicker-title"},g=["disabled","aria-label"],v=["disabled","aria-label"],w={key:2,class:"p-datepicker-decade"},D=["disabled","aria-label"],S={key:0,class:"p-datepicker-calendar-container"},M={class:"p-datepicker-calendar",role:"grid"},x={key:0,scope:"col",class:"p-datepicker-weekheader p-disabled"},E=["abbr"],C={key:0,class:"p-datepicker-weeknumber"},V={class:"p-disabled"},T={key:0,style:{visibility:"hidden"}},B=["aria-label"],H=["onClick","onKeydown","aria-selected"],I={key:0,class:"p-hidden-accessible","aria-live":"polite"},N={key:0,class:"p-monthpicker"},P=["onClick","onKeydown"],F={key:0,class:"p-hidden-accessible","aria-live":"polite"},K={key:1,class:"p-yearpicker"},Y=["onClick","onKeydown"],$={key:0,class:"p-hidden-accessible","aria-live":"polite"},O={key:1,class:"p-timepicker"},L={class:"p-hour-picker"},A=["aria-label"],U=["aria-label"],R={class:"p-separator"},z={class:"p-minute-picker"},j=["aria-label","disabled"],q=["aria-label","disabled"],W={key:0,class:"p-separator"},Z={key:1,class:"p-second-picker"},_=["aria-label","disabled"],G=["aria-label","disabled"],J={key:2,class:"p-separator"},Q={key:3,class:"p-ampm-picker"},X=["aria-label","disabled"],ee=["aria-label","disabled"],te={key:2,class:"p-datepicker-buttonbar"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-calendar {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n max-width: 100%;\n}\n.p-calendar .p-inputtext {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-calendar-w-btn .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-calendar-w-btn .p-datepicker-trigger {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n/* Fluid */\n.p-fluid .p-calendar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-calendar .p-inputtext {\n width: 1%;\n}\n\n/* Datepicker */\n.p-calendar .p-datepicker {\n min-width: 100%;\n}\n.p-datepicker {\n width: auto;\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-datepicker-inline {\n display: inline-block;\n position: static;\n overflow-x: auto;\n}\n\n/* Header */\n.p-datepicker-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-datepicker-header .p-datepicker-title {\n margin: 0 auto;\n}\n.p-datepicker-prev,\n.p-datepicker-next {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Multiple Month DatePicker */\n.p-datepicker-multiple-month .p-datepicker-group-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n\n/* DatePicker Table */\n.p-datepicker table {\n width: 100%;\n border-collapse: collapse;\n}\n.p-datepicker td > span {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n margin: 0 auto;\n overflow: hidden;\n position: relative;\n}\n\n/* Month Picker */\n.p-monthpicker-month {\n width: 33.3%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Year Picker */\n.p-yearpicker-year {\n width: 50%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Button Bar */\n.p-datepicker-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n/* Time Picker */\n.p-timepicker {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-timepicker button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-timepicker > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n/* Touch UI */\n.p-datepicker-touch-ui,\n.p-calendar .p-datepicker-touch-ui {\n position: fixed;\n top: 50%;\n left: 50%;\n min-width: 80vw;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n"),u.render=function(e,t,n,i,a,l){const o=r.resolveComponent("CalendarButton"),s=r.resolveComponent("Portal"),c=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("span",{ref:"container",id:n.id,class:r.normalizeClass(l.containerClass)},[n.inline?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,ref:l.inputRef,id:n.inputId,type:"text",role:"combobox",class:["p-inputtext p-component",n.inputClass],style:n.inputStyle,placeholder:n.placeholder,"aria-autocomplete":"none","aria-haspopup":"dialog","aria-expanded":a.overlayVisible,"aria-controls":l.panelId,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,inputmode:"none",disabled:n.disabled,readonly:!n.manualInput||n.readonly,tabindex:0,onInput:t[0]||(t[0]=(...e)=>l.onInput&&l.onInput(...e)),onClick:t[1]||(t[1]=(...e)=>l.onInputClick&&l.onInputClick(...e)),onFocus:t[2]||(t[2]=(...e)=>l.onFocus&&l.onFocus(...e)),onBlur:t[3]||(t[3]=(...e)=>l.onBlur&&l.onBlur(...e)),onKeydown:t[4]||(t[4]=(...e)=>l.onKeyDown&&l.onKeyDown(...e))},n.inputProps),null,16,p)),n.showIcon?(r.openBlock(),r.createBlock(o,{key:1,icon:n.icon,class:"p-datepicker-trigger",disabled:n.disabled,onClick:l.onButtonClick,type:"button","aria-label":e.$primevue.config.locale.chooseDate,"aria-haspopup":"dialog","aria-expanded":a.overlayVisible,"aria-controls":l.panelId},null,8,["icon","disabled","onClick","aria-label","aria-expanded","aria-controls"])):r.createCommentVNode("",!0),r.createVNode(s,{appendTo:n.appendTo,disabled:n.inline},{default:r.withCtx((()=>[r.createVNode(r.Transition,{name:"p-connected-overlay",onEnter:t[68]||(t[68]=e=>l.onOverlayEnter(e)),onAfterEnter:l.onOverlayEnterComplete,onAfterLeave:l.onOverlayAfterLeave,onLeave:l.onOverlayLeave},{default:r.withCtx((()=>[n.inline||a.overlayVisible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:l.overlayRef,id:l.panelId,class:l.panelStyleClass,style:n.panelStyle,role:n.inline?null:"dialog","aria-modal":n.inline?null:"true","aria-label":e.$primevue.config.locale.chooseDate,onClick:t[65]||(t[65]=(...e)=>l.onOverlayClick&&l.onOverlayClick(...e)),onKeydown:t[66]||(t[66]=(...e)=>l.onOverlayKeyDown&&l.onOverlayKeyDown(...e)),onMouseup:t[67]||(t[67]=(...e)=>l.onOverlayMouseUp&&l.onOverlayMouseUp(...e))},n.panelProps),[n.timeOnly?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",y,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.months,((i,o)=>(r.openBlock(),r.createElementBlock("div",{key:i.month+i.year,class:"p-datepicker-group"},[r.createElementVNode("div",k,[r.renderSlot(e.$slots,"header"),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-datepicker-prev p-link",onClick:t[5]||(t[5]=(...e)=>l.onPrevButtonClick&&l.onPrevButtonClick(...e)),type:"button",onKeydown:t[6]||(t[6]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),disabled:n.disabled,"aria-label":"year"===a.currentView?e.$primevue.config.locale.prevDecade:"month"===a.currentView?e.$primevue.config.locale.prevYear:e.$primevue.config.locale.prevMonth},[r.createElementVNode("span",{class:r.normalizeClass(["p-datepicker-prev-icon",n.previousIcon])},null,2)],40,b)),[[r.vShow,!!n.showOtherMonths&&0===o],[c]]),r.createElementVNode("div",f,["date"===a.currentView?(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",onClick:t[7]||(t[7]=(...e)=>l.switchToMonthView&&l.switchToMonthView(...e)),onKeydown:t[8]||(t[8]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),class:"p-datepicker-month p-link",disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},r.toDisplayString(l.getMonthName(i.month)),41,g)):r.createCommentVNode("",!0),"year"!==a.currentView?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",onClick:t[9]||(t[9]=(...e)=>l.switchToYearView&&l.switchToYearView(...e)),onKeydown:t[10]||(t[10]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),class:"p-datepicker-year p-link",disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},r.toDisplayString(l.getYear(i)),41,v)):r.createCommentVNode("",!0),"year"===a.currentView?(r.openBlock(),r.createElementBlock("span",w,[r.renderSlot(e.$slots,"decade",{years:l.yearPickerValues},(()=>[r.createTextVNode(r.toDisplayString(l.yearPickerValues[0])+" - "+r.toDisplayString(l.yearPickerValues[l.yearPickerValues.length-1]),1)]))])):r.createCommentVNode("",!0)]),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-datepicker-next p-link",onClick:t[11]||(t[11]=(...e)=>l.onNextButtonClick&&l.onNextButtonClick(...e)),type:"button",onKeydown:t[12]||(t[12]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),disabled:n.disabled,"aria-label":"year"===a.currentView?e.$primevue.config.locale.nextDecade:"month"===a.currentView?e.$primevue.config.locale.nextYear:e.$primevue.config.locale.nextMonth},[r.createElementVNode("span",{class:r.normalizeClass(["p-datepicker-next-icon",n.nextIcon])},null,2)],40,D)),[[r.vShow,!!n.showOtherMonths&&(1===n.numberOfMonths||o===n.numberOfMonths-1)],[c]])]),"date"===a.currentView?(r.openBlock(),r.createElementBlock("div",S,[r.createElementVNode("table",M,[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[n.showWeek?(r.openBlock(),r.createElementBlock("th",x,[r.createElementVNode("span",null,r.toDisplayString(l.weekHeaderLabel),1)])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.weekDays,(e=>(r.openBlock(),r.createElementBlock("th",{key:e,scope:"col",abbr:e},[r.createElementVNode("span",null,r.toDisplayString(e),1)],8,E)))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.dates,((t,a)=>(r.openBlock(),r.createElementBlock("tr",{key:t[0].day+""+t[0].month},[n.showWeek?(r.openBlock(),r.createElementBlock("td",C,[r.createElementVNode("span",V,[i.weekNumbers[a]<10?(r.openBlock(),r.createElementBlock("span",T,"0")):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(i.weekNumbers[a]),1)])])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t,(t=>(r.openBlock(),r.createElementBlock("td",{key:t.day+""+t.month,"aria-label":t.day,class:r.normalizeClass({"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today})},[r.withDirectives((r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass({"p-highlight":l.isSelected(t),"p-disabled":!t.selectable}),onClick:e=>l.onDateSelect(e,t),draggable:"false",onKeydown:e=>l.onDateCellKeydown(e,t,o),"aria-selected":l.isSelected(t)},[r.renderSlot(e.$slots,"date",{date:t},(()=>[r.createTextVNode(r.toDisplayString(t.day),1)]))],42,H)),[[c]]),l.isSelected(t)?(r.openBlock(),r.createElementBlock("div",I,r.toDisplayString(t.day),1)):r.createCommentVNode("",!0)],10,B)))),128))])))),128))])])])):r.createCommentVNode("",!0)])))),128))]),"month"===a.currentView?(r.openBlock(),r.createElementBlock("div",N,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.monthPickerValues,((e,t)=>r.withDirectives((r.openBlock(),r.createElementBlock("span",{key:e,onClick:e=>l.onMonthSelect(e,t),onKeydown:e=>l.onMonthCellKeydown(e,t),class:r.normalizeClass(["p-monthpicker-month",{"p-highlight":l.isMonthSelected(t)}])},[r.createTextVNode(r.toDisplayString(e)+" ",1),l.isMonthSelected(t)?(r.openBlock(),r.createElementBlock("div",F,r.toDisplayString(e),1)):r.createCommentVNode("",!0)],42,P)),[[c]]))),128))])):r.createCommentVNode("",!0),"year"===a.currentView?(r.openBlock(),r.createElementBlock("div",K,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.yearPickerValues,(e=>r.withDirectives((r.openBlock(),r.createElementBlock("span",{key:e,onClick:t=>l.onYearSelect(t,e),onKeydown:t=>l.onYearCellKeydown(t,e),class:r.normalizeClass(["p-yearpicker-year",{"p-highlight":l.isYearSelected(e)}])},[r.createTextVNode(r.toDisplayString(e)+" ",1),l.isYearSelected(e)?(r.openBlock(),r.createElementBlock("div",$,r.toDisplayString(e),1)):r.createCommentVNode("",!0)],42,Y)),[[c]]))),128))])):r.createCommentVNode("",!0)],64)),(n.showTime||n.timeOnly)&&"date"===a.currentView?(r.openBlock(),r.createElementBlock("div",O,[r.createElementVNode("div",L,[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.nextHour,onMousedown:t[13]||(t[13]=e=>l.onTimePickerElementMouseDown(e,0,1)),onMouseup:t[14]||(t[14]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[15]||(t[15]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[17]||(t[17]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,0,1)),["enter"])),t[18]||(t[18]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,0,1)),["space"]))],onMouseleave:t[16]||(t[16]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[19]||(t[19]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[20]||(t[20]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.incrementIcon)},null,2)],40,A)),[[c]]),r.createElementVNode("span",null,r.toDisplayString(l.formattedCurrentHour),1),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.prevHour,onMousedown:t[21]||(t[21]=e=>l.onTimePickerElementMouseDown(e,0,-1)),onMouseup:t[22]||(t[22]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[23]||(t[23]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[25]||(t[25]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,0,-1)),["enter"])),t[26]||(t[26]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,0,-1)),["space"]))],onMouseleave:t[24]||(t[24]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[27]||(t[27]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[28]||(t[28]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.decrementIcon)},null,2)],40,U)),[[c]])]),r.createElementVNode("div",R,[r.createElementVNode("span",null,r.toDisplayString(n.timeSeparator),1)]),r.createElementVNode("div",z,[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.nextMinute,onMousedown:t[29]||(t[29]=e=>l.onTimePickerElementMouseDown(e,1,1)),onMouseup:t[30]||(t[30]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[31]||(t[31]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[33]||(t[33]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,1,1)),["enter"])),t[34]||(t[34]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,1,1)),["space"]))],disabled:n.disabled,onMouseleave:t[32]||(t[32]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[35]||(t[35]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[36]||(t[36]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.incrementIcon)},null,2)],40,j)),[[c]]),r.createElementVNode("span",null,r.toDisplayString(l.formattedCurrentMinute),1),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.prevMinute,onMousedown:t[37]||(t[37]=e=>l.onTimePickerElementMouseDown(e,1,-1)),onMouseup:t[38]||(t[38]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[39]||(t[39]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[41]||(t[41]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,1,-1)),["enter"])),t[42]||(t[42]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,1,-1)),["space"]))],disabled:n.disabled,onMouseleave:t[40]||(t[40]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[43]||(t[43]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[44]||(t[44]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.decrementIcon)},null,2)],40,q)),[[c]])]),n.showSeconds?(r.openBlock(),r.createElementBlock("div",W,[r.createElementVNode("span",null,r.toDisplayString(n.timeSeparator),1)])):r.createCommentVNode("",!0),n.showSeconds?(r.openBlock(),r.createElementBlock("div",Z,[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.nextSecond,onMousedown:t[45]||(t[45]=e=>l.onTimePickerElementMouseDown(e,2,1)),onMouseup:t[46]||(t[46]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[47]||(t[47]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[49]||(t[49]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,2,1)),["enter"])),t[50]||(t[50]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,2,1)),["space"]))],disabled:n.disabled,onMouseleave:t[48]||(t[48]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[51]||(t[51]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[52]||(t[52]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.incrementIcon)},null,2)],40,_)),[[c]]),r.createElementVNode("span",null,r.toDisplayString(l.formattedCurrentSecond),1),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.prevSecond,onMousedown:t[53]||(t[53]=e=>l.onTimePickerElementMouseDown(e,2,-1)),onMouseup:t[54]||(t[54]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[55]||(t[55]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[57]||(t[57]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,2,-1)),["enter"])),t[58]||(t[58]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,2,-1)),["space"]))],disabled:n.disabled,onMouseleave:t[56]||(t[56]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[59]||(t[59]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[60]||(t[60]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.decrementIcon)},null,2)],40,G)),[[c]])])):r.createCommentVNode("",!0),"12"==n.hourFormat?(r.openBlock(),r.createElementBlock("div",J,[r.createElementVNode("span",null,r.toDisplayString(n.timeSeparator),1)])):r.createCommentVNode("",!0),"12"==n.hourFormat?(r.openBlock(),r.createElementBlock("div",Q,[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.am,onClick:t[61]||(t[61]=e=>l.toggleAMPM(e)),type:"button",disabled:n.disabled},[r.createElementVNode("span",{class:r.normalizeClass(n.incrementIcon)},null,2)],8,X)),[[c]]),r.createElementVNode("span",null,r.toDisplayString(a.pm?e.$primevue.config.locale.pm:e.$primevue.config.locale.am),1),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.pm,onClick:t[62]||(t[62]=e=>l.toggleAMPM(e)),type:"button",disabled:n.disabled},[r.createElementVNode("span",{class:r.normalizeClass(n.decrementIcon)},null,2)],8,ee)),[[c]])])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),n.showButtonBar?(r.openBlock(),r.createElementBlock("div",te,[r.createVNode(o,{type:"button",label:l.todayLabel,onClick:t[63]||(t[63]=e=>l.onTodayButtonClick(e)),class:"p-button-text",onKeydown:l.onContainerButtonKeydown},null,8,["label","onKeydown"]),r.createVNode(o,{type:"button",label:l.clearLabel,onClick:t[64]||(t[64]=e=>l.onClearButtonClick(e)),class:"p-button-text",onKeydown:l.onContainerButtonKeydown},null,8,["label","onKeydown"])])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"footer")],16,m)):r.createCommentVNode("",!0)])),_:3},8,["onAfterEnter","onAfterLeave","onLeave"])])),_:3},8,["appendTo","disabled"])],10,d)},module.exports=u;
|
|
1
|
+
"use strict";var e=require("primevue/button"),t=require("primevue/overlayeventbus"),n=require("primevue/portal"),i=require("primevue/ripple"),a=require("primevue/utils"),r=require("vue");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),s=l(t),c=l(n),h=l(i),u={name:"Calendar",emits:["show","hide","input","month-change","year-change","date-select","update:modelValue","today-click","clear-click","focus","blur","keydown"],props:{modelValue:null,selectionMode:{type:String,default:"single"},dateFormat:{type:String,default:null},inline:{type:Boolean,default:!1},showOtherMonths:{type:Boolean,default:!0},selectOtherMonths:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},icon:{type:String,default:"pi pi-calendar"},previousIcon:{type:String,default:"pi pi-chevron-left"},nextIcon:{type:String,default:"pi pi-chevron-right"},incrementIcon:{type:String,default:"pi pi-chevron-up"},decrementIcon:{type:String,default:"pi pi-chevron-down"},numberOfMonths:{type:Number,default:1},responsiveOptions:Array,view:{type:String,default:"date"},touchUI:{type:Boolean,default:!1},monthNavigator:{type:Boolean,default:!1},yearNavigator:{type:Boolean,default:!1},yearRange:{type:String,default:null},minDate:{type:Date,value:null},maxDate:{type:Date,value:null},disabledDates:{type:Array,value:null},disabledDays:{type:Array,value:null},maxDateCount:{type:Number,value:null},showOnFocus:{type:Boolean,default:!0},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},showButtonBar:{type:Boolean,default:!1},shortYearCutoff:{type:String,default:"+10"},showTime:{type:Boolean,default:!1},timeOnly:{type:Boolean,default:!1},hourFormat:{type:String,default:"24"},stepHour:{type:Number,default:1},stepMinute:{type:Number,default:1},stepSecond:{type:Number,default:1},showSeconds:{type:Boolean,default:!1},hideOnDateTimeSelect:{type:Boolean,default:!1},hideOnRangeSelection:{type:Boolean,default:!1},timeSeparator:{type:String,default:":"},showWeek:{type:Boolean,default:!1},manualInput:{type:Boolean,default:!0},appendTo:{type:String,default:"body"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:null},id:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},panelProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},navigationState:null,timePickerChange:!1,scrollHandler:null,outsideClickListener:null,maskClickListener:null,resizeListener:null,overlay:null,input:null,mask:null,timePickerTimer:null,preventFocus:!1,typeUpdate:!1,data(){return{currentMonth:null,currentYear:null,currentHour:null,currentMinute:null,currentSecond:null,pm:null,focused:!1,overlayVisible:!1,currentView:this.view}},watch:{modelValue(e){this.updateCurrentMetaData(),this.typeUpdate||this.inline||!this.input||(this.input.value=this.formatValue(e)),this.typeUpdate=!1},showTime(){this.updateCurrentMetaData()},months(){this.overlay&&(this.focused||(this.inline&&(this.preventFocus=!0),setTimeout(this.updateFocus,0)))},numberOfMonths(){this.destroyResponsiveStyleElement(),this.createResponsiveStyle()},responsiveOptions(){this.destroyResponsiveStyleElement(),this.createResponsiveStyle()},currentView(){Promise.resolve(null).then((()=>this.alignOverlay()))}},created(){this.updateCurrentMetaData()},mounted(){this.createResponsiveStyle(),this.inline?(this.overlay&&this.overlay.setAttribute(this.attributeSelector,""),this.disabled||(this.preventFocus=!0,this.initFocusableCell(),1===this.numberOfMonths&&(this.overlay.style.width=a.DomHandler.getOuterWidth(this.$el)+"px"))):this.input.value=this.formatValue(this.modelValue)},updated(){this.overlay&&(this.preventFocus=!0,this.updateFocus()),this.input&&null!=this.selectionStart&&null!=this.selectionEnd&&(this.input.selectionStart=this.selectionStart,this.input.selectionEnd=this.selectionEnd,this.selectionStart=null,this.selectionEnd=null)},beforeUnmount(){this.timePickerTimer&&clearTimeout(this.timePickerTimer),this.mask&&this.destroyMask(),this.destroyResponsiveStyleElement(),this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&a.ZIndexUtils.clear(this.overlay),this.overlay=null},methods:{isComparable(){return null!=this.modelValue&&"string"!=typeof this.modelValue},isSelected(e){if(!this.isComparable())return!1;if(this.modelValue){if(this.isSingleSelection())return this.isDateEquals(this.modelValue,e);if(this.isMultipleSelection()){let t=!1;for(let n of this.modelValue)if(t=this.isDateEquals(n,e),t)break;return t}if(this.isRangeSelection())return this.modelValue[1]?this.isDateEquals(this.modelValue[0],e)||this.isDateEquals(this.modelValue[1],e)||this.isDateBetween(this.modelValue[0],this.modelValue[1],e):this.isDateEquals(this.modelValue[0],e)}return!1},isMonthSelected(e){if(this.isComparable()){let t=this.isRangeSelection()?this.modelValue[0]:this.modelValue;return!this.isMultipleSelection()&&(t.getMonth()===e&&t.getFullYear()===this.currentYear)}return!1},isYearSelected(e){if(this.isComparable()){let t=this.isRangeSelection()?this.modelValue[0]:this.modelValue;return!(this.isMultipleSelection()||!this.isComparable())&&t.getFullYear()===e}return!1},isDateEquals:(e,t)=>!!e&&(e.getDate()===t.day&&e.getMonth()===t.month&&e.getFullYear()===t.year),isDateBetween(e,t,n){if(e&&t){let i=new Date(n.year,n.month,n.day);return e.getTime()<=i.getTime()&&t.getTime()>=i.getTime()}return!1},getFirstDayOfMonthIndex(e,t){let n=new Date;n.setDate(1),n.setMonth(e),n.setFullYear(t);let i=n.getDay()+this.sundayIndex;return i>=7?i-7:i},getDaysCountInMonth(e,t){return 32-this.daylightSavingAdjust(new Date(t,e,32)).getDate()},getDaysCountInPrevMonth(e,t){let n=this.getPreviousMonthAndYear(e,t);return this.getDaysCountInMonth(n.month,n.year)},getPreviousMonthAndYear(e,t){let n,i;return 0===e?(n=11,i=t-1):(n=e-1,i=t),{month:n,year:i}},getNextMonthAndYear(e,t){let n,i;return 11===e?(n=0,i=t+1):(n=e+1,i=t),{month:n,year:i}},daylightSavingAdjust:e=>e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null,isToday:(e,t,n,i)=>e.getDate()===t&&e.getMonth()===n&&e.getFullYear()===i,isSelectable(e,t,n,i){let a=!0,r=!0,l=!0,o=!0;return!(i&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>n||this.minDate.getFullYear()===n&&(this.minDate.getMonth()>t||this.minDate.getMonth()===t&&this.minDate.getDate()>e))&&(a=!1),this.maxDate&&(this.maxDate.getFullYear()<n||this.maxDate.getFullYear()===n&&(this.maxDate.getMonth()<t||this.maxDate.getMonth()===t&&this.maxDate.getDate()<e))&&(r=!1),this.disabledDates&&(l=!this.isDateDisabled(e,t,n)),this.disabledDays&&(o=!this.isDayDisabled(e,t,n)),a&&r&&l&&o)},onOverlayEnter(e){e.setAttribute(this.attributeSelector,""),this.autoZIndex&&(this.touchUI?a.ZIndexUtils.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal):a.ZIndexUtils.set("overlay",e,this.baseZIndex||this.$primevue.config.zIndex.overlay)),this.alignOverlay(),this.$emit("show")},onOverlayEnterComplete(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener()},onOverlayAfterLeave(e){this.autoZIndex&&a.ZIndexUtils.clear(e)},onOverlayLeave(){this.currentView=this.view,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.mask&&this.disableModality(),this.overlay=null},onPrevButtonClick(e){this.showOtherMonths&&(this.navigationState={backward:!0,button:!0},this.navBackward(e))},onNextButtonClick(e){this.showOtherMonths&&(this.navigationState={backward:!1,button:!0},this.navForward(e))},navBackward(e){e.preventDefault(),this.isEnabled()&&("month"===this.currentView?this.decrementYear():"year"===this.currentView?this.decrementDecade():e.shiftKey?this.decrementYear():(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.$emit("month-change",{month:this.currentMonth+1,year:this.currentYear})))},navForward(e){e.preventDefault(),this.isEnabled()&&("month"===this.currentView?this.incrementYear():"year"===this.currentView?this.incrementDecade():e.shiftKey?this.incrementYear():(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.$emit("month-change",{month:this.currentMonth+1,year:this.currentYear})))},decrementYear(){this.currentYear--},decrementDecade(){this.currentYear=this.currentYear-10},incrementYear(){this.currentYear++},incrementDecade(){this.currentYear=this.currentYear+10},switchToMonthView(e){this.currentView="month",setTimeout(this.updateFocus,0),e.preventDefault()},switchToYearView(e){this.currentView="year",setTimeout(this.updateFocus,0),e.preventDefault()},isEnabled(){return!this.disabled&&!this.readonly},updateCurrentTimeMeta(e){let t=e.getHours();"12"===this.hourFormat&&(this.pm=t>11,t=t>=12?12==t?12:t-12:0==t?12:t),this.currentHour=Math.floor(t/this.stepHour)*this.stepHour,this.currentMinute=Math.floor(e.getMinutes()/this.stepMinute)*this.stepMinute,this.currentSecond=Math.floor(e.getSeconds()/this.stepSecond)*this.stepSecond},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.isOutsideClicked(e)&&(this.overlayVisible=!1)},document.addEventListener("mousedown",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("mousedown",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new a.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&(this.overlayVisible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!a.DomHandler.isTouchDevice()&&(this.overlayVisible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!(this.$el.isSameNode(e.target)||this.isNavIconClicked(e)||this.$el.contains(e.target)||this.overlay&&this.overlay.contains(e.target))},isNavIconClicked:e=>a.DomHandler.hasClass(e.target,"p-datepicker-prev")||a.DomHandler.hasClass(e.target,"p-datepicker-prev-icon")||a.DomHandler.hasClass(e.target,"p-datepicker-next")||a.DomHandler.hasClass(e.target,"p-datepicker-next-icon"),alignOverlay(){this.touchUI?this.enableModality():this.overlay&&("self"===this.appendTo||this.inline?a.DomHandler.relativePosition(this.overlay,this.$el):("date"===this.view?(this.overlay.style.width=a.DomHandler.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=a.DomHandler.getOuterWidth(this.$el)+"px"):this.overlay.style.width=a.DomHandler.getOuterWidth(this.$el)+"px",a.DomHandler.absolutePosition(this.overlay,this.$el)))},onButtonClick(){this.isEnabled()&&(this.overlayVisible?this.overlayVisible=!1:(this.input.focus(),this.overlayVisible=!0))},isDateDisabled(e,t,n){if(this.disabledDates)for(let i of this.disabledDates)if(i.getFullYear()===n&&i.getMonth()===t&&i.getDate()===e)return!0;return!1},isDayDisabled(e,t,n){if(this.disabledDays){let i=new Date(n,t,e).getDay();return-1!==this.disabledDays.indexOf(i)}return!1},onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.$emit("month-change",{month:this.currentMonth+1,year:this.currentYear})},onYearDropdownChange(e){this.currentYear=parseInt(e),this.$emit("year-change",{month:this.currentMonth+1,year:this.currentYear})},onDateSelect(e,t){if(!this.disabled&&t.selectable){if(a.DomHandler.find(this.overlay,".p-datepicker-calendar td span:not(.p-disabled)").forEach((e=>e.tabIndex=-1)),e&&e.currentTarget.focus(),this.isMultipleSelection()&&this.isSelected(t)){let e=this.modelValue.filter((e=>!this.isDateEquals(e,t)));this.updateModel(e)}else this.shouldSelectDate(t)&&(t.otherMonth?(this.currentMonth=t.month,this.currentYear=t.year,this.selectDate(t)):this.selectDate(t));!this.isSingleSelection()||this.showTime&&!this.hideOnDateTimeSelect||setTimeout((()=>{this.input&&this.input.focus(),this.overlayVisible=!1}),150)}},selectDate(e){let t=new Date(e.year,e.month,e.day);this.showTime&&("12"===this.hourFormat&&this.pm&&12!=this.currentHour?t.setHours(this.currentHour+12):t.setHours(this.currentHour),t.setMinutes(this.currentMinute),t.setSeconds(this.currentSecond)),this.minDate&&this.minDate>t&&(t=this.minDate,this.currentHour=t.getHours(),this.currentMinute=t.getMinutes(),this.currentSecond=t.getSeconds()),this.maxDate&&this.maxDate<t&&(t=this.maxDate,this.currentHour=t.getHours(),this.currentMinute=t.getMinutes(),this.currentSecond=t.getSeconds());let n=null;if(this.isSingleSelection())n=t;else if(this.isMultipleSelection())n=this.modelValue?[...this.modelValue,t]:[t];else if(this.isRangeSelection())if(this.modelValue&&this.modelValue.length){let e=this.modelValue[0],i=this.modelValue[1];!i&&t.getTime()>=e.getTime()?i=t:(e=t,i=null),n=[e,i]}else n=[t,null];null!==n&&this.updateModel(n),this.isRangeSelection()&&this.hideOnRangeSelection&&null!==n[1]&&setTimeout((()=>{this.overlayVisible=!1}),150),this.$emit("date-select",t)},updateModel(e){this.$emit("update:modelValue",e)},shouldSelectDate(){return!this.isMultipleSelection()||(null==this.maxDateCount||this.maxDateCount>(this.modelValue?this.modelValue.length:0))},isSingleSelection(){return"single"===this.selectionMode},isRangeSelection(){return"range"===this.selectionMode},isMultipleSelection(){return"multiple"===this.selectionMode},formatValue(e){if("string"==typeof e)return e;let t="";if(e)try{if(this.isSingleSelection())t=this.formatDateTime(e);else if(this.isMultipleSelection())for(let n=0;n<e.length;n++){t+=this.formatDateTime(e[n]),n!==e.length-1&&(t+=", ")}else if(this.isRangeSelection()&&e&&e.length){let n=e[0],i=e[1];t=this.formatDateTime(n),i&&(t+=" - "+this.formatDateTime(i))}}catch(n){t=e}return t},formatDateTime(e){let t=null;return e&&(this.timeOnly?t=this.formatTime(e):(t=this.formatDate(e,this.datePattern),this.showTime&&(t+=" "+this.formatTime(e)))),t},formatDate(e,t){if(!e)return"";let n;const i=e=>{const i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},a=(e,t,n)=>{let a=""+t;if(i(e))for(;a.length<n;)a="0"+a;return a},r=(e,t,n,a)=>i(e)?a[t]:n[t];let l="",o=!1;if(e)for(n=0;n<t.length;n++)if(o)"'"!==t.charAt(n)||i("'")?l+=t.charAt(n):o=!1;else switch(t.charAt(n)){case"d":l+=a("d",e.getDate(),2);break;case"D":l+=r("D",e.getDay(),this.$primevue.config.locale.dayNamesShort,this.$primevue.config.locale.dayNames);break;case"o":l+=a("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=a("m",e.getMonth()+1,2);break;case"M":l+=r("M",e.getMonth(),this.$primevue.config.locale.monthNamesShort,this.$primevue.config.locale.monthNames);break;case"y":l+=i("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":l+=e.getTime();break;case"!":l+=1e4*e.getTime()+this.ticksTo1970;break;case"'":i("'")?l+="'":o=!0;break;default:l+=t.charAt(n)}return l},formatTime(e){if(!e)return"";let t="",n=e.getHours(),i=e.getMinutes(),a=e.getSeconds();return"12"===this.hourFormat&&n>11&&12!==n&&(n-=12),"12"===this.hourFormat?t+=0===n?12:n<10?"0"+n:n:t+=n<10?"0"+n:n,t+=":",t+=i<10?"0"+i:i,this.showSeconds&&(t+=":",t+=a<10?"0"+a:a),"12"===this.hourFormat&&(t+=e.getHours()>11?` ${this.$primevue.config.locale.pm}`:` ${this.$primevue.config.locale.am}`),t},onTodayButtonClick(e){let t=new Date,n={day:t.getDate(),month:t.getMonth(),year:t.getFullYear(),otherMonth:t.getMonth()!==this.currentMonth||t.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(null,n),this.$emit("today-click",t),e.preventDefault()},onClearButtonClick(e){this.updateModel(null),this.overlayVisible=!1,this.$emit("clear-click",e),e.preventDefault()},onTimePickerElementMouseDown(e,t,n){this.isEnabled()&&(this.repeat(e,null,t,n),e.preventDefault())},onTimePickerElementMouseUp(e){this.isEnabled()&&(this.clearTimePickerTimer(),this.updateModelTime(),e.preventDefault())},onTimePickerElementMouseLeave(){this.clearTimePickerTimer()},repeat(e,t,n,i){let a=t||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout((()=>{this.repeat(e,100,n,i)}),a),n){case 0:1===i?this.incrementHour(e):this.decrementHour(e);break;case 1:1===i?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===i?this.incrementSecond(e):this.decrementSecond(e)}},convertTo24Hour(e,t){return"12"==this.hourFormat?12===e?t?12:0:t?e+12:e:e},validateTime(e,t,n,i){let a=this.isComparable()?this.modelValue:this.viewDate;const r=this.convertTo24Hour(e,i);this.isRangeSelection()&&(a=this.modelValue[1]||this.modelValue[0]),this.isMultipleSelection()&&(a=this.modelValue[this.modelValue.length-1]);const l=a?a.toDateString():null;if(this.minDate&&l&&this.minDate.toDateString()===l){if(this.minDate.getHours()>r)return!1;if(this.minDate.getHours()===r){if(this.minDate.getMinutes()>t)return!1;if(this.minDate.getMinutes()===t&&this.minDate.getSeconds()>n)return!1}}if(this.maxDate&&l&&this.maxDate.toDateString()===l){if(this.maxDate.getHours()<r)return!1;if(this.maxDate.getHours()===r){if(this.maxDate.getMinutes()<t)return!1;if(this.maxDate.getMinutes()===t&&this.maxDate.getSeconds()<n)return!1}}return!0},incrementHour(e){let t=this.currentHour,n=this.currentHour+this.stepHour,i=this.pm;"24"==this.hourFormat?n=n>=24?n-24:n:"12"==this.hourFormat&&(t<12&&n>11&&(i=!this.pm),n=n>=13?n-12:n),this.validateTime(n,this.currentMinute,this.currentSecond,i)&&(this.currentHour=n,this.pm=i),e.preventDefault()},decrementHour(e){let t=this.currentHour-this.stepHour,n=this.pm;"24"==this.hourFormat?t=t<0?24+t:t:"12"==this.hourFormat&&(12===this.currentHour&&(n=!this.pm),t=t<=0?12+t:t),this.validateTime(t,this.currentMinute,this.currentSecond,n)&&(this.currentHour=t,this.pm=n),e.preventDefault()},incrementMinute(e){let t=this.currentMinute+this.stepMinute;this.validateTime(this.currentHour,t,this.currentSecond,!0)&&(this.currentMinute=t>59?t-60:t),e.preventDefault()},decrementMinute(e){let t=this.currentMinute-this.stepMinute;t=t<0?60+t:t,this.validateTime(this.currentHour,t,this.currentSecond,!0)&&(this.currentMinute=t),e.preventDefault()},incrementSecond(e){let t=this.currentSecond+this.stepSecond;this.validateTime(this.currentHour,this.currentMinute,t,!0)&&(this.currentSecond=t>59?t-60:t),e.preventDefault()},decrementSecond(e){let t=this.currentSecond-this.stepSecond;t=t<0?60+t:t,this.validateTime(this.currentHour,this.currentMinute,t,!0)&&(this.currentSecond=t),e.preventDefault()},updateModelTime(){this.timePickerChange=!0;let e=this.isComparable()?this.modelValue:this.viewDate;this.isRangeSelection()&&(e=this.modelValue[1]||this.modelValue[0]),this.isMultipleSelection()&&(e=this.modelValue[this.modelValue.length-1]),e=e?new Date(e.getTime()):new Date,"12"==this.hourFormat?12===this.currentHour?e.setHours(this.pm?12:0):e.setHours(this.pm?this.currentHour+12:this.currentHour):e.setHours(this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.modelValue[1]?[this.modelValue[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.modelValue.slice(0,-1),e]),this.updateModel(e),this.$emit("date-select",e),setTimeout((()=>this.timePickerChange=!1),0)},toggleAMPM(e){(this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,!this.pm)||!this.maxDate&&!this.minDate)&&(this.pm=!this.pm,this.updateModelTime(),e.preventDefault())},clearTimePickerTimer(){this.timePickerTimer&&clearInterval(this.timePickerTimer)},onMonthSelect(e,t){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:t,day:1,selectable:!0}):(this.currentMonth=t,this.currentView="date",this.$emit("month-change",{month:this.currentMonth+1,year:this.currentYear})),setTimeout(this.updateFocus,0)},onYearSelect(e,t){"year"===this.view?this.onDateSelect(e,{year:t,month:0,day:1,selectable:!0}):(this.currentYear=t,this.currentView="month",this.$emit("year-change",{month:this.currentMonth+1,year:this.currentYear})),setTimeout(this.updateFocus,0)},enableModality(){this.mask||(this.mask=document.createElement("div"),this.mask.style.zIndex=String(parseInt(this.overlay.style.zIndex,10)-1),a.DomHandler.addMultipleClasses(this.mask,"p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=()=>{this.overlayVisible=!1},this.mask.addEventListener("click",this.maskClickListener),document.body.appendChild(this.mask),a.DomHandler.addClass(document.body,"p-overflow-hidden"))},disableModality(){this.mask&&(a.DomHandler.addClass(this.mask,"p-component-overlay-leave"),this.mask.addEventListener("animationend",(()=>{this.destroyMask()})))},destroyMask(){this.mask.removeEventListener("click",this.maskClickListener),this.maskClickListener=null,document.body.removeChild(this.mask),this.mask=null;let e,t=document.body.children;for(let n=0;n<t.length;n++){let i=t[n];if(a.DomHandler.hasClass(i,"p-datepicker-mask-scrollblocker")){e=!0;break}}e||a.DomHandler.removeClass(document.body,"p-overflow-hidden")},updateCurrentMetaData(){const e=this.viewDate;this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),(this.showTime||this.timeOnly)&&this.updateCurrentTimeMeta(e)},isValidSelection(e){if(null==e)return!0;let t=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(t=!1):e.every((e=>this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)))&&this.isRangeSelection()&&(t=e.length>1&&e[1]>e[0]),t},parseValue(e){if(!e||0===e.trim().length)return null;let t;if(this.isSingleSelection())t=this.parseDateTime(e);else if(this.isMultipleSelection()){let n=e.split(",");t=[];for(let e of n)t.push(this.parseDateTime(e.trim()))}else if(this.isRangeSelection()){let n=e.split(" - ");t=[];for(let e=0;e<n.length;e++)t[e]=this.parseDateTime(n[e].trim())}return t},parseDateTime(e){let t,n=e.split(" ");if(this.timeOnly)t=new Date,this.populateTime(t,n[0],n[1]);else{const i=this.datePattern;this.showTime?(t=this.parseDate(n[0],i),this.populateTime(t,n[1],n[2])):t=this.parseDate(e,i)}return t},populateTime(e,t,n){if("12"==this.hourFormat&&!n)throw"Invalid Time";this.pm=n===this.$primevue.config.locale.am||n===this.$primevue.config.locale.am.toLowerCase();let i=this.parseTime(t);e.setHours(i.hour),e.setMinutes(i.minute),e.setSeconds(i.second)},parseTime(e){let t=e.split(":"),n=this.showSeconds?3:2,i=/^[0-9][0-9]$/;if(t.length!==n||!t[0].match(i)||!t[1].match(i)||this.showSeconds&&!t[2].match(i))throw"Invalid time";let a=parseInt(t[0]),r=parseInt(t[1]),l=this.showSeconds?parseInt(t[2]):null;if(isNaN(a)||isNaN(r)||a>23||r>59||"12"==this.hourFormat&&a>12||this.showSeconds&&(isNaN(l)||l>59))throw"Invalid time";return"12"==this.hourFormat&&12!==a&&this.pm&&(a+=12),{hour:a,minute:r,second:l}},parseDate(e,t){if(null==t||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let n,i,a,r,l=0,o="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),s=-1,c=-1,h=-1,u=-1,d=!1,p=e=>{let i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},m=t=>{let n=p(t),i="@"===t?14:"!"===t?20:"y"===t&&n?4:"o"===t?3:2,a=new RegExp("^\\d{"+("y"===t?i:1)+","+i+"}"),r=e.substring(l).match(a);if(!r)throw"Missing number at position "+l;return l+=r[0].length,parseInt(r[0],10)},y=(t,n,i)=>{let a=-1,r=p(t)?i:n,o=[];for(let e=0;e<r.length;e++)o.push([e,r[e]]);o.sort(((e,t)=>-(e[1].length-t[1].length)));for(let t=0;t<o.length;t++){let n=o[t][1];if(e.substr(l,n.length).toLowerCase()===n.toLowerCase()){a=o[t][0],l+=n.length;break}}if(-1!==a)return a+1;throw"Unknown name at position "+l},k=()=>{if(e.charAt(l)!==t.charAt(n))throw"Unexpected literal at position "+l;l++};for("month"===this.currentView&&(h=1),n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||p("'")?k():d=!1;else switch(t.charAt(n)){case"d":h=m("d");break;case"D":y("D",this.$primevue.config.locale.dayNamesShort,this.$primevue.config.locale.dayNames);break;case"o":u=m("o");break;case"m":c=m("m");break;case"M":c=y("M",this.$primevue.config.locale.monthNamesShort,this.$primevue.config.locale.monthNames);break;case"y":s=m("y");break;case"@":r=new Date(m("@")),s=r.getFullYear(),c=r.getMonth()+1,h=r.getDate();break;case"!":r=new Date((m("!")-this.ticksTo1970)/1e4),s=r.getFullYear(),c=r.getMonth()+1,h=r.getDate();break;case"'":p("'")?k():d=!0;break;default:k()}if(l<e.length&&(a=e.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===s?s=(new Date).getFullYear():s<100&&(s+=(new Date).getFullYear()-(new Date).getFullYear()%100+(s<=o?0:-100)),u>-1)for(c=1,h=u;;){if(i=this.getDaysCountInMonth(s,c-1),h<=i)break;c++,h-=i}if(r=this.daylightSavingAdjust(new Date(s,c-1,h)),r.getFullYear()!==s||r.getMonth()+1!==c||r.getDate()!==h)throw"Invalid date";return r},getWeekNumber(e){let t=new Date(e.getTime());t.setDate(t.getDate()+4-(t.getDay()||7));let n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t.getTime())/864e5)/7)+1},onDateCellKeydown(e,t,n){const i=e.currentTarget,r=i.parentElement,l=a.DomHandler.index(r);switch(e.code){case"ArrowDown":if(i.tabIndex="-1",r.parentElement.nextElementSibling){let t=a.DomHandler.index(r.parentElement);let n=Array.from(r.parentElement.parentElement.children).slice(t+1).find((e=>{let t=e.children[l].children[0];return!a.DomHandler.hasClass(t,"p-disabled")}));if(n){let e=n.children[l].children[0];e.tabIndex="0",e.focus()}else this.navigationState={backward:!1},this.navForward(e)}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break;case"ArrowUp":if(i.tabIndex="-1",r.parentElement.previousElementSibling){let t=a.DomHandler.index(r.parentElement);let n=Array.from(r.parentElement.parentElement.children).slice(0,t).reverse().find((e=>{let t=e.children[l].children[0];return!a.DomHandler.hasClass(t,"p-disabled")}));if(n){let e=n.children[l].children[0];e.tabIndex="0",e.focus()}else this.navigationState={backward:!0},this.navBackward(e)}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break;case"ArrowLeft":if(i.tabIndex="-1",r.previousElementSibling){let t=Array.from(r.parentElement.children).slice(0,l).reverse().find((e=>{let t=e.children[0];return!a.DomHandler.hasClass(t,"p-disabled")}));if(t){let e=t.children[0];e.tabIndex="0",e.focus()}else this.navigateToMonth(e,!0,n)}else this.navigateToMonth(e,!0,n);e.preventDefault();break;case"ArrowRight":if(i.tabIndex="-1",r.nextElementSibling){let t=Array.from(r.parentElement.children).slice(l+1).find((e=>{let t=e.children[0];return!a.DomHandler.hasClass(t,"p-disabled")}));if(t){let e=t.children[0];e.tabIndex="0",e.focus()}else this.navigateToMonth(e,!1,n)}else this.navigateToMonth(e,!1,n);e.preventDefault();break;case"Enter":case"Space":this.onDateSelect(e,t),e.preventDefault();break;case"Escape":this.overlayVisible=!1,e.preventDefault();break;case"Tab":this.inline||this.trapFocus(e);break;case"Home":{i.tabIndex="-1";let t=r.parentElement.children[0].children[0];a.DomHandler.hasClass(t,"p-disabled")?this.navigateToMonth(e,!0,n):(t.tabIndex="0",t.focus()),e.preventDefault();break}case"End":{i.tabIndex="-1";let t=r.parentElement,l=t.children[t.children.length-1].children[0];a.DomHandler.hasClass(l,"p-disabled")?this.navigateToMonth(e,!1,n):(l.tabIndex="0",l.focus()),e.preventDefault();break}case"PageUp":i.tabIndex="-1",e.shiftKey?(this.navigationState={backward:!0},this.navBackward(e)):this.navigateToMonth(e,!0,n),e.preventDefault();break;case"PageDown":i.tabIndex="-1",e.shiftKey?(this.navigationState={backward:!1},this.navForward(e)):this.navigateToMonth(e,!1,n),e.preventDefault()}},navigateToMonth(e,t,n){if(t)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(e);else{let e=this.overlay.children[n-1],t=a.DomHandler.find(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i=t[t.length-1];i.tabIndex="0",i.focus()}else if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(e);else{let e=this.overlay.children[n+1],t=a.DomHandler.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");t.tabIndex="0",t.focus()}},onMonthCellKeydown(e,t){const n=e.currentTarget;switch(e.code){case"ArrowUp":case"ArrowDown":{n.tabIndex="-1";var i=n.parentElement.children,r=a.DomHandler.index(n);let t=i["ArrowDown"===e.code?r+3:r-3];t&&(t.tabIndex="0",t.focus()),e.preventDefault();break}case"ArrowLeft":{n.tabIndex="-1";let t=n.previousElementSibling;t?(t.tabIndex="0",t.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case"ArrowRight":{n.tabIndex="-1";let t=n.nextElementSibling;t?(t.tabIndex="0",t.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case"PageUp":if(e.shiftKey)return;this.navigationState={backward:!0},this.navBackward(e);break;case"PageDown":if(e.shiftKey)return;this.navigationState={backward:!1},this.navForward(e);break;case"Enter":case"Space":this.onMonthSelect(e,t),e.preventDefault();break;case"Escape":this.overlayVisible=!1,e.preventDefault();break;case"Tab":this.trapFocus(e)}},onYearCellKeydown(e,t){const n=e.currentTarget;switch(e.code){case"ArrowUp":case"ArrowDown":{n.tabIndex="-1";var i=n.parentElement.children,r=a.DomHandler.index(n);let t=i["ArrowDown"===e.code?r+2:r-2];t&&(t.tabIndex="0",t.focus()),e.preventDefault();break}case"ArrowLeft":{n.tabIndex="-1";let t=n.previousElementSibling;t?(t.tabIndex="0",t.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case"ArrowRight":{n.tabIndex="-1";let t=n.nextElementSibling;t?(t.tabIndex="0",t.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case"PageUp":if(e.shiftKey)return;this.navigationState={backward:!0},this.navBackward(e);break;case"PageDown":if(e.shiftKey)return;this.navigationState={backward:!1},this.navForward(e);break;case"Enter":case"Space":this.onYearSelect(e,t),e.preventDefault();break;case"Escape":this.overlayVisible=!1,e.preventDefault();break;case"Tab":this.trapFocus(e)}},updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?a.DomHandler.findSingle(this.overlay,".p-datepicker-prev").focus():a.DomHandler.findSingle(this.overlay,".p-datepicker-next").focus();else{if(this.navigationState.backward){let t;t="month"===this.currentView?a.DomHandler.find(this.overlay,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):"year"===this.currentView?a.DomHandler.find(this.overlay,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):a.DomHandler.find(this.overlay,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),t&&t.length>0&&(e=t[t.length-1])}else e="month"===this.currentView?a.DomHandler.findSingle(this.overlay,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):"year"===this.currentView?a.DomHandler.findSingle(this.overlay,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):a.DomHandler.findSingle(this.overlay,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()},initFocusableCell(){let e;if("month"===this.currentView){let t=a.DomHandler.find(this.overlay,".p-monthpicker .p-monthpicker-month"),n=a.DomHandler.findSingle(this.overlay,".p-monthpicker .p-monthpicker-month.p-highlight");t.forEach((e=>e.tabIndex=-1)),e=n||t[0]}else if("year"===this.currentView){let t=a.DomHandler.find(this.overlay,".p-yearpicker .p-yearpicker-year"),n=a.DomHandler.findSingle(this.overlay,".p-yearpicker .p-yearpicker-year.p-highlight");t.forEach((e=>e.tabIndex=-1)),e=n||t[0]}else if(e=a.DomHandler.findSingle(this.overlay,"span.p-highlight"),!e){let t=a.DomHandler.findSingle(this.overlay,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink");e=t||a.DomHandler.findSingle(this.overlay,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink")}e&&(e.tabIndex="0",this.preventFocus||this.navigationState&&this.navigationState.button||this.timePickerChange||e.focus(),this.preventFocus=!1)},trapFocus(e){e.preventDefault();let t=a.DomHandler.getFocusableElements(this.overlay);if(t&&t.length>0)if(document.activeElement){let n=t.indexOf(document.activeElement);if(e.shiftKey)-1===n||0===n?t[t.length-1].focus():t[n-1].focus();else if(-1===n)if(this.timeOnly)t[0].focus();else{let e=null;for(let n=0;n<t.length;n++)"SPAN"===t[n].tagName&&(e=n);t[e].focus()}else n===t.length-1?t[0].focus():t[n+1].focus()}else t[0].focus()},onContainerButtonKeydown(e){switch(e.code){case"Tab":this.trapFocus(e);break;case"Escape":this.overlayVisible=!1,e.preventDefault()}this.$emit("keydown",e)},onInput(e){try{this.selectionStart=this.input.selectionStart,this.selectionEnd=this.input.selectionEnd;let t=this.parseValue(e.target.value);this.isValidSelection(t)&&(this.typeUpdate=!0,this.updateModel(t))}catch(e){}this.$emit("input",e)},onInputClick(){this.showOnFocus&&this.isEnabled()&&!this.overlayVisible&&(this.overlayVisible=!0)},onFocus(e){this.showOnFocus&&this.isEnabled()&&(this.overlayVisible=!0),this.focused=!0,this.$emit("focus",e)},onBlur(e){this.$emit("blur",{originalEvent:e,value:e.target.value}),this.focused=!1,e.target.value=this.formatValue(this.modelValue)},onKeyDown(e){"ArrowDown"===e.code&&this.overlay?this.trapFocus(e):"ArrowDown"!==e.code||this.overlay?"Escape"===e.code?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):"Tab"===e.code&&(this.overlay&&a.DomHandler.getFocusableElements(this.overlay).forEach((e=>e.tabIndex="-1")),this.overlayVisible&&(this.overlayVisible=!1)):this.overlayVisible=!0},overlayRef(e){this.overlay=e},inputRef(e){this.input=e},getMonthName(e){return this.$primevue.config.locale.monthNames[e]},getYear(e){return"month"===this.currentView?this.currentYear:e.year},onOverlayClick(e){this.inline||s.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown(e){if("Escape"===e.code)this.input.focus(),this.overlayVisible=!1},onOverlayMouseUp(e){this.onOverlayClick(e)},createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.body.appendChild(this.responsiveStyleElement));let e="";if(this.responsiveOptions){let t=[...this.responsiveOptions].filter((e=>!(!e.breakpoint||!e.numMonths))).sort(((e,t)=>-1*e.breakpoint.localeCompare(t.breakpoint,void 0,{numeric:!0})));for(let n=0;n<t.length;n++){let{breakpoint:i,numMonths:a}=t[n],r=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${a}) .p-datepicker-next {\n display: inline-flex !important;\n }\n `;for(let e=a;e<this.numberOfMonths;e++)r+=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${e+1}) {\n display: none !important;\n }\n `;e+=`\n @media screen and (max-width: ${i}) {\n ${r}\n }\n `}}this.responsiveStyleElement.innerHTML=e}},destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}},computed:{viewDate(){let e=this.modelValue;if(e&&Array.isArray(e)&&(this.isRangeSelection()?e=this.inline?e[0]:e[1]||e[0]:this.isMultipleSelection()&&(e=e[e.length-1])),e&&"string"!=typeof e)return e;{let e=new Date;return this.maxDate&&this.maxDate<e?this.maxDate:this.minDate&&this.minDate>e?this.minDate:e}},inputFieldValue(){return this.formatValue(this.modelValue)},containerClass(){return["p-calendar p-component p-inputwrapper",{"p-calendar-w-btn":this.showIcon,"p-calendar-timeonly":this.timeOnly,"p-calendar-disabled":this.disabled,"p-inputwrapper-filled":this.modelValue,"p-inputwrapper-focus":this.focused}]},panelStyleClass(){return["p-datepicker p-component",this.panelClass,{"p-datepicker-inline":this.inline,"p-disabled":this.disabled,"p-datepicker-timeonly":this.timeOnly,"p-datepicker-multiple-month":this.numberOfMonths>1,"p-datepicker-monthpicker":"month"===this.currentView,"p-datepicker-yearpicker":"year"===this.currentView,"p-datepicker-touch-ui":this.touchUI,"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},months(){let e=[];for(let t=0;t<this.numberOfMonths;t++){let n=this.currentMonth+t,i=this.currentYear;n>11&&(n=n%11-1,i+=1);let a=[],r=this.getFirstDayOfMonthIndex(n,i),l=this.getDaysCountInMonth(n,i),o=this.getDaysCountInPrevMonth(n,i),s=1,c=new Date,h=[],u=Math.ceil((l+r)/7);for(let e=0;e<u;e++){let t=[];if(0==e){for(let e=o-r+1;e<=o;e++){let a=this.getPreviousMonthAndYear(n,i);t.push({day:e,month:a.month,year:a.year,otherMonth:!0,today:this.isToday(c,e,a.month,a.year),selectable:this.isSelectable(e,a.month,a.year,!0)})}let e=7-t.length;for(let a=0;a<e;a++)t.push({day:s,month:n,year:i,today:this.isToday(c,s,n,i),selectable:this.isSelectable(s,n,i,!1)}),s++}else for(let e=0;e<7;e++){if(s>l){let e=this.getNextMonthAndYear(n,i);t.push({day:s-l,month:e.month,year:e.year,otherMonth:!0,today:this.isToday(c,s-l,e.month,e.year),selectable:this.isSelectable(s-l,e.month,e.year,!0)})}else t.push({day:s,month:n,year:i,today:this.isToday(c,s,n,i),selectable:this.isSelectable(s,n,i,!1)});s++}this.showWeek&&h.push(this.getWeekNumber(new Date(t[0].year,t[0].month,t[0].day))),a.push(t)}e.push({month:n,year:i,dates:a,weekNumbers:h})}return e},weekDays(){let e=[],t=this.$primevue.config.locale.firstDayOfWeek;for(let n=0;n<7;n++)e.push(this.$primevue.config.locale.dayNamesMin[t]),t=6==t?0:++t;return e},ticksTo1970:()=>24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,sundayIndex(){return this.$primevue.config.locale.firstDayOfWeek>0?7-this.$primevue.config.locale.firstDayOfWeek:0},datePattern(){return this.dateFormat||this.$primevue.config.locale.dateFormat},yearOptions(){if(this.yearRange){let e=this;const t=this.yearRange.split(":");let n=parseInt(t[0]),i=parseInt(t[1]),a=[];this.currentYear<n?e.currentYear=i:this.currentYear>i&&(e.currentYear=n);for(let e=n;e<=i;e++)a.push(e);return a}return null},monthPickerValues(){let e=[];for(let t=0;t<=11;t++)e.push(this.$primevue.config.locale.monthNamesShort[t]);return e},yearPickerValues(){let e=[],t=this.currentYear-this.currentYear%10;for(let n=0;n<10;n++)e.push(t+n);return e},formattedCurrentHour(){return this.currentHour<10?"0"+this.currentHour:this.currentHour},formattedCurrentMinute(){return this.currentMinute<10?"0"+this.currentMinute:this.currentMinute},formattedCurrentSecond(){return this.currentSecond<10?"0"+this.currentSecond:this.currentSecond},todayLabel(){return this.$primevue.config.locale.today},clearLabel(){return this.$primevue.config.locale.clear},weekHeaderLabel(){return this.$primevue.config.locale.weekHeader},monthNames(){return this.$primevue.config.locale.monthNames},attributeSelector:()=>a.UniqueComponentId(),switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled},panelId:()=>a.UniqueComponentId()+"_panel"},components:{CalendarButton:o.default,Portal:c.default},directives:{ripple:h.default}};const d=["id"],p=["id","placeholder","aria-expanded","aria-controls","aria-labelledby","aria-label","disabled","readonly"],m=["id","role","aria-modal","aria-label"],y={class:"p-datepicker-group-container"},k={class:"p-datepicker-header"},b=["disabled","aria-label"],f={class:"p-datepicker-title"},g=["disabled","aria-label"],v=["disabled","aria-label"],w={key:2,class:"p-datepicker-decade"},D=["disabled","aria-label"],S={key:0,class:"p-datepicker-calendar-container"},M={class:"p-datepicker-calendar",role:"grid"},x={key:0,scope:"col",class:"p-datepicker-weekheader p-disabled"},E=["abbr"],C={key:0,class:"p-datepicker-weeknumber"},V={class:"p-disabled"},T={key:0,style:{visibility:"hidden"}},B=["aria-label"],H=["onClick","onKeydown","aria-selected"],I={key:0,class:"p-hidden-accessible","aria-live":"polite"},N={key:0,class:"p-monthpicker"},P=["onClick","onKeydown"],F={key:0,class:"p-hidden-accessible","aria-live":"polite"},K={key:1,class:"p-yearpicker"},Y=["onClick","onKeydown"],$={key:0,class:"p-hidden-accessible","aria-live":"polite"},O={key:1,class:"p-timepicker"},L={class:"p-hour-picker"},A=["aria-label"],U=["aria-label"],R={class:"p-separator"},z={class:"p-minute-picker"},j=["aria-label","disabled"],q=["aria-label","disabled"],W={key:0,class:"p-separator"},Z={key:1,class:"p-second-picker"},_=["aria-label","disabled"],G=["aria-label","disabled"],J={key:2,class:"p-separator"},Q={key:3,class:"p-ampm-picker"},X=["aria-label","disabled"],ee=["aria-label","disabled"],te={key:2,class:"p-datepicker-buttonbar"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-calendar {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n max-width: 100%;\n}\n.p-calendar .p-inputtext {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-calendar-w-btn .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-calendar-w-btn .p-datepicker-trigger {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n/* Fluid */\n.p-fluid .p-calendar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-calendar .p-inputtext {\n width: 1%;\n}\n\n/* Datepicker */\n.p-calendar .p-datepicker {\n min-width: 100%;\n}\n.p-datepicker {\n width: auto;\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-datepicker-inline {\n display: inline-block;\n position: static;\n overflow-x: auto;\n}\n\n/* Header */\n.p-datepicker-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-datepicker-header .p-datepicker-title {\n margin: 0 auto;\n}\n.p-datepicker-prev,\n.p-datepicker-next {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Multiple Month DatePicker */\n.p-datepicker-multiple-month .p-datepicker-group-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n\n/* DatePicker Table */\n.p-datepicker table {\n width: 100%;\n border-collapse: collapse;\n}\n.p-datepicker td > span {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n margin: 0 auto;\n overflow: hidden;\n position: relative;\n}\n\n/* Month Picker */\n.p-monthpicker-month {\n width: 33.3%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Year Picker */\n.p-yearpicker-year {\n width: 50%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Button Bar */\n.p-datepicker-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n/* Time Picker */\n.p-timepicker {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-timepicker button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-timepicker > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n/* Touch UI */\n.p-datepicker-touch-ui,\n.p-calendar .p-datepicker-touch-ui {\n position: fixed;\n top: 50%;\n left: 50%;\n min-width: 80vw;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n"),u.render=function(e,t,n,i,a,l){const o=r.resolveComponent("CalendarButton"),s=r.resolveComponent("Portal"),c=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("span",{ref:"container",id:n.id,class:r.normalizeClass(l.containerClass)},[n.inline?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,ref:l.inputRef,id:n.inputId,type:"text",role:"combobox",class:["p-inputtext p-component",n.inputClass],style:n.inputStyle,placeholder:n.placeholder,autocomplete:"off","aria-autocomplete":"none","aria-haspopup":"dialog","aria-expanded":a.overlayVisible,"aria-controls":l.panelId,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,inputmode:"none",disabled:n.disabled,readonly:!n.manualInput||n.readonly,tabindex:0,onInput:t[0]||(t[0]=(...e)=>l.onInput&&l.onInput(...e)),onClick:t[1]||(t[1]=(...e)=>l.onInputClick&&l.onInputClick(...e)),onFocus:t[2]||(t[2]=(...e)=>l.onFocus&&l.onFocus(...e)),onBlur:t[3]||(t[3]=(...e)=>l.onBlur&&l.onBlur(...e)),onKeydown:t[4]||(t[4]=(...e)=>l.onKeyDown&&l.onKeyDown(...e))},n.inputProps),null,16,p)),n.showIcon?(r.openBlock(),r.createBlock(o,{key:1,icon:n.icon,class:"p-datepicker-trigger",disabled:n.disabled,onClick:l.onButtonClick,type:"button","aria-label":e.$primevue.config.locale.chooseDate,"aria-haspopup":"dialog","aria-expanded":a.overlayVisible,"aria-controls":l.panelId},null,8,["icon","disabled","onClick","aria-label","aria-expanded","aria-controls"])):r.createCommentVNode("",!0),r.createVNode(s,{appendTo:n.appendTo,disabled:n.inline},{default:r.withCtx((()=>[r.createVNode(r.Transition,{name:"p-connected-overlay",onEnter:t[68]||(t[68]=e=>l.onOverlayEnter(e)),onAfterEnter:l.onOverlayEnterComplete,onAfterLeave:l.onOverlayAfterLeave,onLeave:l.onOverlayLeave},{default:r.withCtx((()=>[n.inline||a.overlayVisible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:l.overlayRef,id:l.panelId,class:l.panelStyleClass,style:n.panelStyle,role:n.inline?null:"dialog","aria-modal":n.inline?null:"true","aria-label":e.$primevue.config.locale.chooseDate,onClick:t[65]||(t[65]=(...e)=>l.onOverlayClick&&l.onOverlayClick(...e)),onKeydown:t[66]||(t[66]=(...e)=>l.onOverlayKeyDown&&l.onOverlayKeyDown(...e)),onMouseup:t[67]||(t[67]=(...e)=>l.onOverlayMouseUp&&l.onOverlayMouseUp(...e))},n.panelProps),[n.timeOnly?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",y,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.months,((i,o)=>(r.openBlock(),r.createElementBlock("div",{key:i.month+i.year,class:"p-datepicker-group"},[r.createElementVNode("div",k,[r.renderSlot(e.$slots,"header"),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-datepicker-prev p-link",onClick:t[5]||(t[5]=(...e)=>l.onPrevButtonClick&&l.onPrevButtonClick(...e)),type:"button",onKeydown:t[6]||(t[6]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),disabled:n.disabled,"aria-label":"year"===a.currentView?e.$primevue.config.locale.prevDecade:"month"===a.currentView?e.$primevue.config.locale.prevYear:e.$primevue.config.locale.prevMonth},[r.createElementVNode("span",{class:r.normalizeClass(["p-datepicker-prev-icon",n.previousIcon])},null,2)],40,b)),[[r.vShow,!!n.showOtherMonths&&0===o],[c]]),r.createElementVNode("div",f,["date"===a.currentView?(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",onClick:t[7]||(t[7]=(...e)=>l.switchToMonthView&&l.switchToMonthView(...e)),onKeydown:t[8]||(t[8]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),class:"p-datepicker-month p-link",disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},r.toDisplayString(l.getMonthName(i.month)),41,g)):r.createCommentVNode("",!0),"year"!==a.currentView?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",onClick:t[9]||(t[9]=(...e)=>l.switchToYearView&&l.switchToYearView(...e)),onKeydown:t[10]||(t[10]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),class:"p-datepicker-year p-link",disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},r.toDisplayString(l.getYear(i)),41,v)):r.createCommentVNode("",!0),"year"===a.currentView?(r.openBlock(),r.createElementBlock("span",w,[r.renderSlot(e.$slots,"decade",{years:l.yearPickerValues},(()=>[r.createTextVNode(r.toDisplayString(l.yearPickerValues[0])+" - "+r.toDisplayString(l.yearPickerValues[l.yearPickerValues.length-1]),1)]))])):r.createCommentVNode("",!0)]),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-datepicker-next p-link",onClick:t[11]||(t[11]=(...e)=>l.onNextButtonClick&&l.onNextButtonClick(...e)),type:"button",onKeydown:t[12]||(t[12]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),disabled:n.disabled,"aria-label":"year"===a.currentView?e.$primevue.config.locale.nextDecade:"month"===a.currentView?e.$primevue.config.locale.nextYear:e.$primevue.config.locale.nextMonth},[r.createElementVNode("span",{class:r.normalizeClass(["p-datepicker-next-icon",n.nextIcon])},null,2)],40,D)),[[r.vShow,!!n.showOtherMonths&&(1===n.numberOfMonths||o===n.numberOfMonths-1)],[c]])]),"date"===a.currentView?(r.openBlock(),r.createElementBlock("div",S,[r.createElementVNode("table",M,[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[n.showWeek?(r.openBlock(),r.createElementBlock("th",x,[r.createElementVNode("span",null,r.toDisplayString(l.weekHeaderLabel),1)])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.weekDays,(e=>(r.openBlock(),r.createElementBlock("th",{key:e,scope:"col",abbr:e},[r.createElementVNode("span",null,r.toDisplayString(e),1)],8,E)))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.dates,((t,a)=>(r.openBlock(),r.createElementBlock("tr",{key:t[0].day+""+t[0].month},[n.showWeek?(r.openBlock(),r.createElementBlock("td",C,[r.createElementVNode("span",V,[i.weekNumbers[a]<10?(r.openBlock(),r.createElementBlock("span",T,"0")):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(i.weekNumbers[a]),1)])])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t,(t=>(r.openBlock(),r.createElementBlock("td",{key:t.day+""+t.month,"aria-label":t.day,class:r.normalizeClass({"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today})},[r.withDirectives((r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass({"p-highlight":l.isSelected(t),"p-disabled":!t.selectable}),onClick:e=>l.onDateSelect(e,t),draggable:"false",onKeydown:e=>l.onDateCellKeydown(e,t,o),"aria-selected":l.isSelected(t)},[r.renderSlot(e.$slots,"date",{date:t},(()=>[r.createTextVNode(r.toDisplayString(t.day),1)]))],42,H)),[[c]]),l.isSelected(t)?(r.openBlock(),r.createElementBlock("div",I,r.toDisplayString(t.day),1)):r.createCommentVNode("",!0)],10,B)))),128))])))),128))])])])):r.createCommentVNode("",!0)])))),128))]),"month"===a.currentView?(r.openBlock(),r.createElementBlock("div",N,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.monthPickerValues,((e,t)=>r.withDirectives((r.openBlock(),r.createElementBlock("span",{key:e,onClick:e=>l.onMonthSelect(e,t),onKeydown:e=>l.onMonthCellKeydown(e,t),class:r.normalizeClass(["p-monthpicker-month",{"p-highlight":l.isMonthSelected(t)}])},[r.createTextVNode(r.toDisplayString(e)+" ",1),l.isMonthSelected(t)?(r.openBlock(),r.createElementBlock("div",F,r.toDisplayString(e),1)):r.createCommentVNode("",!0)],42,P)),[[c]]))),128))])):r.createCommentVNode("",!0),"year"===a.currentView?(r.openBlock(),r.createElementBlock("div",K,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.yearPickerValues,(e=>r.withDirectives((r.openBlock(),r.createElementBlock("span",{key:e,onClick:t=>l.onYearSelect(t,e),onKeydown:t=>l.onYearCellKeydown(t,e),class:r.normalizeClass(["p-yearpicker-year",{"p-highlight":l.isYearSelected(e)}])},[r.createTextVNode(r.toDisplayString(e)+" ",1),l.isYearSelected(e)?(r.openBlock(),r.createElementBlock("div",$,r.toDisplayString(e),1)):r.createCommentVNode("",!0)],42,Y)),[[c]]))),128))])):r.createCommentVNode("",!0)],64)),(n.showTime||n.timeOnly)&&"date"===a.currentView?(r.openBlock(),r.createElementBlock("div",O,[r.createElementVNode("div",L,[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.nextHour,onMousedown:t[13]||(t[13]=e=>l.onTimePickerElementMouseDown(e,0,1)),onMouseup:t[14]||(t[14]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[15]||(t[15]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[17]||(t[17]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,0,1)),["enter"])),t[18]||(t[18]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,0,1)),["space"]))],onMouseleave:t[16]||(t[16]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[19]||(t[19]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[20]||(t[20]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.incrementIcon)},null,2)],40,A)),[[c]]),r.createElementVNode("span",null,r.toDisplayString(l.formattedCurrentHour),1),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.prevHour,onMousedown:t[21]||(t[21]=e=>l.onTimePickerElementMouseDown(e,0,-1)),onMouseup:t[22]||(t[22]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[23]||(t[23]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[25]||(t[25]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,0,-1)),["enter"])),t[26]||(t[26]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,0,-1)),["space"]))],onMouseleave:t[24]||(t[24]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[27]||(t[27]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[28]||(t[28]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.decrementIcon)},null,2)],40,U)),[[c]])]),r.createElementVNode("div",R,[r.createElementVNode("span",null,r.toDisplayString(n.timeSeparator),1)]),r.createElementVNode("div",z,[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.nextMinute,onMousedown:t[29]||(t[29]=e=>l.onTimePickerElementMouseDown(e,1,1)),onMouseup:t[30]||(t[30]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[31]||(t[31]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[33]||(t[33]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,1,1)),["enter"])),t[34]||(t[34]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,1,1)),["space"]))],disabled:n.disabled,onMouseleave:t[32]||(t[32]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[35]||(t[35]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[36]||(t[36]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.incrementIcon)},null,2)],40,j)),[[c]]),r.createElementVNode("span",null,r.toDisplayString(l.formattedCurrentMinute),1),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.prevMinute,onMousedown:t[37]||(t[37]=e=>l.onTimePickerElementMouseDown(e,1,-1)),onMouseup:t[38]||(t[38]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[39]||(t[39]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[41]||(t[41]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,1,-1)),["enter"])),t[42]||(t[42]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,1,-1)),["space"]))],disabled:n.disabled,onMouseleave:t[40]||(t[40]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[43]||(t[43]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[44]||(t[44]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.decrementIcon)},null,2)],40,q)),[[c]])]),n.showSeconds?(r.openBlock(),r.createElementBlock("div",W,[r.createElementVNode("span",null,r.toDisplayString(n.timeSeparator),1)])):r.createCommentVNode("",!0),n.showSeconds?(r.openBlock(),r.createElementBlock("div",Z,[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.nextSecond,onMousedown:t[45]||(t[45]=e=>l.onTimePickerElementMouseDown(e,2,1)),onMouseup:t[46]||(t[46]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[47]||(t[47]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[49]||(t[49]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,2,1)),["enter"])),t[50]||(t[50]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,2,1)),["space"]))],disabled:n.disabled,onMouseleave:t[48]||(t[48]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[51]||(t[51]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[52]||(t[52]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.incrementIcon)},null,2)],40,_)),[[c]]),r.createElementVNode("span",null,r.toDisplayString(l.formattedCurrentSecond),1),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.prevSecond,onMousedown:t[53]||(t[53]=e=>l.onTimePickerElementMouseDown(e,2,-1)),onMouseup:t[54]||(t[54]=e=>l.onTimePickerElementMouseUp(e)),onKeydown:[t[55]||(t[55]=(...e)=>l.onContainerButtonKeydown&&l.onContainerButtonKeydown(...e)),t[57]||(t[57]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,2,-1)),["enter"])),t[58]||(t[58]=r.withKeys((e=>l.onTimePickerElementMouseDown(e,2,-1)),["space"]))],disabled:n.disabled,onMouseleave:t[56]||(t[56]=e=>l.onTimePickerElementMouseLeave()),onKeyup:[t[59]||(t[59]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["enter"])),t[60]||(t[60]=r.withKeys((e=>l.onTimePickerElementMouseUp(e)),["space"]))],type:"button"},[r.createElementVNode("span",{class:r.normalizeClass(n.decrementIcon)},null,2)],40,G)),[[c]])])):r.createCommentVNode("",!0),"12"==n.hourFormat?(r.openBlock(),r.createElementBlock("div",J,[r.createElementVNode("span",null,r.toDisplayString(n.timeSeparator),1)])):r.createCommentVNode("",!0),"12"==n.hourFormat?(r.openBlock(),r.createElementBlock("div",Q,[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.am,onClick:t[61]||(t[61]=e=>l.toggleAMPM(e)),type:"button",disabled:n.disabled},[r.createElementVNode("span",{class:r.normalizeClass(n.incrementIcon)},null,2)],8,X)),[[c]]),r.createElementVNode("span",null,r.toDisplayString(a.pm?e.$primevue.config.locale.pm:e.$primevue.config.locale.am),1),r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:"p-link","aria-label":e.$primevue.config.locale.pm,onClick:t[62]||(t[62]=e=>l.toggleAMPM(e)),type:"button",disabled:n.disabled},[r.createElementVNode("span",{class:r.normalizeClass(n.decrementIcon)},null,2)],8,ee)),[[c]])])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),n.showButtonBar?(r.openBlock(),r.createElementBlock("div",te,[r.createVNode(o,{type:"button",label:l.todayLabel,onClick:t[63]||(t[63]=e=>l.onTodayButtonClick(e)),class:"p-button-text",onKeydown:l.onContainerButtonKeydown},null,8,["label","onKeydown"]),r.createVNode(o,{type:"button",label:l.clearLabel,onClick:t[64]||(t[64]=e=>l.onClearButtonClick(e)),class:"p-button-text",onKeydown:l.onContainerButtonKeydown},null,8,["label","onKeydown"])])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"footer")],16,m)):r.createCommentVNode("",!0)])),_:3},8,["onAfterEnter","onAfterLeave","onLeave"])])),_:3},8,["appendTo","disabled"])],10,d)},module.exports=u;
|
package/calendar/calendar.esm.js
CHANGED
|
@@ -2723,6 +2723,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2723
2723
|
class: ['p-inputtext p-component', $props.inputClass],
|
|
2724
2724
|
style: $props.inputStyle,
|
|
2725
2725
|
placeholder: $props.placeholder,
|
|
2726
|
+
autocomplete: "off",
|
|
2726
2727
|
"aria-autocomplete": "none",
|
|
2727
2728
|
"aria-haspopup": "dialog",
|
|
2728
2729
|
"aria-expanded": $data.overlayVisible,
|