primevue 3.46.0 → 3.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/api.cjs.js +6 -6
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +6 -6
- package/api/api.esm.min.js +1 -1
- package/api/api.js +6 -6
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +6 -1
- package/autocomplete/AutoComplete.vue +24 -15
- package/autocomplete/BaseAutoComplete.vue +5 -1
- package/autocomplete/autocomplete.cjs.js +29 -18
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +29 -18
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +29 -18
- package/autocomplete/autocomplete.min.js +1 -1
- package/basecomponent/basecomponent.cjs.js +1 -3
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +1 -3
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +1 -3
- package/basecomponent/basecomponent.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.cjs.js +1 -3
- package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.esm.js +1 -3
- package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.js +1 -3
- package/basecomponent/style/basecomponentstyle.min.js +1 -1
- package/basedirective/basedirective.cjs.js +11 -2
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +11 -2
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +11 -2
- package/basedirective/basedirective.min.js +1 -1
- package/baseicon/BaseIcon.vue +6 -1
- package/baseicon/baseicon.cjs.js +5 -0
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +6 -1
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +5 -0
- package/baseicon/baseicon.min.js +1 -1
- package/calendar/Calendar.d.ts +53 -2
- package/calendar/Calendar.vue +12 -0
- package/calendar/calendar.cjs.js +12 -0
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +12 -0
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +12 -0
- package/calendar/calendar.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +5 -1
- package/cascadeselect/CascadeSelect.d.ts +6 -1
- package/cascadeselect/CascadeSelect.vue +56 -35
- package/cascadeselect/CascadeSelectSub.vue +9 -2
- package/cascadeselect/cascadeselect.cjs.js +99 -52
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +99 -52
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +99 -52
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/BaseCheckbox.vue +0 -4
- package/checkbox/Checkbox.d.ts +17 -34
- package/checkbox/Checkbox.vue +24 -35
- package/checkbox/checkbox.cjs.js +21 -49
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +21 -49
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +21 -49
- package/checkbox/checkbox.min.js +1 -1
- package/checkbox/style/checkboxstyle.cjs.js +5 -11
- package/checkbox/style/checkboxstyle.cjs.min.js +1 -1
- package/checkbox/style/checkboxstyle.esm.js +5 -11
- package/checkbox/style/checkboxstyle.esm.min.js +1 -1
- package/checkbox/style/checkboxstyle.js +5 -11
- package/checkbox/style/checkboxstyle.min.js +1 -1
- package/chips/Chips.vue +2 -1
- package/chips/chips.cjs.js +2 -1
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +2 -1
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +2 -1
- package/chips/chips.min.js +1 -1
- package/column/Column.d.ts +11 -44
- package/confirmpopup/ConfirmPopup.vue +1 -1
- package/confirmpopup/confirmpopup.cjs.js +1 -1
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +1 -1
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +1 -1
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.vue +8 -8
- package/contextmenu/contextmenu.cjs.js +7 -6
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +7 -6
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +7 -6
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +918 -628
- package/core/core.min.js +63 -55
- package/datatable/BaseDataTable.vue +4 -0
- package/datatable/BodyCell.vue +11 -1
- package/datatable/BodyRow.vue +5 -2
- package/datatable/ColumnFilter.vue +5 -2
- package/datatable/DataTable.d.ts +5 -0
- package/datatable/DataTable.vue +2 -2
- package/datatable/HeaderCell.vue +2 -1
- package/datatable/HeaderCheckbox.vue +14 -42
- package/datatable/RowCheckbox.vue +10 -52
- package/datatable/RowRadioButton.vue +11 -32
- package/datatable/TableHeader.vue +3 -1
- package/datatable/datatable.cjs.js +110 -193
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +109 -194
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +110 -195
- package/datatable/datatable.min.js +1 -1
- package/datatable/style/datatablestyle.cjs.js +23 -72
- package/datatable/style/datatablestyle.cjs.min.js +1 -1
- package/datatable/style/datatablestyle.esm.js +23 -72
- package/datatable/style/datatablestyle.esm.min.js +1 -1
- package/datatable/style/datatablestyle.js +23 -72
- package/datatable/style/datatablestyle.min.js +1 -1
- package/dialog/style/dialogstyle.cjs.js +1 -1
- package/dialog/style/dialogstyle.cjs.min.js +1 -1
- package/dialog/style/dialogstyle.esm.js +1 -1
- package/dialog/style/dialogstyle.esm.min.js +1 -1
- package/dialog/style/dialogstyle.js +1 -1
- package/dialog/style/dialogstyle.min.js +1 -1
- package/dropdown/BaseDropdown.vue +17 -1
- package/dropdown/Dropdown.d.ts +37 -1
- package/dropdown/Dropdown.vue +68 -40
- package/dropdown/dropdown.cjs.js +95 -45
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +93 -45
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +95 -47
- package/dropdown/dropdown.min.js +1 -1
- package/dropdown/style/dropdownstyle.cjs.js +7 -2
- package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
- package/dropdown/style/dropdownstyle.esm.js +7 -2
- package/dropdown/style/dropdownstyle.esm.min.js +1 -1
- package/dropdown/style/dropdownstyle.js +7 -2
- package/dropdown/style/dropdownstyle.min.js +1 -1
- package/focustrap/focustrap.cjs.js +15 -2
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +15 -2
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +15 -2
- package/focustrap/focustrap.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +3 -9
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +3 -9
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +5 -10
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowdown/index.vue +1 -7
- package/icons/arrowup/index.cjs.js +3 -9
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +3 -9
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +5 -10
- package/icons/arrowup/index.min.js +1 -1
- package/icons/arrowup/index.vue +1 -7
- package/icons/ban/index.cjs.js +3 -9
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +3 -9
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +5 -10
- package/icons/ban/index.min.js +1 -1
- package/icons/ban/index.vue +1 -7
- package/icons/blank/index.cjs.js +34 -0
- package/icons/blank/index.cjs.min.js +1 -0
- package/icons/blank/index.d.ts +12 -0
- package/icons/blank/index.esm.js +28 -0
- package/icons/blank/index.esm.min.js +1 -0
- package/icons/blank/index.js +36 -0
- package/icons/blank/index.min.js +1 -0
- package/icons/blank/index.vue +13 -0
- package/icons/blank/package.json +9 -0
- package/icons/exclamationtriangle/index.cjs.js +3 -9
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +3 -9
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +5 -10
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/exclamationtriangle/index.vue +1 -7
- package/icons/eyeslash/index.cjs.js +3 -9
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +3 -9
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +5 -10
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/eyeslash/index.vue +1 -7
- package/icons/filter/index.cjs.js +3 -9
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +3 -9
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +5 -10
- package/icons/filter/index.min.js +1 -1
- package/icons/filter/index.vue +1 -7
- package/icons/filterslash/index.cjs.js +3 -9
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +3 -9
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +5 -10
- package/icons/filterslash/index.min.js +1 -1
- package/icons/filterslash/index.vue +1 -7
- package/icons/infocircle/index.cjs.js +3 -9
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +3 -9
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +5 -10
- package/icons/infocircle/index.min.js +1 -1
- package/icons/infocircle/index.vue +1 -7
- package/icons/pencil/index.cjs.js +3 -9
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +3 -9
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +5 -10
- package/icons/pencil/index.min.js +1 -1
- package/icons/pencil/index.vue +1 -7
- package/icons/plus/index.cjs.js +3 -9
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +3 -9
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +5 -10
- package/icons/plus/index.min.js +1 -1
- package/icons/plus/index.vue +1 -7
- package/icons/refresh/index.cjs.js +3 -9
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +3 -9
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +5 -10
- package/icons/refresh/index.min.js +1 -1
- package/icons/refresh/index.vue +1 -7
- package/icons/search/index.cjs.js +3 -9
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +3 -9
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +5 -10
- package/icons/search/index.min.js +1 -1
- package/icons/search/index.vue +1 -7
- package/icons/searchminus/index.cjs.js +3 -9
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +3 -9
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +5 -10
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchminus/index.vue +1 -7
- package/icons/searchplus/index.cjs.js +3 -9
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +3 -9
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +5 -10
- package/icons/searchplus/index.min.js +1 -1
- package/icons/searchplus/index.vue +1 -7
- package/icons/sortalt/index.cjs.js +3 -9
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +3 -9
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +5 -10
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortalt/index.vue +1 -7
- package/icons/sortamountdown/index.cjs.js +3 -9
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +3 -9
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +5 -10
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +1 -7
- package/icons/sortamountupalt/index.cjs.js +3 -9
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +3 -9
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +5 -10
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +1 -7
- package/icons/spinner/index.cjs.js +3 -9
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +3 -9
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +5 -10
- package/icons/spinner/index.min.js +1 -1
- package/icons/spinner/index.vue +1 -7
- package/icons/star/index.cjs.js +3 -9
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +3 -9
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +5 -10
- package/icons/star/index.min.js +1 -1
- package/icons/star/index.vue +1 -7
- package/icons/starfill/index.cjs.js +3 -9
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +3 -9
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +5 -10
- package/icons/starfill/index.min.js +1 -1
- package/icons/starfill/index.vue +1 -7
- package/icons/thlarge/index.cjs.js +3 -9
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +3 -9
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +5 -10
- package/icons/thlarge/index.min.js +1 -1
- package/icons/thlarge/index.vue +1 -7
- package/icons/timescircle/index.cjs.js +3 -9
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +3 -9
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +5 -10
- package/icons/timescircle/index.min.js +1 -1
- package/icons/timescircle/index.vue +1 -7
- package/icons/trash/index.cjs.js +3 -9
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +3 -9
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +5 -10
- package/icons/trash/index.min.js +1 -1
- package/icons/trash/index.vue +1 -7
- package/icons/undo/index.cjs.js +3 -9
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +3 -9
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +5 -10
- package/icons/undo/index.min.js +1 -1
- package/icons/undo/index.vue +1 -7
- package/icons/upload/index.cjs.js +3 -9
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +3 -9
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +5 -10
- package/icons/upload/index.min.js +1 -1
- package/icons/upload/index.vue +1 -7
- package/icons/windowmaximize/index.cjs.js +3 -9
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +3 -9
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +5 -10
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowmaximize/index.vue +1 -7
- package/icons/windowminimize/index.cjs.js +3 -9
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +3 -9
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +5 -10
- package/icons/windowminimize/index.min.js +1 -1
- package/icons/windowminimize/index.vue +1 -7
- package/inputnumber/InputNumber.vue +18 -9
- package/inputnumber/inputnumber.cjs.js +14 -6
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +15 -7
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +14 -6
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/BaseInputSwitch.vue +8 -4
- package/inputswitch/InputSwitch.d.ts +41 -20
- package/inputswitch/InputSwitch.vue +31 -33
- package/inputswitch/inputswitch.cjs.js +38 -42
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +38 -42
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +38 -42
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputswitch/style/inputswitchstyle.cjs.js +4 -4
- package/inputswitch/style/inputswitchstyle.cjs.min.js +1 -1
- package/inputswitch/style/inputswitchstyle.esm.js +4 -4
- package/inputswitch/style/inputswitchstyle.esm.min.js +1 -1
- package/inputswitch/style/inputswitchstyle.js +4 -4
- package/inputswitch/style/inputswitchstyle.min.js +1 -1
- package/listbox/BaseListbox.vue +4 -0
- package/listbox/Listbox.d.ts +6 -1
- package/listbox/Listbox.vue +47 -26
- package/listbox/listbox.cjs.js +89 -50
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +89 -50
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +89 -50
- package/listbox/listbox.min.js +1 -1
- package/listbox/style/listboxstyle.cjs.js +2 -3
- package/listbox/style/listboxstyle.cjs.min.js +1 -1
- package/listbox/style/listboxstyle.esm.js +2 -3
- package/listbox/style/listboxstyle.esm.min.js +1 -1
- package/listbox/style/listboxstyle.js +2 -3
- package/listbox/style/listboxstyle.min.js +1 -1
- package/megamenu/MegaMenu.vue +1 -1
- package/megamenu/megamenu.cjs.js +2 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +2 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +2 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menubar/Menubar.vue +1 -1
- package/menubar/menubar.cjs.js +2 -1
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +2 -1
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +2 -1
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +4 -0
- package/message/Message.vue +2 -1
- package/message/message.cjs.js +2 -1
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +2 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +2 -1
- package/message/message.min.js +1 -1
- package/metergroup/BaseMeterGroup.vue +41 -0
- package/metergroup/MeterGroup.d.ts +302 -0
- package/metergroup/MeterGroup.vue +73 -0
- package/metergroup/MeterGroupLabel.vue +36 -0
- package/metergroup/metergroup.cjs.js +218 -0
- package/metergroup/metergroup.cjs.min.js +1 -0
- package/metergroup/metergroup.esm.js +211 -0
- package/metergroup/metergroup.esm.min.js +1 -0
- package/metergroup/metergroup.js +218 -0
- package/metergroup/metergroup.min.js +1 -0
- package/metergroup/package.json +9 -0
- package/metergroup/style/MeterGroupStyle.d.ts +3 -0
- package/metergroup/style/metergroupstyle.cjs.js +40 -0
- package/metergroup/style/metergroupstyle.cjs.min.js +1 -0
- package/metergroup/style/metergroupstyle.esm.js +34 -0
- package/metergroup/style/metergroupstyle.esm.min.js +1 -0
- package/metergroup/style/metergroupstyle.js +43 -0
- package/metergroup/style/metergroupstyle.min.js +1 -0
- package/metergroup/style/package.json +6 -0
- package/multiselect/BaseMultiSelect.vue +9 -1
- package/multiselect/MultiSelect.d.ts +13 -19
- package/multiselect/MultiSelect.vue +108 -76
- package/multiselect/multiselect.cjs.js +173 -133
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +173 -134
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +174 -135
- package/multiselect/multiselect.min.js +1 -1
- package/multiselect/style/multiselectstyle.cjs.js +7 -30
- package/multiselect/style/multiselectstyle.cjs.min.js +1 -1
- package/multiselect/style/multiselectstyle.esm.js +7 -30
- package/multiselect/style/multiselectstyle.esm.min.js +1 -1
- package/multiselect/style/multiselectstyle.js +7 -30
- package/multiselect/style/multiselectstyle.min.js +1 -1
- package/orderlist/BaseOrderList.vue +8 -0
- package/orderlist/OrderList.d.ts +10 -0
- package/orderlist/OrderList.vue +73 -54
- package/orderlist/orderlist.cjs.js +82 -58
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +82 -58
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +82 -58
- package/orderlist/orderlist.min.js +1 -1
- package/orderlist/style/orderliststyle.cjs.js +1 -1
- package/orderlist/style/orderliststyle.cjs.min.js +1 -1
- package/orderlist/style/orderliststyle.esm.js +1 -1
- package/orderlist/style/orderliststyle.esm.min.js +1 -1
- package/orderlist/style/orderliststyle.js +1 -1
- package/orderlist/style/orderliststyle.min.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +4 -0
- package/overlaypanel/OverlayPanel.vue +1 -1
- package/overlaypanel/overlaypanel.cjs.js +1 -1
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +1 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +1 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/panelmenu/PanelMenuList.vue +1 -1
- package/panelmenu/panelmenu.cjs.js +2 -1
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +2 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +2 -1
- package/panelmenu/panelmenu.min.js +1 -1
- package/picklist/BasePickList.vue +8 -0
- package/picklist/PickList.d.ts +10 -0
- package/picklist/PickList.vue +73 -38
- package/picklist/picklist.cjs.js +84 -47
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +84 -47
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +84 -47
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.vue +1 -1
- package/progressbar/progressbar.cjs.js +3 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +3 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +3 -1
- package/progressbar/progressbar.min.js +1 -1
- package/radiobutton/BaseRadioButton.vue +9 -4
- package/radiobutton/RadioButton.d.ts +48 -22
- package/radiobutton/RadioButton.vue +36 -23
- package/radiobutton/radiobutton.cjs.js +42 -50
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +42 -50
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +42 -50
- package/radiobutton/radiobutton.min.js +1 -1
- package/radiobutton/style/radiobuttonstyle.cjs.js +5 -11
- package/radiobutton/style/radiobuttonstyle.cjs.min.js +1 -1
- package/radiobutton/style/radiobuttonstyle.esm.js +5 -11
- package/radiobutton/style/radiobuttonstyle.esm.min.js +1 -1
- package/radiobutton/style/radiobuttonstyle.js +5 -11
- package/radiobutton/style/radiobuttonstyle.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +434 -353
- package/resources/themes/arya-green/theme.css +434 -353
- package/resources/themes/arya-orange/theme.css +434 -353
- package/resources/themes/arya-purple/theme.css +434 -353
- package/resources/themes/aura-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-amber/theme.css +7012 -0
- package/resources/themes/aura-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-blue/theme.css +7012 -0
- package/resources/themes/aura-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-cyan/theme.css +7012 -0
- package/resources/themes/aura-dark-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-green/theme.css +7012 -0
- package/resources/themes/aura-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-indigo/theme.css +7012 -0
- package/resources/themes/aura-dark-lime/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-lime/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-lime/theme.css +7012 -0
- package/resources/themes/aura-dark-noir/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-noir/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-noir/theme.css +7012 -0
- package/resources/themes/aura-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-pink/theme.css +7012 -0
- package/resources/themes/aura-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-purple/theme.css +7012 -0
- package/resources/themes/aura-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-teal/theme.css +7012 -0
- package/resources/themes/aura-light-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-amber/theme.css +7014 -0
- package/resources/themes/aura-light-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-blue/theme.css +7014 -0
- package/resources/themes/aura-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-cyan/theme.css +7014 -0
- package/resources/themes/aura-light-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-green/theme.css +7014 -0
- package/resources/themes/aura-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-indigo/theme.css +7014 -0
- package/resources/themes/aura-light-lime/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-lime/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-lime/theme.css +7014 -0
- package/resources/themes/aura-light-noir/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-noir/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-noir/theme.css +7022 -0
- package/resources/themes/aura-light-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-pink/theme.css +7014 -0
- package/resources/themes/aura-light-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-purple/theme.css +7014 -0
- package/resources/themes/aura-light-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-teal/theme.css +7014 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +531 -401
- package/resources/themes/bootstrap4-dark-purple/theme.css +531 -401
- package/resources/themes/bootstrap4-light-blue/theme.css +531 -401
- package/resources/themes/bootstrap4-light-purple/theme.css +531 -401
- package/resources/themes/fluent-light/theme.css +433 -352
- package/resources/themes/lara-dark-amber/theme.css +532 -402
- package/resources/themes/lara-dark-blue/theme.css +532 -402
- package/resources/themes/lara-dark-cyan/theme.css +532 -402
- package/resources/themes/lara-dark-green/theme.css +532 -402
- package/resources/themes/lara-dark-indigo/theme.css +532 -402
- package/resources/themes/lara-dark-pink/theme.css +532 -402
- package/resources/themes/lara-dark-purple/theme.css +532 -402
- package/resources/themes/lara-dark-teal/theme.css +532 -402
- package/resources/themes/lara-light-amber/theme.css +528 -398
- package/resources/themes/lara-light-blue/theme.css +528 -398
- package/resources/themes/lara-light-cyan/theme.css +528 -398
- package/resources/themes/lara-light-green/theme.css +528 -398
- package/resources/themes/lara-light-indigo/theme.css +528 -398
- package/resources/themes/lara-light-pink/theme.css +528 -398
- package/resources/themes/lara-light-purple/theme.css +528 -398
- package/resources/themes/lara-light-teal/theme.css +528 -398
- package/resources/themes/luna-amber/theme.css +434 -353
- package/resources/themes/luna-blue/theme.css +434 -353
- package/resources/themes/luna-green/theme.css +434 -353
- package/resources/themes/luna-pink/theme.css +434 -353
- package/resources/themes/md-dark-deeppurple/theme.css +694 -429
- package/resources/themes/md-dark-indigo/theme.css +694 -429
- package/resources/themes/md-light-deeppurple/theme.css +698 -433
- package/resources/themes/md-light-indigo/theme.css +698 -433
- package/resources/themes/mdc-dark-deeppurple/theme.css +694 -429
- package/resources/themes/mdc-dark-indigo/theme.css +694 -429
- package/resources/themes/mdc-light-deeppurple/theme.css +698 -433
- package/resources/themes/mdc-light-indigo/theme.css +698 -433
- package/resources/themes/mira/theme.css +484 -403
- package/resources/themes/nano/theme.css +434 -353
- package/resources/themes/nova/theme.css +434 -353
- package/resources/themes/nova-accent/theme.css +434 -353
- package/resources/themes/nova-alt/theme.css +434 -353
- package/resources/themes/nova-vue/theme.css +434 -353
- package/resources/themes/rhea/theme.css +434 -353
- package/resources/themes/saga-blue/theme.css +434 -353
- package/resources/themes/saga-green/theme.css +434 -353
- package/resources/themes/saga-orange/theme.css +434 -353
- package/resources/themes/saga-purple/theme.css +434 -353
- package/resources/themes/soho-dark/theme.css +532 -402
- package/resources/themes/soho-light/theme.css +532 -402
- package/resources/themes/tailwind-light/theme.css +434 -353
- package/resources/themes/vela-blue/theme.css +434 -353
- package/resources/themes/vela-green/theme.css +434 -353
- package/resources/themes/vela-orange/theme.css +434 -353
- package/resources/themes/vela-purple/theme.css +434 -353
- package/resources/themes/viva-dark/theme.css +533 -403
- package/resources/themes/viva-light/theme.css +533 -403
- package/slider/Slider.vue +0 -1
- package/slider/slider.cjs.js +0 -1
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +0 -1
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +0 -1
- package/slider/slider.min.js +1 -1
- package/speeddial/SpeedDial.vue +2 -2
- package/speeddial/speeddial.cjs.js +2 -2
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +2 -2
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +2 -2
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.cjs.js +8 -5
- package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.esm.js +8 -5
- package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.js +8 -5
- package/splitbutton/style/splitbuttonstyle.min.js +1 -1
- package/tabview/TabView.vue +2 -3
- package/tabview/tabview.cjs.js +3 -3
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +3 -3
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +3 -3
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.vue +1 -1
- package/tag/tag.cjs.js +4 -2
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +4 -2
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +4 -2
- package/tag/tag.min.js +1 -1
- package/textarea/Textarea.d.ts +2 -2
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/tieredmenu.cjs.js +2 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +2 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +2 -1
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/togglebutton/BaseToggleButton.vue +4 -4
- package/togglebutton/ToggleButton.d.ts +17 -24
- package/togglebutton/ToggleButton.vue +41 -67
- package/togglebutton/style/togglebuttonstyle.cjs.js +15 -8
- package/togglebutton/style/togglebuttonstyle.cjs.min.js +1 -1
- package/togglebutton/style/togglebuttonstyle.esm.js +15 -8
- package/togglebutton/style/togglebuttonstyle.esm.min.js +1 -1
- package/togglebutton/style/togglebuttonstyle.js +15 -8
- package/togglebutton/style/togglebuttonstyle.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +45 -80
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +46 -81
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +46 -82
- package/togglebutton/togglebutton.min.js +1 -1
- package/tree/BaseTree.vue +4 -0
- package/tree/Tree.d.ts +6 -9
- package/tree/Tree.vue +1 -1
- package/tree/TreeNode.vue +14 -11
- package/tree/style/treestyle.cjs.js +3 -6
- package/tree/style/treestyle.cjs.min.js +1 -1
- package/tree/style/treestyle.esm.js +3 -6
- package/tree/style/treestyle.esm.min.js +1 -1
- package/tree/style/treestyle.js +3 -6
- package/tree/style/treestyle.min.js +1 -1
- package/tree/tree.cjs.js +34 -21
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +34 -22
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +35 -23
- package/tree/tree.min.js +1 -1
- package/treetable/BodyCell.vue +26 -24
- package/treetable/TreeTable.vue +3 -1
- package/treetable/TreeTableRow.vue +2 -0
- package/treetable/style/treetablestyle.cjs.js +4 -13
- package/treetable/style/treetablestyle.cjs.min.js +1 -1
- package/treetable/style/treetablestyle.esm.js +4 -13
- package/treetable/style/treetablestyle.esm.min.js +1 -1
- package/treetable/style/treetablestyle.js +4 -13
- package/treetable/style/treetablestyle.min.js +1 -1
- package/treetable/treetable.cjs.js +39 -44
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +39 -45
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +40 -46
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/BaseTriStateCheckbox.vue +17 -9
- package/tristatecheckbox/TriStateCheckbox.d.ts +34 -23
- package/tristatecheckbox/TriStateCheckbox.vue +49 -61
- package/tristatecheckbox/style/tristatecheckboxstyle.cjs.js +7 -13
- package/tristatecheckbox/style/tristatecheckboxstyle.cjs.min.js +1 -1
- package/tristatecheckbox/style/tristatecheckboxstyle.esm.js +7 -13
- package/tristatecheckbox/style/tristatecheckboxstyle.esm.min.js +1 -1
- package/tristatecheckbox/style/tristatecheckboxstyle.js +7 -13
- package/tristatecheckbox/style/tristatecheckboxstyle.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +69 -87
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +70 -88
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +69 -87
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +14 -6
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +14 -6
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +14 -6
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +24 -0
- package/vetur-tags.json +6 -0
- package/virtualscroller/BaseVirtualScroller.vue +1 -1
- package/virtualscroller/VirtualScroller.vue +58 -50
- package/virtualscroller/virtualscroller.cjs.js +90 -77
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +90 -77
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +90 -77
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +71 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.inputnumber=function(e,t,n,i,r,s,a,u){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),c=l(t),h=l(n),p=l(i);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){var i;return(t="symbol"==d(i=y(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){if(Array.isArray(e))return I(e)}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var B={name:"InputNumber",extends:{name:"BaseInputNumber",extends:l(s).default,props:{modelValue:{type:Number,default:null},format:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!1},buttonLayout:{type:String,default:"stacked"},incrementButtonClass:{type:String,default:null},decrementButtonClass:{type:String,default:null},incrementButtonIcon:{type:String,default:void 0},decrementButtonIcon:{type:String,default:void 0},locale:{type:String,default:void 0},localeMatcher:{type:String,default:void 0},mode:{type:String,default:"decimal"},prefix:{type:String,default:null},suffix:{type:String,default:null},currency:{type:String,default:void 0},currencyDisplay:{type:String,default:void 0},useGrouping:{type:Boolean,default:!0},minFractionDigits:{type:Number,default:void 0},maxFractionDigits:{type:Number,default:void 0},roundingMode:{type:String,default:"halfExpand",validator:function(e){return["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"].includes(e)}},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},allowEmpty:{type:Boolean,default:!0},highlightOnFocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},incrementButtonProps:{type:null,default:null},decrementButtonProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:l(a).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","input","focus","blur"],numberFormat:null,_numeral:null,_decimal:null,_group:null,_minusSign:null,_currency:null,_suffix:null,_prefix:null,_index:null,groupChar:"",isSpecialChar:null,prefixChar:null,suffixChar:null,timer:null,data:function(){return{d_modelValue:this.modelValue,focused:!1}},watch:{modelValue:function(e){this.d_modelValue=e},locale:function(e,t){this.updateConstructParser(e,t)},localeMatcher:function(e,t){this.updateConstructParser(e,t)},mode:function(e,t){this.updateConstructParser(e,t)},currency:function(e,t){this.updateConstructParser(e,t)},currencyDisplay:function(e,t){this.updateConstructParser(e,t)},useGrouping:function(e,t){this.updateConstructParser(e,t)},minFractionDigits:function(e,t){this.updateConstructParser(e,t)},maxFractionDigits:function(e,t){this.updateConstructParser(e,t)},suffix:function(e,t){this.updateConstructParser(e,t)},prefix:function(e,t){this.updateConstructParser(e,t)}},created:function(){this.constructParser()},methods:{getOptions:function(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits,roundingMode:this.roundingMode}},constructParser:function(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());var e,t=(e=new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210),C(e)||b(e)||v(e)||x()).reverse(),n=new Map(t.map((function(e,t){return[e,t]})));this._numeral=new RegExp("[".concat(t.join(""),"]"),"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=function(e){return n.get(e)}},updateConstructParser:function(e,t){e!==t&&this.constructParser()},escapeRegExp:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},getDecimalExpression:function(){var e=new Intl.NumberFormat(this.locale,m(m({},this.getOptions()),{},{useGrouping:!1}));return new RegExp("[".concat(e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,""),"]"),"g")},getGroupingExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp("[".concat(this.groupChar,"]"),"g")},getMinusSignExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp("[".concat(e.format(-1).trim().replace(this._numeral,""),"]"),"g")},getCurrencyExpression:function(){if(this.currency){var e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});return new RegExp("[".concat(e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,""),"]"),"g")}return new RegExp("[]","g")},getPrefixExpression:function(){if(this.prefix)this.prefixChar=this.prefix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp("".concat(this.escapeRegExp(this.prefixChar||"")),"g")},getSuffixExpression:function(){if(this.suffix)this.suffixChar=this.suffix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});this.suffixChar=e.format(1).split("1")[1]}return new RegExp("".concat(this.escapeRegExp(this.suffixChar||"")),"g")},formatValue:function(e){if(null!=e){if("-"===e)return e;if(this.format){var t=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(t=this.prefix+t),this.suffix&&(t+=this.suffix),t}return e.toString()}return""},parseValue:function(e){var t=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(t){if("-"===t)return t;var n=+t;return isNaN(n)?null:n}return null},repeat:function(e,t,n){var i=this;if(!this.readonly){var r=t||500;this.clearTimer(),this.timer=setTimeout((function(){i.repeat(e,40,n)}),r),this.spin(e,n)}},spin:function(e,t){if(this.$refs.input){var n=this.step*t,i=this.parseValue(this.$refs.input.$el.value)||0,r=this.validateValue(i+n);this.updateInput(r,null,"spin"),this.updateModel(e,r),this.handleOnInput(e,i,r)}},onUpButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,1),e.preventDefault())},onUpButtonMouseUp:function(){this.disabled||this.clearTimer()},onUpButtonMouseLeave:function(){this.disabled||this.clearTimer()},onUpButtonKeyUp:function(){this.disabled||this.clearTimer()},onUpButtonKeyDown:function(e){32!==e.keyCode&&13!==e.keyCode||this.repeat(e,null,1)},onDownButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,-1),e.preventDefault())},onDownButtonMouseUp:function(){this.disabled||this.clearTimer()},onDownButtonMouseLeave:function(){this.disabled||this.clearTimer()},onDownButtonKeyUp:function(){this.disabled||this.clearTimer()},onDownButtonKeyDown:function(e){32!==e.keyCode&&13!==e.keyCode||this.repeat(e,null,-1)},onUserInput:function(){this.isSpecialChar&&(this.$refs.input.$el.value=this.lastValue),this.isSpecialChar=!1},onInputKeyDown:function(e){if(!this.readonly)if(this.lastValue=e.target.value,e.shiftKey||e.altKey)this.isSpecialChar=!0;else{var t=e.target.selectionStart,n=e.target.selectionEnd,i=e.target.value,r=null;switch(e.altKey&&e.preventDefault(),e.code){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":this.isNumeralChar(i.charAt(t-1))||e.preventDefault();break;case"ArrowRight":this.isNumeralChar(i.charAt(t))||e.preventDefault();break;case"Tab":case"Enter":case"NumpadEnter":r=this.validateValue(this.parseValue(i)),this.$refs.input.$el.value=this.formatValue(r),this.$refs.input.$el.setAttribute("aria-valuenow",r),this.updateModel(e,r);break;case"Backspace":if(e.preventDefault(),t===n){var s=i.charAt(t-1),a=this.getDecimalCharIndexes(i),u=a.decimalCharIndex,l=a.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(s)){var o=this.getDecimalLength(i);if(this._group.test(s))this._group.lastIndex=0,r=i.slice(0,t-2)+i.slice(t-1);else if(this._decimal.test(s))this._decimal.lastIndex=0,o?this.$refs.input.$el.setSelectionRange(t-1,t-1):r=i.slice(0,t-1)+i.slice(t);else if(u>0&&t>u){var c=this.isDecimalMode()&&(this.minFractionDigits||0)<o?"":"0";r=i.slice(0,t-1)+c+i.slice(t)}else 1===l?(r=i.slice(0,t-1)+"0"+i.slice(t),r=this.parseValue(r)>0?r:""):r=i.slice(0,t-1)+i.slice(t)}this.updateValue(e,r,null,"delete-single")}else r=this.deleteRange(i,t,n),this.updateValue(e,r,null,"delete-range");break;case"Delete":if(e.preventDefault(),t===n){var h=i.charAt(t),p=this.getDecimalCharIndexes(i),d=p.decimalCharIndex,f=p.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(h)){var m=this.getDecimalLength(i);if(this._group.test(h))this._group.lastIndex=0,r=i.slice(0,t)+i.slice(t+2);else if(this._decimal.test(h))this._decimal.lastIndex=0,m?this.$refs.input.$el.setSelectionRange(t+1,t+1):r=i.slice(0,t)+i.slice(t+1);else if(d>0&&t>d){var g=this.isDecimalMode()&&(this.minFractionDigits||0)<m?"":"0";r=i.slice(0,t)+g+i.slice(t+1)}else 1===f?(r=i.slice(0,t)+"0"+i.slice(t+1),r=this.parseValue(r)>0?r:""):r=i.slice(0,t)+i.slice(t+1)}this.updateValue(e,r,null,"delete-back-single")}else r=this.deleteRange(i,t,n),this.updateValue(e,r,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault())}}},onInputKeyPress:function(e){if(!this.readonly){e.preventDefault();var t=e.which||e.keyCode,n=String.fromCharCode(t),i=this.isDecimalSign(n),r=this.isMinusSign(n);(48<=t&&t<=57||r||i)&&this.insert(e,n,{isDecimalSign:i,isMinusSign:r})}},onPaste:function(e){e.preventDefault();var t=(e.clipboardData||window.clipboardData).getData("Text");if(t){var n=this.parseValue(t);null!=n&&this.insert(e,n.toString())}},allowMinusSign:function(){return null===this.min||this.min<0},isMinusSign:function(e){return!(!this._minusSign.test(e)&&"-"!==e)&&(this._minusSign.lastIndex=0,!0)},isDecimalSign:function(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)},isDecimalMode:function(){return"decimal"===this.mode},getDecimalCharIndexes:function(e){var t=e.search(this._decimal);this._decimal.lastIndex=0;var n=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:t,decimalCharIndexWithoutPrefix:n}},getCharIndexes:function(e){var t=e.search(this._decimal);this._decimal.lastIndex=0;var n=e.search(this._minusSign);this._minusSign.lastIndex=0;var i=e.search(this._suffix);this._suffix.lastIndex=0;var r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:t,minusCharIndex:n,suffixCharIndex:i,currencyCharIndex:r}},insert:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},i=t.search(this._minusSign);if(this._minusSign.lastIndex=0,this.allowMinusSign()||-1===i){var r,s=this.$refs.input.$el.selectionStart,a=this.$refs.input.$el.selectionEnd,u=this.$refs.input.$el.value.trim(),l=this.getCharIndexes(u),o=l.decimalCharIndex,c=l.suffixCharIndex,h=l.currencyCharIndex;if(n.isMinusSign)0===s&&(r=u,-1!==l.minusCharIndex&&0===a||(r=this.insertText(u,t,0,a)),this.updateValue(e,r,t,"insert"));else if(n.isDecimalSign)o>0&&s===o?this.updateValue(e,u,t,"insert"):(o>s&&o<a||-1===o&&this.maxFractionDigits)&&(r=this.insertText(u,t,s,a),this.updateValue(e,r,t,"insert"));else{var p=this.numberFormat.resolvedOptions().maximumFractionDigits,d=s!==a?"range-insert":"insert";if(o>0&&s>o){if(s+t.length-(o+1)<=p){var f=h>=s?h-1:c>=s?c:u.length;r=u.slice(0,s)+t+u.slice(s+t.length,f)+u.slice(f),this.updateValue(e,r,t,d)}}else r=this.insertText(u,t,s,a),this.updateValue(e,r,t,d)}}},insertText:function(e,t,n,i){if(2===("."===t?t:t.split(".")).length){var r=e.slice(n,i).search(this._decimal);return this._decimal.lastIndex=0,r>0?e.slice(0,n)+this.formatValue(t)+e.slice(i):e||this.formatValue(t)}return i-n===e.length?this.formatValue(t):0===n?t+e.slice(i):i===e.length?e.slice(0,n)+t:e.slice(0,n)+t+e.slice(i)},deleteRange:function(e,t,n){return n-t===e.length?"":0===t?e.slice(n):n===e.length?e.slice(0,t):e.slice(0,t)+e.slice(n)},initCursor:function(){var e=this.$refs.input.$el.selectionStart,t=this.$refs.input.$el.value,n=t.length,i=null,r=(this.prefixChar||"").length,s=(t=t.replace(this._prefix,"")).charAt(e-=r);if(this.isNumeralChar(s))return e+r;for(var a=e-1;a>=0;){if(s=t.charAt(a),this.isNumeralChar(s)){i=a+r;break}a--}if(null!==i)this.$refs.input.$el.setSelectionRange(i+1,i+1);else{for(a=e;a<n;){if(s=t.charAt(a),this.isNumeralChar(s)){i=a+r;break}a++}null!==i&&this.$refs.input.$el.setSelectionRange(i,i)}return i||0},onInputClick:function(){this.readonly||this.$refs.input.$el.value===r.DomHandler.getSelection()||this.initCursor()},isNumeralChar:function(e){return!(1!==e.length||!(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e)))&&(this.resetRegex(),!0)},resetRegex:function(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0},updateValue:function(e,t,n,i){var r=this.$refs.input.$el.value,s=null;null!=t&&(s=this.parseValue(t),this.updateInput(s=s||this.allowEmpty?s:0,n,i,t),this.handleOnInput(e,r,s))},handleOnInput:function(e,t,n){this.isValueChanged(t,n)&&this.$emit("input",{originalEvent:e,value:n,formattedValue:t})},isValueChanged:function(e,t){return null===t&&null!==e||null!=t&&t!==("string"==typeof e?this.parseValue(e):e)},validateValue:function(e){return"-"===e||null==e?null:null!=this.min&&e<this.min?this.min:null!=this.max&&e>this.max?this.max:e},updateInput:function(e,t,n,i){t=t||"";var r=this.$refs.input.$el.value,s=this.formatValue(e),a=r.length;if(s!==i&&(s=this.concatValues(s,i)),0===a){this.$refs.input.$el.value=s,this.$refs.input.$el.setSelectionRange(0,0);var u=this.initCursor()+t.length;this.$refs.input.$el.setSelectionRange(u,u)}else{var l=this.$refs.input.$el.selectionStart,o=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=s;var c=s.length;if("range-insert"===n){var h=this.parseValue((r||"").slice(0,l)),p=(null!==h?h.toString():"").split("").join("(".concat(this.groupChar,")?")),d=new RegExp(p,"g");d.test(s);var f=t.split("").join("(".concat(this.groupChar,")?")),m=new RegExp(f,"g");m.test(s.slice(d.lastIndex)),this.$refs.input.$el.setSelectionRange(o=d.lastIndex+m.lastIndex,o)}else if(c===a)"insert"===n||"delete-back-single"===n?this.$refs.input.$el.setSelectionRange(o+1,o+1):"delete-single"===n?this.$refs.input.$el.setSelectionRange(o-1,o-1):"delete-range"!==n&&"spin"!==n||this.$refs.input.$el.setSelectionRange(o,o);else if("delete-back-single"===n){var g=r.charAt(o-1),y=r.charAt(o),x=a-c,v=this._group.test(y);v&&1===x?o+=1:!v&&this.isNumeralChar(g)&&(o+=-1*x+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(o,o)}else if("-"===r&&"insert"===n){this.$refs.input.$el.setSelectionRange(0,0);var b=this.initCursor()+t.length+1;this.$refs.input.$el.setSelectionRange(b,b)}else this.$refs.input.$el.setSelectionRange(o+=c-a,o)}this.$refs.input.$el.setAttribute("aria-valuenow",e)},concatValues:function(e,t){if(e&&t){var n=t.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?-1!==n?e.replace(this.suffixChar,"").split(this._decimal)[0]+t.replace(this.suffixChar,"").slice(n)+this.suffixChar:e:-1!==n?e.split(this._decimal)[0]+t.slice(n):e}return e},getDecimalLength:function(e){if(e){var t=e.split(this._decimal);if(2===t.length)return t[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0},updateModel:function(e,t){this.d_modelValue=t,this.$emit("update:modelValue",t)},onInputFocus:function(e){this.focused=!0,this.disabled||this.readonly||this.$refs.input.$el.value===r.DomHandler.getSelection()||!this.highlightOnFocus||e.target.select(),this.$emit("focus",e)},onInputBlur:function(e){this.focused=!1;var t=e.target,n=this.validateValue(this.parseValue(t.value));this.$emit("blur",{originalEvent:e,value:t.value}),t.value=this.formatValue(n),t.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.disabled||this.readonly||!this.highlightOnFocus||r.DomHandler.clearSelection()},clearTimer:function(){this.timer&&clearInterval(this.timer)},maxBoundry:function(){return this.d_modelValue>=this.max},minBoundry:function(){return this.d_modelValue<=this.min}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0},upButtonListeners:function(){var e=this;return{mousedown:function(t){return e.onUpButtonMouseDown(t)},mouseup:function(t){return e.onUpButtonMouseUp(t)},mouseleave:function(t){return e.onUpButtonMouseLeave(t)},keydown:function(t){return e.onUpButtonKeyDown(t)},keyup:function(t){return e.onUpButtonKeyUp(t)}}},downButtonListeners:function(){var e=this;return{mousedown:function(t){return e.onDownButtonMouseDown(t)},mouseup:function(t){return e.onDownButtonMouseUp(t)},mouseleave:function(t){return e.onDownButtonMouseLeave(t)},keydown:function(t){return e.onDownButtonKeyDown(t)},keyup:function(t){return e.onDownButtonKeyUp(t)}}},formattedValue:function(){return this.formatValue(this.modelValue||this.allowEmpty?this.modelValue:0)},getFormatter:function(){return this.numberFormat}},components:{INInputText:p.default,INButton:o.default,AngleUpIcon:h.default,AngleDownIcon:c.default}};return B.render=function(e,t,n,i,r,s){var a=u.resolveComponent("INInputText"),l=u.resolveComponent("INButton");return u.openBlock(),u.createElementBlock("span",u.mergeProps({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"inputnumber"}),[u.createVNode(a,u.mergeProps({ref:"input",id:e.inputId,role:"spinbutton",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.formattedValue,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onInput:s.onUserInput,onKeydown:s.onInputKeyDown,onKeypress:s.onInputKeyPress,onPaste:s.onPaste,onClick:s.onInputClick,onFocus:s.onInputFocus,onBlur:s.onInputBlur},e.inputProps,{pt:e.ptm("input"),unstyled:e.unstyled,"data-pc-section":"input"}),null,16,["id","class","style","value","aria-valuemin","aria-valuemax","aria-valuenow","disabled","readonly","placeholder","aria-labelledby","aria-label","onInput","onKeydown","onKeypress","onPaste","onClick","onFocus","onBlur","pt","unstyled"]),e.showButtons&&"stacked"===e.buttonLayout?(u.openBlock(),u.createElementBlock("span",u.mergeProps({key:0,class:e.cx("buttonGroup")},e.ptm("buttonGroup")),[u.createVNode(l,u.mergeProps({class:[e.cx("incrementButton"),e.incrementButtonClass]},u.toHandlers(s.upButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.incrementButtonProps,{pt:e.ptm("incrementButton"),unstyled:e.unstyled,"data-pc-section":"incrementbutton"}),{icon:u.withCtx((function(){return[u.renderSlot(e.$slots,"incrementbuttonicon",{},(function(){return[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.incrementButtonIcon?"span":"AngleUpIcon"),u.mergeProps({class:e.incrementButtonIcon},e.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"]),u.createVNode(l,u.mergeProps({class:[e.cx("decrementButton"),e.decrementButtonClass]},u.toHandlers(s.downButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.decrementButtonProps,{pt:e.ptm("decrementButton"),unstyled:e.unstyled,"data-pc-section":"decrementbutton"}),{icon:u.withCtx((function(){return[u.renderSlot(e.$slots,"decrementbuttonicon",{},(function(){return[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.decrementButtonIcon?"span":"AngleDownIcon"),u.mergeProps({class:e.decrementButtonIcon},e.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])],16)):u.createCommentVNode("",!0),e.showButtons&&"stacked"!==e.buttonLayout?(u.openBlock(),u.createBlock(l,u.mergeProps({key:1,class:[e.cx("incrementButton"),e.incrementButtonClass]},u.toHandlers(s.upButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.incrementButtonProps,{pt:e.ptm("incrementButton"),unstyled:e.unstyled,"data-pc-section":"incrementbutton"}),{icon:u.withCtx((function(){return[u.renderSlot(e.$slots,"incrementbuttonicon",{},(function(){return[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.incrementButtonIcon?"span":"AngleUpIcon"),u.mergeProps({class:e.incrementButtonIcon},e.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])):u.createCommentVNode("",!0),e.showButtons&&"stacked"!==e.buttonLayout?(u.openBlock(),u.createBlock(l,u.mergeProps({key:2,class:[e.cx("decrementButton"),e.decrementButtonClass]},u.toHandlers(s.downButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.decrementButtonProps,{pt:e.ptm("decrementButton"),unstyled:e.unstyled,"data-pc-section":"decrementbutton"}),{icon:u.withCtx((function(){return[u.renderSlot(e.$slots,"decrementbuttonicon",{},(function(){return[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.decrementButtonIcon?"span":"AngleDownIcon"),u.mergeProps({class:e.decrementButtonIcon},e.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])):u.createCommentVNode("",!0)],16)},B}(primevue.button,primevue.icons.angledown,primevue.icons.angleup,primevue.inputtext,primevue.utils,primevue.basecomponent,primevue.inputnumber.style,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.inputnumber=function(e,t,n,i,r,s,a,u){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),c=l(t),h=l(n),p=l(i);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){var i;return(t="symbol"==d(i=y(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){if(Array.isArray(e))return I(e)}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var B={name:"InputNumber",extends:{name:"BaseInputNumber",extends:l(s).default,props:{modelValue:{type:Number,default:null},format:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!1},buttonLayout:{type:String,default:"stacked"},incrementButtonClass:{type:String,default:null},decrementButtonClass:{type:String,default:null},incrementButtonIcon:{type:String,default:void 0},decrementButtonIcon:{type:String,default:void 0},locale:{type:String,default:void 0},localeMatcher:{type:String,default:void 0},mode:{type:String,default:"decimal"},prefix:{type:String,default:null},suffix:{type:String,default:null},currency:{type:String,default:void 0},currencyDisplay:{type:String,default:void 0},useGrouping:{type:Boolean,default:!0},minFractionDigits:{type:Number,default:void 0},maxFractionDigits:{type:Number,default:void 0},roundingMode:{type:String,default:"halfExpand",validator:function(e){return["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"].includes(e)}},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},allowEmpty:{type:Boolean,default:!0},highlightOnFocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},incrementButtonProps:{type:null,default:null},decrementButtonProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:l(a).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","input","focus","blur"],numberFormat:null,_numeral:null,_decimal:null,_group:null,_minusSign:null,_currency:null,_suffix:null,_prefix:null,_index:null,groupChar:"",isSpecialChar:null,prefixChar:null,suffixChar:null,timer:null,data:function(){return{d_modelValue:this.modelValue,focused:!1}},watch:{modelValue:function(e){this.d_modelValue=e},locale:function(e,t){this.updateConstructParser(e,t)},localeMatcher:function(e,t){this.updateConstructParser(e,t)},mode:function(e,t){this.updateConstructParser(e,t)},currency:function(e,t){this.updateConstructParser(e,t)},currencyDisplay:function(e,t){this.updateConstructParser(e,t)},useGrouping:function(e,t){this.updateConstructParser(e,t)},minFractionDigits:function(e,t){this.updateConstructParser(e,t)},maxFractionDigits:function(e,t){this.updateConstructParser(e,t)},suffix:function(e,t){this.updateConstructParser(e,t)},prefix:function(e,t){this.updateConstructParser(e,t)}},created:function(){this.constructParser()},methods:{getOptions:function(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits,roundingMode:this.roundingMode}},constructParser:function(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());var e,t=(e=new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210),C(e)||b(e)||v(e)||x()).reverse(),n=new Map(t.map((function(e,t){return[e,t]})));this._numeral=new RegExp("[".concat(t.join(""),"]"),"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=function(e){return n.get(e)}},updateConstructParser:function(e,t){e!==t&&this.constructParser()},escapeRegExp:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},getDecimalExpression:function(){var e=new Intl.NumberFormat(this.locale,f(f({},this.getOptions()),{},{useGrouping:!1}));return new RegExp("[".concat(e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,""),"]"),"g")},getGroupingExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp("[".concat(this.groupChar,"]"),"g")},getMinusSignExpression:function(){var e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp("[".concat(e.format(-1).trim().replace(this._numeral,""),"]"),"g")},getCurrencyExpression:function(){if(this.currency){var e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});return new RegExp("[".concat(e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,""),"]"),"g")}return new RegExp("[]","g")},getPrefixExpression:function(){if(this.prefix)this.prefixChar=this.prefix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp("".concat(this.escapeRegExp(this.prefixChar||"")),"g")},getSuffixExpression:function(){if(this.suffix)this.suffixChar=this.suffix;else{var e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0,roundingMode:this.roundingMode});this.suffixChar=e.format(1).split("1")[1]}return new RegExp("".concat(this.escapeRegExp(this.suffixChar||"")),"g")},formatValue:function(e){if(null!=e){if("-"===e)return e;if(this.format){var t=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(t=this.prefix+t),this.suffix&&(t+=this.suffix),t}return e.toString()}return""},parseValue:function(e){var t=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(t){if("-"===t)return t;var n=+t;return isNaN(n)?null:n}return null},repeat:function(e,t,n){var i=this;if(!this.readonly){var r=t||500;this.clearTimer(),this.timer=setTimeout((function(){i.repeat(e,40,n)}),r),this.spin(e,n)}},spin:function(e,t){if(this.$refs.input){var n=this.step*t,i=this.parseValue(this.$refs.input.$el.value)||0,r=this.validateValue(i+n);this.updateInput(r,null,"spin"),this.updateModel(e,r),this.handleOnInput(e,i,r)}},onUpButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,1),e.preventDefault())},onUpButtonMouseUp:function(){this.disabled||this.clearTimer()},onUpButtonMouseLeave:function(){this.disabled||this.clearTimer()},onUpButtonKeyUp:function(){this.disabled||this.clearTimer()},onUpButtonKeyDown:function(e){32!==e.keyCode&&13!==e.keyCode||this.repeat(e,null,1)},onDownButtonMouseDown:function(e){this.disabled||(this.$refs.input.$el.focus(),this.repeat(e,null,-1),e.preventDefault())},onDownButtonMouseUp:function(){this.disabled||this.clearTimer()},onDownButtonMouseLeave:function(){this.disabled||this.clearTimer()},onDownButtonKeyUp:function(){this.disabled||this.clearTimer()},onDownButtonKeyDown:function(e){32!==e.keyCode&&13!==e.keyCode||this.repeat(e,null,-1)},onUserInput:function(){this.isSpecialChar&&(this.$refs.input.$el.value=this.lastValue),this.isSpecialChar=!1},onInputKeyDown:function(e){if(!this.readonly)if(this.lastValue=e.target.value,e.shiftKey||e.altKey)this.isSpecialChar=!0;else{var t=e.target.selectionStart,n=e.target.selectionEnd,i=e.target.value,s=null;switch(e.altKey&&e.preventDefault(),e.code){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":this.isNumeralChar(i.charAt(t-1))||e.preventDefault();break;case"ArrowRight":this.isNumeralChar(i.charAt(t))||e.preventDefault();break;case"Tab":case"Enter":case"NumpadEnter":s=this.validateValue(this.parseValue(i)),this.$refs.input.$el.value=this.formatValue(s),this.$refs.input.$el.setAttribute("aria-valuenow",s),this.updateModel(e,s);break;case"Backspace":if(e.preventDefault(),t===n){var a=i.charAt(t-1),u=this.getDecimalCharIndexes(i),l=u.decimalCharIndex,o=u.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(a)){var c=this.getDecimalLength(i);if(this._group.test(a))this._group.lastIndex=0,s=i.slice(0,t-2)+i.slice(t-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,c?this.$refs.input.$el.setSelectionRange(t-1,t-1):s=i.slice(0,t-1)+i.slice(t);else if(l>0&&t>l){var h=this.isDecimalMode()&&(this.minFractionDigits||0)<c?"":"0";s=i.slice(0,t-1)+h+i.slice(t)}else 1===o?(s=i.slice(0,t-1)+"0"+i.slice(t),s=this.parseValue(s)>0?s:""):s=i.slice(0,t-1)+i.slice(t)}this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(i,t,n),this.updateValue(e,s,null,"delete-range");break;case"Delete":if(e.preventDefault(),t===n){var p=i.charAt(t),d=this.getDecimalCharIndexes(i),m=d.decimalCharIndex,f=d.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(p)){var g=this.getDecimalLength(i);if(this._group.test(p))this._group.lastIndex=0,s=i.slice(0,t)+i.slice(t+2);else if(this._decimal.test(p))this._decimal.lastIndex=0,g?this.$refs.input.$el.setSelectionRange(t+1,t+1):s=i.slice(0,t)+i.slice(t+1);else if(m>0&&t>m){var y=this.isDecimalMode()&&(this.minFractionDigits||0)<g?"":"0";s=i.slice(0,t)+y+i.slice(t+1)}else 1===f?(s=i.slice(0,t)+"0"+i.slice(t+1),s=this.parseValue(s)>0?s:""):s=i.slice(0,t)+i.slice(t+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(i,t,n),this.updateValue(e,s,null,"delete-range");break;case"Home":e.preventDefault(),r.ObjectUtils.isEmpty(this.min)||this.updateModel(e,this.min);break;case"End":e.preventDefault(),r.ObjectUtils.isEmpty(this.max)||this.updateModel(e,this.max)}}},onInputKeyPress:function(e){if(!this.readonly){e.preventDefault();var t=e.which||e.keyCode,n=String.fromCharCode(t),i=this.isDecimalSign(n),r=this.isMinusSign(n);(48<=t&&t<=57||r||i)&&this.insert(e,n,{isDecimalSign:i,isMinusSign:r})}},onPaste:function(e){e.preventDefault();var t=(e.clipboardData||window.clipboardData).getData("Text");if(t){var n=this.parseValue(t);null!=n&&this.insert(e,n.toString())}},allowMinusSign:function(){return null===this.min||this.min<0},isMinusSign:function(e){return!(!this._minusSign.test(e)&&"-"!==e)&&(this._minusSign.lastIndex=0,!0)},isDecimalSign:function(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)},isDecimalMode:function(){return"decimal"===this.mode},getDecimalCharIndexes:function(e){var t=e.search(this._decimal);this._decimal.lastIndex=0;var n=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:t,decimalCharIndexWithoutPrefix:n}},getCharIndexes:function(e){var t=e.search(this._decimal);this._decimal.lastIndex=0;var n=e.search(this._minusSign);this._minusSign.lastIndex=0;var i=e.search(this._suffix);this._suffix.lastIndex=0;var r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:t,minusCharIndex:n,suffixCharIndex:i,currencyCharIndex:r}},insert:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},i=t.search(this._minusSign);if(this._minusSign.lastIndex=0,this.allowMinusSign()||-1===i){var r,s=this.$refs.input.$el.selectionStart,a=this.$refs.input.$el.selectionEnd,u=this.$refs.input.$el.value.trim(),l=this.getCharIndexes(u),o=l.decimalCharIndex,c=l.suffixCharIndex,h=l.currencyCharIndex;if(n.isMinusSign)0===s&&(r=u,-1!==l.minusCharIndex&&0===a||(r=this.insertText(u,t,0,a)),this.updateValue(e,r,t,"insert"));else if(n.isDecimalSign)o>0&&s===o?this.updateValue(e,u,t,"insert"):(o>s&&o<a||-1===o&&this.maxFractionDigits)&&(r=this.insertText(u,t,s,a),this.updateValue(e,r,t,"insert"));else{var p=this.numberFormat.resolvedOptions().maximumFractionDigits,d=s!==a?"range-insert":"insert";if(o>0&&s>o){if(s+t.length-(o+1)<=p){var m=h>=s?h-1:c>=s?c:u.length;r=u.slice(0,s)+t+u.slice(s+t.length,m)+u.slice(m),this.updateValue(e,r,t,d)}}else r=this.insertText(u,t,s,a),this.updateValue(e,r,t,d)}}},insertText:function(e,t,n,i){if(2===("."===t?t:t.split(".")).length){var r=e.slice(n,i).search(this._decimal);return this._decimal.lastIndex=0,r>0?e.slice(0,n)+this.formatValue(t)+e.slice(i):this.formatValue(t)||e}return i-n===e.length?this.formatValue(t):0===n?t+e.slice(i):i===e.length?e.slice(0,n)+t:e.slice(0,n)+t+e.slice(i)},deleteRange:function(e,t,n){return n-t===e.length?"":0===t?e.slice(n):n===e.length?e.slice(0,t):e.slice(0,t)+e.slice(n)},initCursor:function(){var e=this.$refs.input.$el.selectionStart,t=this.$refs.input.$el.value,n=t.length,i=null,r=(this.prefixChar||"").length,s=(t=t.replace(this._prefix,"")).charAt(e-=r);if(this.isNumeralChar(s))return e+r;for(var a=e-1;a>=0;){if(s=t.charAt(a),this.isNumeralChar(s)){i=a+r;break}a--}if(null!==i)this.$refs.input.$el.setSelectionRange(i+1,i+1);else{for(a=e;a<n;){if(s=t.charAt(a),this.isNumeralChar(s)){i=a+r;break}a++}null!==i&&this.$refs.input.$el.setSelectionRange(i,i)}return i||0},onInputClick:function(){this.readonly||this.$refs.input.$el.value===r.DomHandler.getSelection()||this.initCursor()},isNumeralChar:function(e){return!(1!==e.length||!(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e)))&&(this.resetRegex(),!0)},resetRegex:function(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0},updateValue:function(e,t,n,i){var r=this.$refs.input.$el.value,s=null;null!=t&&(s=this.parseValue(t),this.updateInput(s=s||this.allowEmpty?s:0,n,i,t),this.handleOnInput(e,r,s))},handleOnInput:function(e,t,n){this.isValueChanged(t,n)&&this.$emit("input",{originalEvent:e,value:n,formattedValue:t})},isValueChanged:function(e,t){return null===t&&null!==e||null!=t&&t!==("string"==typeof e?this.parseValue(e):e)},validateValue:function(e){return"-"===e||null==e?null:null!=this.min&&e<this.min?this.min:null!=this.max&&e>this.max?this.max:e},updateInput:function(e,t,n,i){t=t||"";var r=this.$refs.input.$el.value,s=this.formatValue(e),a=r.length;if(s!==i&&(s=this.concatValues(s,i)),0===a){this.$refs.input.$el.value=s,this.$refs.input.$el.setSelectionRange(0,0);var u=this.initCursor()+t.length;this.$refs.input.$el.setSelectionRange(u,u)}else{var l=this.$refs.input.$el.selectionStart,o=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=s;var c=s.length;if("range-insert"===n){var h=this.parseValue((r||"").slice(0,l)),p=(null!==h?h.toString():"").split("").join("(".concat(this.groupChar,")?")),d=new RegExp(p,"g");d.test(s);var m=t.split("").join("(".concat(this.groupChar,")?")),f=new RegExp(m,"g");f.test(s.slice(d.lastIndex)),this.$refs.input.$el.setSelectionRange(o=d.lastIndex+f.lastIndex,o)}else if(c===a)if("insert"===n||"delete-back-single"===n){var g=/[.,]/g,y=o+Number(g.test(e)||g.test(t));this.$refs.input.$el.setSelectionRange(y,y)}else"delete-single"===n?this.$refs.input.$el.setSelectionRange(o-1,o-1):"delete-range"!==n&&"spin"!==n||this.$refs.input.$el.setSelectionRange(o,o);else if("delete-back-single"===n){var x=r.charAt(o-1),v=r.charAt(o),b=a-c,C=this._group.test(v);C&&1===b?o+=1:!C&&this.isNumeralChar(x)&&(o+=-1*b+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(o,o)}else if("-"===r&&"insert"===n){this.$refs.input.$el.setSelectionRange(0,0);var I=this.initCursor()+t.length+1;this.$refs.input.$el.setSelectionRange(I,I)}else this.$refs.input.$el.setSelectionRange(o+=c-a,o)}this.$refs.input.$el.setAttribute("aria-valuenow",e)},concatValues:function(e,t){if(e&&t){var n=t.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?-1!==n?e.replace(this.suffixChar,"").split(this._decimal)[0]+t.replace(this.suffixChar,"").slice(n)+this.suffixChar:e:-1!==n?e.split(this._decimal)[0]+t.slice(n):e}return e},getDecimalLength:function(e){if(e){var t=e.split(this._decimal);if(2===t.length)return t[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0},updateModel:function(e,t){this.d_modelValue=t,this.$emit("update:modelValue",t)},onInputFocus:function(e){this.focused=!0,this.disabled||this.readonly||this.$refs.input.$el.value===r.DomHandler.getSelection()||!this.highlightOnFocus||e.target.select(),this.$emit("focus",e)},onInputBlur:function(e){this.focused=!1;var t=e.target,n=this.validateValue(this.parseValue(t.value));this.$emit("blur",{originalEvent:e,value:t.value}),t.value=this.formatValue(n),t.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.disabled||this.readonly||!this.highlightOnFocus||r.DomHandler.clearSelection()},clearTimer:function(){this.timer&&clearInterval(this.timer)},maxBoundry:function(){return this.d_modelValue>=this.max},minBoundry:function(){return this.d_modelValue<=this.min}},computed:{filled:function(){return null!=this.modelValue&&this.modelValue.toString().length>0},upButtonListeners:function(){var e=this;return{mousedown:function(t){return e.onUpButtonMouseDown(t)},mouseup:function(t){return e.onUpButtonMouseUp(t)},mouseleave:function(t){return e.onUpButtonMouseLeave(t)},keydown:function(t){return e.onUpButtonKeyDown(t)},keyup:function(t){return e.onUpButtonKeyUp(t)}}},downButtonListeners:function(){var e=this;return{mousedown:function(t){return e.onDownButtonMouseDown(t)},mouseup:function(t){return e.onDownButtonMouseUp(t)},mouseleave:function(t){return e.onDownButtonMouseLeave(t)},keydown:function(t){return e.onDownButtonKeyDown(t)},keyup:function(t){return e.onDownButtonKeyUp(t)}}},formattedValue:function(){return this.formatValue(this.modelValue||this.allowEmpty?this.modelValue:0)},getFormatter:function(){return this.numberFormat}},components:{INInputText:p.default,INButton:o.default,AngleUpIcon:h.default,AngleDownIcon:c.default}};return B.render=function(e,t,n,i,r,s){var a=u.resolveComponent("INInputText"),l=u.resolveComponent("INButton");return u.openBlock(),u.createElementBlock("span",u.mergeProps({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"inputnumber"}),[u.createVNode(a,u.mergeProps({ref:"input",id:e.inputId,role:"spinbutton",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.formattedValue,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onInput:s.onUserInput,onKeydown:s.onInputKeyDown,onKeypress:s.onInputKeyPress,onPaste:s.onPaste,onClick:s.onInputClick,onFocus:s.onInputFocus,onBlur:s.onInputBlur},e.inputProps,{pt:e.ptm("input"),unstyled:e.unstyled,"data-pc-section":"input"}),null,16,["id","class","style","value","aria-valuemin","aria-valuemax","aria-valuenow","disabled","readonly","placeholder","aria-labelledby","aria-label","onInput","onKeydown","onKeypress","onPaste","onClick","onFocus","onBlur","pt","unstyled"]),e.showButtons&&"stacked"===e.buttonLayout?(u.openBlock(),u.createElementBlock("span",u.mergeProps({key:0,class:e.cx("buttonGroup")},e.ptm("buttonGroup")),[u.createVNode(l,u.mergeProps({class:[e.cx("incrementButton"),e.incrementButtonClass]},u.toHandlers(s.upButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.incrementButtonProps,{pt:e.ptm("incrementButton"),unstyled:e.unstyled,"data-pc-section":"incrementbutton"}),{icon:u.withCtx((function(){return[u.renderSlot(e.$slots,"incrementbuttonicon",{},(function(){return[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.incrementButtonIcon?"span":"AngleUpIcon"),u.mergeProps({class:e.incrementButtonIcon},e.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"]),u.createVNode(l,u.mergeProps({class:[e.cx("decrementButton"),e.decrementButtonClass]},u.toHandlers(s.downButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.decrementButtonProps,{pt:e.ptm("decrementButton"),unstyled:e.unstyled,"data-pc-section":"decrementbutton"}),{icon:u.withCtx((function(){return[u.renderSlot(e.$slots,"decrementbuttonicon",{},(function(){return[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.decrementButtonIcon?"span":"AngleDownIcon"),u.mergeProps({class:e.decrementButtonIcon},e.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])],16)):u.createCommentVNode("",!0),e.showButtons&&"stacked"!==e.buttonLayout?(u.openBlock(),u.createBlock(l,u.mergeProps({key:1,class:[e.cx("incrementButton"),e.incrementButtonClass]},u.toHandlers(s.upButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.incrementButtonProps,{pt:e.ptm("incrementButton"),unstyled:e.unstyled,"data-pc-section":"incrementbutton"}),{icon:u.withCtx((function(){return[u.renderSlot(e.$slots,"incrementbuttonicon",{},(function(){return[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.incrementButtonIcon?"span":"AngleUpIcon"),u.mergeProps({class:e.incrementButtonIcon},e.ptm("incrementButton").icon,{"data-pc-section":"incrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])):u.createCommentVNode("",!0),e.showButtons&&"stacked"!==e.buttonLayout?(u.openBlock(),u.createBlock(l,u.mergeProps({key:2,class:[e.cx("decrementButton"),e.decrementButtonClass]},u.toHandlers(s.downButtonListeners),{disabled:e.disabled,tabindex:-1,"aria-hidden":"true"},e.decrementButtonProps,{pt:e.ptm("decrementButton"),unstyled:e.unstyled,"data-pc-section":"decrementbutton"}),{icon:u.withCtx((function(){return[u.renderSlot(e.$slots,"decrementbuttonicon",{},(function(){return[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.decrementButtonIcon?"span":"AngleDownIcon"),u.mergeProps({class:e.decrementButtonIcon},e.ptm("decrementButton").icon,{"data-pc-section":"decrementbuttonicon"}),null,16,["class"]))]}))]})),_:3},16,["class","disabled","pt","unstyled"])):u.createCommentVNode("",!0)],16)},B}(primevue.button,primevue.icons.angledown,primevue.icons.angleup,primevue.inputtext,primevue.utils,primevue.basecomponent,primevue.inputnumber.style,Vue);
|
|
@@ -22,6 +22,14 @@ export default {
|
|
|
22
22
|
type: Boolean,
|
|
23
23
|
default: false
|
|
24
24
|
},
|
|
25
|
+
readonly: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
28
|
+
},
|
|
29
|
+
tabindex: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: null
|
|
32
|
+
},
|
|
25
33
|
inputId: {
|
|
26
34
|
type: String,
|
|
27
35
|
default: null
|
|
@@ -34,10 +42,6 @@ export default {
|
|
|
34
42
|
type: Object,
|
|
35
43
|
default: null
|
|
36
44
|
},
|
|
37
|
-
inputProps: {
|
|
38
|
-
type: null,
|
|
39
|
-
default: null
|
|
40
|
-
},
|
|
41
45
|
ariaLabelledby: {
|
|
42
46
|
type: String,
|
|
43
47
|
default: null
|
|
@@ -30,6 +30,10 @@ export interface InputSwitchPassThroughMethodOptions {
|
|
|
30
30
|
* Defines current inline state.
|
|
31
31
|
*/
|
|
32
32
|
state: InputSwitchState;
|
|
33
|
+
/**
|
|
34
|
+
* Defines current options.
|
|
35
|
+
*/
|
|
36
|
+
context: InputSwitchContext;
|
|
33
37
|
/**
|
|
34
38
|
* Defines valid attributes.
|
|
35
39
|
*/
|
|
@@ -54,17 +58,13 @@ export interface InputSwitchPassThroughOptions {
|
|
|
54
58
|
*/
|
|
55
59
|
root?: InputSwitchPassThroughOptionType;
|
|
56
60
|
/**
|
|
57
|
-
* Used to pass attributes to the
|
|
61
|
+
* Used to pass attributes to the input's DOM element.
|
|
58
62
|
*/
|
|
59
|
-
|
|
63
|
+
input?: InputSwitchPassThroughOptionType;
|
|
60
64
|
/**
|
|
61
|
-
* Used to pass attributes to the
|
|
62
|
-
*/
|
|
63
|
-
hiddenInputWrapper?: InputSwitchPassThroughOptionType;
|
|
64
|
-
/**
|
|
65
|
-
* Used to pass attributes to the hidden input's DOM element.
|
|
65
|
+
* Used to pass attributes to the slider's DOM element.
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
slider?: InputSwitchPassThroughOptionType;
|
|
68
68
|
/**
|
|
69
69
|
* Used to manage all lifecycle hooks.
|
|
70
70
|
* @see {@link BaseComponent.ComponentHooks}
|
|
@@ -83,11 +83,7 @@ export interface InputSwitchPassThroughAttributes {
|
|
|
83
83
|
* Defines current inline state in InputSwitch component.
|
|
84
84
|
*/
|
|
85
85
|
export interface InputSwitchState {
|
|
86
|
-
|
|
87
|
-
* Current focus state as a boolean.
|
|
88
|
-
* @defaultValue false
|
|
89
|
-
*/
|
|
90
|
-
focused: boolean;
|
|
86
|
+
[key: string]: any;
|
|
91
87
|
}
|
|
92
88
|
|
|
93
89
|
/**
|
|
@@ -114,6 +110,15 @@ export interface InputSwitchProps {
|
|
|
114
110
|
* @defaultValue false
|
|
115
111
|
*/
|
|
116
112
|
disabled?: boolean | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* When present, it specifies that an input field is read-only.
|
|
115
|
+
* @default false
|
|
116
|
+
*/
|
|
117
|
+
readonly?: boolean | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Index of the element in tabbing order.
|
|
120
|
+
*/
|
|
121
|
+
tabindex?: number | undefined;
|
|
117
122
|
/**
|
|
118
123
|
* Identifier of the underlying input element.
|
|
119
124
|
*/
|
|
@@ -155,6 +160,22 @@ export interface InputSwitchProps {
|
|
|
155
160
|
unstyled?: boolean;
|
|
156
161
|
}
|
|
157
162
|
|
|
163
|
+
/**
|
|
164
|
+
* Defines current options in InputSwitch component.
|
|
165
|
+
*/
|
|
166
|
+
export interface InputSwitchContext {
|
|
167
|
+
/**
|
|
168
|
+
* Current checked state of the item as a boolean.
|
|
169
|
+
* @defaultValue false
|
|
170
|
+
*/
|
|
171
|
+
checked: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* Current disabled state of the item as a boolean.
|
|
174
|
+
* @defaultValue false
|
|
175
|
+
*/
|
|
176
|
+
disabled: boolean;
|
|
177
|
+
}
|
|
178
|
+
|
|
158
179
|
export interface InputSwitchSlots {}
|
|
159
180
|
|
|
160
181
|
/**
|
|
@@ -167,20 +188,20 @@ export interface InputSwitchEmits {
|
|
|
167
188
|
*/
|
|
168
189
|
'update:modelValue'(value: boolean): void;
|
|
169
190
|
/**
|
|
170
|
-
* Callback to invoke on
|
|
191
|
+
* Callback to invoke on value change.
|
|
171
192
|
* @param {Event} event - Browser event.
|
|
172
193
|
*/
|
|
173
|
-
|
|
194
|
+
change(event: Event): void;
|
|
174
195
|
/**
|
|
175
|
-
* Callback to invoke
|
|
196
|
+
* Callback to invoke when the component receives focus.
|
|
176
197
|
* @param {Event} event - Browser event.
|
|
177
198
|
*/
|
|
178
|
-
|
|
199
|
+
focus(event: Event): void;
|
|
179
200
|
/**
|
|
180
|
-
* Callback to invoke
|
|
181
|
-
* @param {
|
|
201
|
+
* Callback to invoke when the component loses focus.
|
|
202
|
+
* @param {Event} event - Browser event.
|
|
182
203
|
*/
|
|
183
|
-
|
|
204
|
+
blur(event: Event): void;
|
|
184
205
|
}
|
|
185
206
|
|
|
186
207
|
/**
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="cx('root')" :style="sx('root')"
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<span :class="cx('slider')" v-bind="
|
|
2
|
+
<div :class="cx('root')" :style="sx('root')" v-bind="getPTOptions('root')" data-pc-name="inputswitch" :data-p-highlight="checked" :data-p-disabled="disabled">
|
|
3
|
+
<input
|
|
4
|
+
:id="inputId"
|
|
5
|
+
type="checkbox"
|
|
6
|
+
role="switch"
|
|
7
|
+
:class="[cx('input'), inputClass]"
|
|
8
|
+
:style="inputStyle"
|
|
9
|
+
:checked="checked"
|
|
10
|
+
:tabindex="tabindex"
|
|
11
|
+
:disabled="disabled"
|
|
12
|
+
:readonly="readonly"
|
|
13
|
+
:aria-checked="checked"
|
|
14
|
+
:aria-labelledby="ariaLabelledby"
|
|
15
|
+
:aria-label="ariaLabel"
|
|
16
|
+
@focus="onFocus"
|
|
17
|
+
@blur="onBlur"
|
|
18
|
+
@change="onChange"
|
|
19
|
+
v-bind="getPTOptions('input')"
|
|
20
|
+
/>
|
|
21
|
+
<span :class="cx('slider')" v-bind="getPTOptions('slider')"></span>
|
|
22
22
|
</div>
|
|
23
23
|
</template>
|
|
24
24
|
|
|
@@ -28,30 +28,28 @@ import BaseInputSwitch from './BaseInputSwitch.vue';
|
|
|
28
28
|
export default {
|
|
29
29
|
name: 'InputSwitch',
|
|
30
30
|
extends: BaseInputSwitch,
|
|
31
|
-
emits: ['
|
|
32
|
-
data() {
|
|
33
|
-
return {
|
|
34
|
-
focused: false
|
|
35
|
-
};
|
|
36
|
-
},
|
|
31
|
+
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
|
37
32
|
methods: {
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
getPTOptions(key) {
|
|
34
|
+
return this.ptm(key, {
|
|
35
|
+
context: {
|
|
36
|
+
checked: this.checked,
|
|
37
|
+
disabled: this.disabled
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
onChange(event) {
|
|
42
|
+
if (!this.disabled && !this.readonly) {
|
|
40
43
|
const newValue = this.checked ? this.falseValue : this.trueValue;
|
|
41
44
|
|
|
42
|
-
this.$emit('click', event);
|
|
43
45
|
this.$emit('update:modelValue', newValue);
|
|
44
46
|
this.$emit('change', event);
|
|
45
|
-
this.$emit('input', newValue);
|
|
46
|
-
this.$refs.input.focus();
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
onFocus(event) {
|
|
50
|
-
this.focused = true;
|
|
51
50
|
this.$emit('focus', event);
|
|
52
51
|
},
|
|
53
52
|
onBlur(event) {
|
|
54
|
-
this.focused = false;
|
|
55
53
|
this.$emit('blur', event);
|
|
56
54
|
}
|
|
57
55
|
},
|
|
@@ -29,6 +29,14 @@ var script$1 = {
|
|
|
29
29
|
type: Boolean,
|
|
30
30
|
"default": false
|
|
31
31
|
},
|
|
32
|
+
readonly: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
36
|
+
tabindex: {
|
|
37
|
+
type: Number,
|
|
38
|
+
"default": null
|
|
39
|
+
},
|
|
32
40
|
inputId: {
|
|
33
41
|
type: String,
|
|
34
42
|
"default": null
|
|
@@ -41,10 +49,6 @@ var script$1 = {
|
|
|
41
49
|
type: Object,
|
|
42
50
|
"default": null
|
|
43
51
|
},
|
|
44
|
-
inputProps: {
|
|
45
|
-
type: null,
|
|
46
|
-
"default": null
|
|
47
|
-
},
|
|
48
52
|
ariaLabelledby: {
|
|
49
53
|
type: String,
|
|
50
54
|
"default": null
|
|
@@ -65,29 +69,27 @@ var script$1 = {
|
|
|
65
69
|
var script = {
|
|
66
70
|
name: 'InputSwitch',
|
|
67
71
|
"extends": script$1,
|
|
68
|
-
emits: ['
|
|
69
|
-
data: function data() {
|
|
70
|
-
return {
|
|
71
|
-
focused: false
|
|
72
|
-
};
|
|
73
|
-
},
|
|
72
|
+
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
|
74
73
|
methods: {
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
getPTOptions: function getPTOptions(key) {
|
|
75
|
+
return this.ptm(key, {
|
|
76
|
+
context: {
|
|
77
|
+
checked: this.checked,
|
|
78
|
+
disabled: this.disabled
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
onChange: function onChange(event) {
|
|
83
|
+
if (!this.disabled && !this.readonly) {
|
|
77
84
|
var newValue = this.checked ? this.falseValue : this.trueValue;
|
|
78
|
-
this.$emit('click', event);
|
|
79
85
|
this.$emit('update:modelValue', newValue);
|
|
80
86
|
this.$emit('change', event);
|
|
81
|
-
this.$emit('input', newValue);
|
|
82
|
-
this.$refs.input.focus();
|
|
83
87
|
}
|
|
84
88
|
},
|
|
85
89
|
onFocus: function onFocus(event) {
|
|
86
|
-
this.focused = true;
|
|
87
90
|
this.$emit('focus', event);
|
|
88
91
|
},
|
|
89
92
|
onBlur: function onBlur(event) {
|
|
90
|
-
this.focused = false;
|
|
91
93
|
this.$emit('blur', event);
|
|
92
94
|
}
|
|
93
95
|
},
|
|
@@ -98,47 +100,41 @@ var script = {
|
|
|
98
100
|
}
|
|
99
101
|
};
|
|
100
102
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
104
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
105
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
106
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
107
|
-
var _hoisted_1 = ["id", "checked", "disabled", "aria-checked", "aria-labelledby", "aria-label"];
|
|
103
|
+
var _hoisted_1 = ["data-p-highlight", "data-p-disabled"];
|
|
104
|
+
var _hoisted_2 = ["id", "checked", "tabindex", "disabled", "readonly", "aria-checked", "aria-labelledby", "aria-label"];
|
|
108
105
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
109
106
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
110
107
|
"class": _ctx.cx('root'),
|
|
111
|
-
style: _ctx.sx('root')
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"data-pc-name": "inputswitch"
|
|
117
|
-
}), [vue.createElementVNode("div", vue.mergeProps({
|
|
118
|
-
"class": "p-hidden-accessible"
|
|
119
|
-
}, _ctx.ptm('hiddenInputWrapper'), {
|
|
120
|
-
"data-p-hidden-accessible": true
|
|
108
|
+
style: _ctx.sx('root')
|
|
109
|
+
}, $options.getPTOptions('root'), {
|
|
110
|
+
"data-pc-name": "inputswitch",
|
|
111
|
+
"data-p-highlight": $options.checked,
|
|
112
|
+
"data-p-disabled": _ctx.disabled
|
|
121
113
|
}), [vue.createElementVNode("input", vue.mergeProps({
|
|
122
|
-
ref: "input",
|
|
123
114
|
id: _ctx.inputId,
|
|
124
115
|
type: "checkbox",
|
|
125
116
|
role: "switch",
|
|
126
|
-
"class": _ctx.inputClass,
|
|
117
|
+
"class": [_ctx.cx('input'), _ctx.inputClass],
|
|
127
118
|
style: _ctx.inputStyle,
|
|
128
119
|
checked: $options.checked,
|
|
120
|
+
tabindex: _ctx.tabindex,
|
|
129
121
|
disabled: _ctx.disabled,
|
|
122
|
+
readonly: _ctx.readonly,
|
|
130
123
|
"aria-checked": $options.checked,
|
|
131
124
|
"aria-labelledby": _ctx.ariaLabelledby,
|
|
132
125
|
"aria-label": _ctx.ariaLabel,
|
|
133
|
-
onFocus: _cache[0] || (_cache[0] = function (
|
|
134
|
-
return $options.onFocus($
|
|
126
|
+
onFocus: _cache[0] || (_cache[0] = function () {
|
|
127
|
+
return $options.onFocus && $options.onFocus.apply($options, arguments);
|
|
128
|
+
}),
|
|
129
|
+
onBlur: _cache[1] || (_cache[1] = function () {
|
|
130
|
+
return $options.onBlur && $options.onBlur.apply($options, arguments);
|
|
135
131
|
}),
|
|
136
|
-
|
|
137
|
-
return $options.
|
|
132
|
+
onChange: _cache[2] || (_cache[2] = function () {
|
|
133
|
+
return $options.onChange && $options.onChange.apply($options, arguments);
|
|
138
134
|
})
|
|
139
|
-
},
|
|
135
|
+
}, $options.getPTOptions('input')), null, 16, _hoisted_2), vue.createElementVNode("span", vue.mergeProps({
|
|
140
136
|
"class": _ctx.cx('slider')
|
|
141
|
-
},
|
|
137
|
+
}, $options.getPTOptions('slider')), null, 16)], 16, _hoisted_1);
|
|
142
138
|
}
|
|
143
139
|
|
|
144
140
|
script.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/basecomponent"),t=require("primevue/inputswitch/style"),
|
|
1
|
+
"use strict";var e=require("primevue/basecomponent"),t=require("primevue/inputswitch/style"),l=require("vue");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n={name:"InputSwitch",extends:{name:"BaseInputSwitch",extends:a(e).default,props:{modelValue:{type:null,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a(t).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){return this.ptm(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){this.disabled||this.readonly||(this.$emit("update:modelValue",this.checked?this.falseValue:this.trueValue),this.$emit("change",e))},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.modelValue===this.trueValue}}},i=["data-p-highlight","data-p-disabled"],u=["id","checked","tabindex","disabled","readonly","aria-checked","aria-labelledby","aria-label"];n.render=function(e,t,a,n,d,r){return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:e.cx("root"),style:e.sx("root")},r.getPTOptions("root"),{"data-pc-name":"inputswitch","data-p-highlight":r.checked,"data-p-disabled":e.disabled}),[l.createElementVNode("input",l.mergeProps({id:e.inputId,type:"checkbox",role:"switch",class:[e.cx("input"),e.inputClass],style:e.inputStyle,checked:r.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,"aria-checked":r.checked,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(){return r.onFocus&&r.onFocus.apply(r,arguments)}),onBlur:t[1]||(t[1]=function(){return r.onBlur&&r.onBlur.apply(r,arguments)}),onChange:t[2]||(t[2]=function(){return r.onChange&&r.onChange.apply(r,arguments)})},r.getPTOptions("input")),null,16,u),l.createElementVNode("span",l.mergeProps({class:e.cx("slider")},r.getPTOptions("slider")),null,16)],16,i)},module.exports=n;
|
|
@@ -22,6 +22,14 @@ var script$1 = {
|
|
|
22
22
|
type: Boolean,
|
|
23
23
|
"default": false
|
|
24
24
|
},
|
|
25
|
+
readonly: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
tabindex: {
|
|
30
|
+
type: Number,
|
|
31
|
+
"default": null
|
|
32
|
+
},
|
|
25
33
|
inputId: {
|
|
26
34
|
type: String,
|
|
27
35
|
"default": null
|
|
@@ -34,10 +42,6 @@ var script$1 = {
|
|
|
34
42
|
type: Object,
|
|
35
43
|
"default": null
|
|
36
44
|
},
|
|
37
|
-
inputProps: {
|
|
38
|
-
type: null,
|
|
39
|
-
"default": null
|
|
40
|
-
},
|
|
41
45
|
ariaLabelledby: {
|
|
42
46
|
type: String,
|
|
43
47
|
"default": null
|
|
@@ -58,29 +62,27 @@ var script$1 = {
|
|
|
58
62
|
var script = {
|
|
59
63
|
name: 'InputSwitch',
|
|
60
64
|
"extends": script$1,
|
|
61
|
-
emits: ['
|
|
62
|
-
data: function data() {
|
|
63
|
-
return {
|
|
64
|
-
focused: false
|
|
65
|
-
};
|
|
66
|
-
},
|
|
65
|
+
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
|
67
66
|
methods: {
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
getPTOptions: function getPTOptions(key) {
|
|
68
|
+
return this.ptm(key, {
|
|
69
|
+
context: {
|
|
70
|
+
checked: this.checked,
|
|
71
|
+
disabled: this.disabled
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
onChange: function onChange(event) {
|
|
76
|
+
if (!this.disabled && !this.readonly) {
|
|
70
77
|
var newValue = this.checked ? this.falseValue : this.trueValue;
|
|
71
|
-
this.$emit('click', event);
|
|
72
78
|
this.$emit('update:modelValue', newValue);
|
|
73
79
|
this.$emit('change', event);
|
|
74
|
-
this.$emit('input', newValue);
|
|
75
|
-
this.$refs.input.focus();
|
|
76
80
|
}
|
|
77
81
|
},
|
|
78
82
|
onFocus: function onFocus(event) {
|
|
79
|
-
this.focused = true;
|
|
80
83
|
this.$emit('focus', event);
|
|
81
84
|
},
|
|
82
85
|
onBlur: function onBlur(event) {
|
|
83
|
-
this.focused = false;
|
|
84
86
|
this.$emit('blur', event);
|
|
85
87
|
}
|
|
86
88
|
},
|
|
@@ -91,47 +93,41 @@ var script = {
|
|
|
91
93
|
}
|
|
92
94
|
};
|
|
93
95
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
97
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
98
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
99
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
100
|
-
var _hoisted_1 = ["id", "checked", "disabled", "aria-checked", "aria-labelledby", "aria-label"];
|
|
96
|
+
var _hoisted_1 = ["data-p-highlight", "data-p-disabled"];
|
|
97
|
+
var _hoisted_2 = ["id", "checked", "tabindex", "disabled", "readonly", "aria-checked", "aria-labelledby", "aria-label"];
|
|
101
98
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
102
99
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
103
100
|
"class": _ctx.cx('root'),
|
|
104
|
-
style: _ctx.sx('root')
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"data-pc-name": "inputswitch"
|
|
110
|
-
}), [createElementVNode("div", mergeProps({
|
|
111
|
-
"class": "p-hidden-accessible"
|
|
112
|
-
}, _ctx.ptm('hiddenInputWrapper'), {
|
|
113
|
-
"data-p-hidden-accessible": true
|
|
101
|
+
style: _ctx.sx('root')
|
|
102
|
+
}, $options.getPTOptions('root'), {
|
|
103
|
+
"data-pc-name": "inputswitch",
|
|
104
|
+
"data-p-highlight": $options.checked,
|
|
105
|
+
"data-p-disabled": _ctx.disabled
|
|
114
106
|
}), [createElementVNode("input", mergeProps({
|
|
115
|
-
ref: "input",
|
|
116
107
|
id: _ctx.inputId,
|
|
117
108
|
type: "checkbox",
|
|
118
109
|
role: "switch",
|
|
119
|
-
"class": _ctx.inputClass,
|
|
110
|
+
"class": [_ctx.cx('input'), _ctx.inputClass],
|
|
120
111
|
style: _ctx.inputStyle,
|
|
121
112
|
checked: $options.checked,
|
|
113
|
+
tabindex: _ctx.tabindex,
|
|
122
114
|
disabled: _ctx.disabled,
|
|
115
|
+
readonly: _ctx.readonly,
|
|
123
116
|
"aria-checked": $options.checked,
|
|
124
117
|
"aria-labelledby": _ctx.ariaLabelledby,
|
|
125
118
|
"aria-label": _ctx.ariaLabel,
|
|
126
|
-
onFocus: _cache[0] || (_cache[0] = function (
|
|
127
|
-
return $options.onFocus($
|
|
119
|
+
onFocus: _cache[0] || (_cache[0] = function () {
|
|
120
|
+
return $options.onFocus && $options.onFocus.apply($options, arguments);
|
|
121
|
+
}),
|
|
122
|
+
onBlur: _cache[1] || (_cache[1] = function () {
|
|
123
|
+
return $options.onBlur && $options.onBlur.apply($options, arguments);
|
|
128
124
|
}),
|
|
129
|
-
|
|
130
|
-
return $options.
|
|
125
|
+
onChange: _cache[2] || (_cache[2] = function () {
|
|
126
|
+
return $options.onChange && $options.onChange.apply($options, arguments);
|
|
131
127
|
})
|
|
132
|
-
},
|
|
128
|
+
}, $options.getPTOptions('input')), null, 16, _hoisted_2), createElementVNode("span", mergeProps({
|
|
133
129
|
"class": _ctx.cx('slider')
|
|
134
|
-
},
|
|
130
|
+
}, $options.getPTOptions('slider')), null, 16)], 16, _hoisted_1);
|
|
135
131
|
}
|
|
136
132
|
|
|
137
133
|
script.render = render;
|