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
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
2
|
+
import MeterGroupStyle from 'primevue/metergroup/style';
|
|
3
|
+
import { openBlock, createElementBlock, mergeProps, Fragment, renderList, renderSlot, normalizeClass, createElementVNode, toDisplayString, resolveComponent, createVNode, createCommentVNode } from 'vue';
|
|
4
|
+
|
|
5
|
+
var script$2 = {
|
|
6
|
+
name: 'MeterGroup',
|
|
7
|
+
"extends": BaseComponent,
|
|
8
|
+
props: {
|
|
9
|
+
value: {
|
|
10
|
+
type: Array,
|
|
11
|
+
"default": null
|
|
12
|
+
},
|
|
13
|
+
min: {
|
|
14
|
+
type: Number,
|
|
15
|
+
"default": 0
|
|
16
|
+
},
|
|
17
|
+
max: {
|
|
18
|
+
type: Number,
|
|
19
|
+
"default": 100
|
|
20
|
+
},
|
|
21
|
+
orientation: {
|
|
22
|
+
type: String,
|
|
23
|
+
"default": 'horizontal'
|
|
24
|
+
},
|
|
25
|
+
labelPosition: {
|
|
26
|
+
type: String,
|
|
27
|
+
"default": 'end'
|
|
28
|
+
},
|
|
29
|
+
labelOrientation: {
|
|
30
|
+
type: String,
|
|
31
|
+
"default": 'horizontal'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
style: MeterGroupStyle,
|
|
35
|
+
provide: function provide() {
|
|
36
|
+
return {
|
|
37
|
+
$parentInstance: this
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var script$1 = {
|
|
43
|
+
name: 'MeterGroupLabel',
|
|
44
|
+
hostName: 'MeterGroup',
|
|
45
|
+
"extends": BaseComponent,
|
|
46
|
+
inheritAttrs: false,
|
|
47
|
+
props: {
|
|
48
|
+
value: {
|
|
49
|
+
type: Array,
|
|
50
|
+
"default": null
|
|
51
|
+
},
|
|
52
|
+
labelPosition: {
|
|
53
|
+
type: String,
|
|
54
|
+
"default": 'end'
|
|
55
|
+
},
|
|
56
|
+
labelOrientation: {
|
|
57
|
+
type: String,
|
|
58
|
+
"default": 'horizontal'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
64
|
+
return openBlock(), createElementBlock("ol", mergeProps({
|
|
65
|
+
"class": _ctx.cx('labellist')
|
|
66
|
+
}, _ctx.ptm('labellist')), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.value, function (val, index) {
|
|
67
|
+
return openBlock(), createElementBlock("li", mergeProps({
|
|
68
|
+
key: index + '_label',
|
|
69
|
+
"class": _ctx.cx('labellistitem')
|
|
70
|
+
}, _ctx.ptm('labellistitem')), [renderSlot(_ctx.$slots, "icon", {
|
|
71
|
+
value: val,
|
|
72
|
+
"class": normalizeClass(_ctx.cx('labelicon'))
|
|
73
|
+
}, function () {
|
|
74
|
+
return [val.icon ? (openBlock(), createElementBlock("i", mergeProps({
|
|
75
|
+
key: 0,
|
|
76
|
+
"class": [val.icon, _ctx.cx('labelicon')],
|
|
77
|
+
style: {
|
|
78
|
+
color: val.color
|
|
79
|
+
}
|
|
80
|
+
}, _ctx.ptm('labelicon')), null, 16)) : (openBlock(), createElementBlock("span", mergeProps({
|
|
81
|
+
key: 1,
|
|
82
|
+
"class": _ctx.cx('labellisttype'),
|
|
83
|
+
style: {
|
|
84
|
+
backgroundColor: val.color
|
|
85
|
+
}
|
|
86
|
+
}, _ctx.ptm('labellisttype')), null, 16))];
|
|
87
|
+
}), createElementVNode("span", mergeProps({
|
|
88
|
+
"class": _ctx.cx('label')
|
|
89
|
+
}, _ctx.ptm('label')), toDisplayString(val.label) + " (" + toDisplayString(_ctx.$parentInstance.percentValue(val.value)) + ")", 17)], 16);
|
|
90
|
+
}), 128))], 16);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
script$1.render = render$1;
|
|
94
|
+
|
|
95
|
+
var script = {
|
|
96
|
+
name: 'MeterGroup',
|
|
97
|
+
"extends": script$2,
|
|
98
|
+
methods: {
|
|
99
|
+
getPTOptions: function getPTOptions(key, value, index) {
|
|
100
|
+
return this.ptm(key, {
|
|
101
|
+
context: {
|
|
102
|
+
value: value,
|
|
103
|
+
index: index
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
percent: function percent() {
|
|
108
|
+
var meter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
109
|
+
var percentOfItem = (meter - this.min) / (this.max - this.min) * 100;
|
|
110
|
+
return Math.round(Math.max(0, Math.min(100, percentOfItem)));
|
|
111
|
+
},
|
|
112
|
+
percentValue: function percentValue(meter) {
|
|
113
|
+
return this.percent(meter) + '%';
|
|
114
|
+
},
|
|
115
|
+
meterSize: function meterSize(val) {
|
|
116
|
+
return {
|
|
117
|
+
backgroundColor: val.color,
|
|
118
|
+
width: this.orientation === 'horizontal' && this.percentValue(val.value),
|
|
119
|
+
height: this.orientation === 'vertical' && this.percentValue(val.value)
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
computed: {
|
|
124
|
+
totalPercent: function totalPercent() {
|
|
125
|
+
return this.percent(this.value.reduce(function (total, val) {
|
|
126
|
+
return total + val.value;
|
|
127
|
+
}, 0));
|
|
128
|
+
},
|
|
129
|
+
percentages: function percentages() {
|
|
130
|
+
var sum = 0;
|
|
131
|
+
var sumsArray = [];
|
|
132
|
+
this.value.forEach(function (item) {
|
|
133
|
+
sum += item.value;
|
|
134
|
+
sumsArray.push(sum);
|
|
135
|
+
});
|
|
136
|
+
return sumsArray;
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
components: {
|
|
140
|
+
MeterGroupLabel: script$1
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
var _hoisted_1 = ["aria-valuemin", "aria-valuemax", "aria-valuenow"];
|
|
145
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
146
|
+
var _component_MeterGroupLabel = resolveComponent("MeterGroupLabel");
|
|
147
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
148
|
+
"class": _ctx.cx('root'),
|
|
149
|
+
role: "meter",
|
|
150
|
+
"aria-valuemin": _ctx.min,
|
|
151
|
+
"aria-valuemax": _ctx.max,
|
|
152
|
+
"aria-valuenow": $options.totalPercent
|
|
153
|
+
}, _ctx.ptm('root'), {
|
|
154
|
+
"data-pc-name": "metergroup"
|
|
155
|
+
}), [_ctx.labelPosition === 'start' ? renderSlot(_ctx.$slots, "label", {
|
|
156
|
+
key: 0,
|
|
157
|
+
value: _ctx.value,
|
|
158
|
+
totalPercent: $options.totalPercent,
|
|
159
|
+
percentages: $options.percentages
|
|
160
|
+
}, function () {
|
|
161
|
+
return [createVNode(_component_MeterGroupLabel, {
|
|
162
|
+
value: _ctx.value,
|
|
163
|
+
labelPosition: _ctx.labelPosition,
|
|
164
|
+
labelOrientation: _ctx.labelOrientation,
|
|
165
|
+
unstyled: _ctx.unstyled,
|
|
166
|
+
pt: _ctx.pt
|
|
167
|
+
}, null, 8, ["value", "labelPosition", "labelOrientation", "unstyled", "pt"])];
|
|
168
|
+
}) : createCommentVNode("", true), renderSlot(_ctx.$slots, "start", {
|
|
169
|
+
value: _ctx.value,
|
|
170
|
+
totalPercent: $options.totalPercent,
|
|
171
|
+
percentages: $options.percentages
|
|
172
|
+
}), createElementVNode("div", mergeProps({
|
|
173
|
+
"class": _ctx.cx('metercontainer')
|
|
174
|
+
}, _ctx.ptm('metercontainer')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.value, function (val, index) {
|
|
175
|
+
return renderSlot(_ctx.$slots, "meter", {
|
|
176
|
+
key: index,
|
|
177
|
+
value: val,
|
|
178
|
+
index: index,
|
|
179
|
+
"class": normalizeClass(_ctx.cx('meter')),
|
|
180
|
+
orientation: _ctx.orientation,
|
|
181
|
+
size: $options.percentValue(val.value),
|
|
182
|
+
totalPercent: $options.totalPercent
|
|
183
|
+
}, function () {
|
|
184
|
+
return [createElementVNode("span", mergeProps({
|
|
185
|
+
"class": _ctx.cx('meter'),
|
|
186
|
+
style: $options.meterSize(val)
|
|
187
|
+
}, $options.getPTOptions('meter', val, index)), null, 16)];
|
|
188
|
+
});
|
|
189
|
+
}), 128))], 16), renderSlot(_ctx.$slots, "end", {
|
|
190
|
+
value: _ctx.value,
|
|
191
|
+
totalPercent: $options.totalPercent,
|
|
192
|
+
percentages: $options.percentages
|
|
193
|
+
}), _ctx.labelPosition === 'end' ? renderSlot(_ctx.$slots, "label", {
|
|
194
|
+
key: 1,
|
|
195
|
+
value: _ctx.value,
|
|
196
|
+
totalPercent: $options.totalPercent,
|
|
197
|
+
percentages: $options.percentages
|
|
198
|
+
}, function () {
|
|
199
|
+
return [createVNode(_component_MeterGroupLabel, {
|
|
200
|
+
value: _ctx.value,
|
|
201
|
+
labelPosition: _ctx.labelPosition,
|
|
202
|
+
labelOrientation: _ctx.labelOrientation,
|
|
203
|
+
unstyled: _ctx.unstyled,
|
|
204
|
+
pt: _ctx.pt
|
|
205
|
+
}, null, 8, ["value", "labelPosition", "labelOrientation", "unstyled", "pt"])];
|
|
206
|
+
}) : createCommentVNode("", true)], 16, _hoisted_1);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
script.render = render;
|
|
210
|
+
|
|
211
|
+
export { script as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"primevue/basecomponent";import t from"primevue/metergroup/style";import{openBlock as l,createElementBlock as n,mergeProps as a,Fragment as r,renderList as o,renderSlot as i,normalizeClass as u,createElementVNode as s,toDisplayString as c,resolveComponent as p,createVNode as m,createCommentVNode as v}from"vue";var b={name:"MeterGroup",extends:e,props:{value:{type:Array,default:null},min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},labelPosition:{type:String,default:"end"},labelOrientation:{type:String,default:"horizontal"}},style:t,provide:function(){return{$parentInstance:this}}},d={name:"MeterGroupLabel",hostName:"MeterGroup",extends:e,inheritAttrs:!1,props:{value:{type:Array,default:null},labelPosition:{type:String,default:"end"},labelOrientation:{type:String,default:"horizontal"}}};d.render=function(e,t,p,m,v,b){return l(),n("ol",a({class:e.cx("labellist")},e.ptm("labellist")),[(l(!0),n(r,null,o(p.value,(function(t,r){return l(),n("li",a({key:r+"_label",class:e.cx("labellistitem")},e.ptm("labellistitem")),[i(e.$slots,"icon",{value:t,class:u(e.cx("labelicon"))},(function(){return[t.icon?(l(),n("i",a({key:0,class:[t.icon,e.cx("labelicon")],style:{color:t.color}},e.ptm("labelicon")),null,16)):(l(),n("span",a({key:1,class:e.cx("labellisttype"),style:{backgroundColor:t.color}},e.ptm("labellisttype")),null,16))]})),s("span",a({class:e.cx("label")},e.ptm("label")),c(t.label)+" ("+c(e.$parentInstance.percentValue(t.value))+")",17)],16)})),128))],16)};var f={name:"MeterGroup",extends:b,methods:{getPTOptions:function(e,t,l){return this.ptm(e,{context:{value:t,index:l}})},percent:function(){return Math.round(Math.max(0,Math.min(100,((arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)-this.min)/(this.max-this.min)*100)))},percentValue:function(e){return this.percent(e)+"%"},meterSize:function(e){return{backgroundColor:e.color,width:"horizontal"===this.orientation&&this.percentValue(e.value),height:"vertical"===this.orientation&&this.percentValue(e.value)}}},computed:{totalPercent:function(){return this.percent(this.value.reduce((function(e,t){return e+t.value}),0))},percentages:function(){var e=0,t=[];return this.value.forEach((function(l){t.push(e+=l.value)})),t}},components:{MeterGroupLabel:d}},y=["aria-valuemin","aria-valuemax","aria-valuenow"];f.render=function(e,t,c,b,d,f){var h=p("MeterGroupLabel");return l(),n("div",a({class:e.cx("root"),role:"meter","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":f.totalPercent},e.ptm("root"),{"data-pc-name":"metergroup"}),["start"===e.labelPosition?i(e.$slots,"label",{key:0,value:e.value,totalPercent:f.totalPercent,percentages:f.percentages},(function(){return[m(h,{value:e.value,labelPosition:e.labelPosition,labelOrientation:e.labelOrientation,unstyled:e.unstyled,pt:e.pt},null,8,["value","labelPosition","labelOrientation","unstyled","pt"])]})):v("",!0),i(e.$slots,"start",{value:e.value,totalPercent:f.totalPercent,percentages:f.percentages}),s("div",a({class:e.cx("metercontainer")},e.ptm("metercontainer")),[(l(!0),n(r,null,o(e.value,(function(t,l){return i(e.$slots,"meter",{key:l,value:t,index:l,class:u(e.cx("meter")),orientation:e.orientation,size:f.percentValue(t.value),totalPercent:f.totalPercent},(function(){return[s("span",a({class:e.cx("meter"),style:f.meterSize(t)},f.getPTOptions("meter",t,l)),null,16)]}))})),128))],16),i(e.$slots,"end",{value:e.value,totalPercent:f.totalPercent,percentages:f.percentages}),"end"===e.labelPosition?i(e.$slots,"label",{key:1,value:e.value,totalPercent:f.totalPercent,percentages:f.percentages},(function(){return[m(h,{value:e.value,labelPosition:e.labelPosition,labelOrientation:e.labelOrientation,unstyled:e.unstyled,pt:e.pt},null,8,["value","labelPosition","labelOrientation","unstyled","pt"])]})):v("",!0)],16,y)};export{f as default};
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
this.primevue = this.primevue || {};
|
|
2
|
+
this.primevue.metergroup = (function (BaseComponent, MeterGroupStyle, vue) {
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
|
+
|
|
7
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
8
|
+
var MeterGroupStyle__default = /*#__PURE__*/_interopDefaultLegacy(MeterGroupStyle);
|
|
9
|
+
|
|
10
|
+
var script$2 = {
|
|
11
|
+
name: 'MeterGroup',
|
|
12
|
+
"extends": BaseComponent__default["default"],
|
|
13
|
+
props: {
|
|
14
|
+
value: {
|
|
15
|
+
type: Array,
|
|
16
|
+
"default": null
|
|
17
|
+
},
|
|
18
|
+
min: {
|
|
19
|
+
type: Number,
|
|
20
|
+
"default": 0
|
|
21
|
+
},
|
|
22
|
+
max: {
|
|
23
|
+
type: Number,
|
|
24
|
+
"default": 100
|
|
25
|
+
},
|
|
26
|
+
orientation: {
|
|
27
|
+
type: String,
|
|
28
|
+
"default": 'horizontal'
|
|
29
|
+
},
|
|
30
|
+
labelPosition: {
|
|
31
|
+
type: String,
|
|
32
|
+
"default": 'end'
|
|
33
|
+
},
|
|
34
|
+
labelOrientation: {
|
|
35
|
+
type: String,
|
|
36
|
+
"default": 'horizontal'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
style: MeterGroupStyle__default["default"],
|
|
40
|
+
provide: function provide() {
|
|
41
|
+
return {
|
|
42
|
+
$parentInstance: this
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
var script$1 = {
|
|
48
|
+
name: 'MeterGroupLabel',
|
|
49
|
+
hostName: 'MeterGroup',
|
|
50
|
+
"extends": BaseComponent__default["default"],
|
|
51
|
+
inheritAttrs: false,
|
|
52
|
+
props: {
|
|
53
|
+
value: {
|
|
54
|
+
type: Array,
|
|
55
|
+
"default": null
|
|
56
|
+
},
|
|
57
|
+
labelPosition: {
|
|
58
|
+
type: String,
|
|
59
|
+
"default": 'end'
|
|
60
|
+
},
|
|
61
|
+
labelOrientation: {
|
|
62
|
+
type: String,
|
|
63
|
+
"default": 'horizontal'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
69
|
+
return vue.openBlock(), vue.createElementBlock("ol", vue.mergeProps({
|
|
70
|
+
"class": _ctx.cx('labellist')
|
|
71
|
+
}, _ctx.ptm('labellist')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.value, function (val, index) {
|
|
72
|
+
return vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
73
|
+
key: index + '_label',
|
|
74
|
+
"class": _ctx.cx('labellistitem')
|
|
75
|
+
}, _ctx.ptm('labellistitem')), [vue.renderSlot(_ctx.$slots, "icon", {
|
|
76
|
+
value: val,
|
|
77
|
+
"class": vue.normalizeClass(_ctx.cx('labelicon'))
|
|
78
|
+
}, function () {
|
|
79
|
+
return [val.icon ? (vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
|
|
80
|
+
key: 0,
|
|
81
|
+
"class": [val.icon, _ctx.cx('labelicon')],
|
|
82
|
+
style: {
|
|
83
|
+
color: val.color
|
|
84
|
+
}
|
|
85
|
+
}, _ctx.ptm('labelicon')), null, 16)) : (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
86
|
+
key: 1,
|
|
87
|
+
"class": _ctx.cx('labellisttype'),
|
|
88
|
+
style: {
|
|
89
|
+
backgroundColor: val.color
|
|
90
|
+
}
|
|
91
|
+
}, _ctx.ptm('labellisttype')), null, 16))];
|
|
92
|
+
}), vue.createElementVNode("span", vue.mergeProps({
|
|
93
|
+
"class": _ctx.cx('label')
|
|
94
|
+
}, _ctx.ptm('label')), vue.toDisplayString(val.label) + " (" + vue.toDisplayString(_ctx.$parentInstance.percentValue(val.value)) + ")", 17)], 16);
|
|
95
|
+
}), 128))], 16);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
script$1.render = render$1;
|
|
99
|
+
|
|
100
|
+
var script = {
|
|
101
|
+
name: 'MeterGroup',
|
|
102
|
+
"extends": script$2,
|
|
103
|
+
methods: {
|
|
104
|
+
getPTOptions: function getPTOptions(key, value, index) {
|
|
105
|
+
return this.ptm(key, {
|
|
106
|
+
context: {
|
|
107
|
+
value: value,
|
|
108
|
+
index: index
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
percent: function percent() {
|
|
113
|
+
var meter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
114
|
+
var percentOfItem = (meter - this.min) / (this.max - this.min) * 100;
|
|
115
|
+
return Math.round(Math.max(0, Math.min(100, percentOfItem)));
|
|
116
|
+
},
|
|
117
|
+
percentValue: function percentValue(meter) {
|
|
118
|
+
return this.percent(meter) + '%';
|
|
119
|
+
},
|
|
120
|
+
meterSize: function meterSize(val) {
|
|
121
|
+
return {
|
|
122
|
+
backgroundColor: val.color,
|
|
123
|
+
width: this.orientation === 'horizontal' && this.percentValue(val.value),
|
|
124
|
+
height: this.orientation === 'vertical' && this.percentValue(val.value)
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
computed: {
|
|
129
|
+
totalPercent: function totalPercent() {
|
|
130
|
+
return this.percent(this.value.reduce(function (total, val) {
|
|
131
|
+
return total + val.value;
|
|
132
|
+
}, 0));
|
|
133
|
+
},
|
|
134
|
+
percentages: function percentages() {
|
|
135
|
+
var sum = 0;
|
|
136
|
+
var sumsArray = [];
|
|
137
|
+
this.value.forEach(function (item) {
|
|
138
|
+
sum += item.value;
|
|
139
|
+
sumsArray.push(sum);
|
|
140
|
+
});
|
|
141
|
+
return sumsArray;
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
components: {
|
|
145
|
+
MeterGroupLabel: script$1
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
var _hoisted_1 = ["aria-valuemin", "aria-valuemax", "aria-valuenow"];
|
|
150
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
151
|
+
var _component_MeterGroupLabel = vue.resolveComponent("MeterGroupLabel");
|
|
152
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
153
|
+
"class": _ctx.cx('root'),
|
|
154
|
+
role: "meter",
|
|
155
|
+
"aria-valuemin": _ctx.min,
|
|
156
|
+
"aria-valuemax": _ctx.max,
|
|
157
|
+
"aria-valuenow": $options.totalPercent
|
|
158
|
+
}, _ctx.ptm('root'), {
|
|
159
|
+
"data-pc-name": "metergroup"
|
|
160
|
+
}), [_ctx.labelPosition === 'start' ? vue.renderSlot(_ctx.$slots, "label", {
|
|
161
|
+
key: 0,
|
|
162
|
+
value: _ctx.value,
|
|
163
|
+
totalPercent: $options.totalPercent,
|
|
164
|
+
percentages: $options.percentages
|
|
165
|
+
}, function () {
|
|
166
|
+
return [vue.createVNode(_component_MeterGroupLabel, {
|
|
167
|
+
value: _ctx.value,
|
|
168
|
+
labelPosition: _ctx.labelPosition,
|
|
169
|
+
labelOrientation: _ctx.labelOrientation,
|
|
170
|
+
unstyled: _ctx.unstyled,
|
|
171
|
+
pt: _ctx.pt
|
|
172
|
+
}, null, 8, ["value", "labelPosition", "labelOrientation", "unstyled", "pt"])];
|
|
173
|
+
}) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "start", {
|
|
174
|
+
value: _ctx.value,
|
|
175
|
+
totalPercent: $options.totalPercent,
|
|
176
|
+
percentages: $options.percentages
|
|
177
|
+
}), vue.createElementVNode("div", vue.mergeProps({
|
|
178
|
+
"class": _ctx.cx('metercontainer')
|
|
179
|
+
}, _ctx.ptm('metercontainer')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.value, function (val, index) {
|
|
180
|
+
return vue.renderSlot(_ctx.$slots, "meter", {
|
|
181
|
+
key: index,
|
|
182
|
+
value: val,
|
|
183
|
+
index: index,
|
|
184
|
+
"class": vue.normalizeClass(_ctx.cx('meter')),
|
|
185
|
+
orientation: _ctx.orientation,
|
|
186
|
+
size: $options.percentValue(val.value),
|
|
187
|
+
totalPercent: $options.totalPercent
|
|
188
|
+
}, function () {
|
|
189
|
+
return [vue.createElementVNode("span", vue.mergeProps({
|
|
190
|
+
"class": _ctx.cx('meter'),
|
|
191
|
+
style: $options.meterSize(val)
|
|
192
|
+
}, $options.getPTOptions('meter', val, index)), null, 16)];
|
|
193
|
+
});
|
|
194
|
+
}), 128))], 16), vue.renderSlot(_ctx.$slots, "end", {
|
|
195
|
+
value: _ctx.value,
|
|
196
|
+
totalPercent: $options.totalPercent,
|
|
197
|
+
percentages: $options.percentages
|
|
198
|
+
}), _ctx.labelPosition === 'end' ? vue.renderSlot(_ctx.$slots, "label", {
|
|
199
|
+
key: 1,
|
|
200
|
+
value: _ctx.value,
|
|
201
|
+
totalPercent: $options.totalPercent,
|
|
202
|
+
percentages: $options.percentages
|
|
203
|
+
}, function () {
|
|
204
|
+
return [vue.createVNode(_component_MeterGroupLabel, {
|
|
205
|
+
value: _ctx.value,
|
|
206
|
+
labelPosition: _ctx.labelPosition,
|
|
207
|
+
labelOrientation: _ctx.labelOrientation,
|
|
208
|
+
unstyled: _ctx.unstyled,
|
|
209
|
+
pt: _ctx.pt
|
|
210
|
+
}, null, 8, ["value", "labelPosition", "labelOrientation", "unstyled", "pt"])];
|
|
211
|
+
}) : vue.createCommentVNode("", true)], 16, _hoisted_1);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
script.render = render;
|
|
215
|
+
|
|
216
|
+
return script;
|
|
217
|
+
|
|
218
|
+
})(primevue.basecomponent, primevue.metergroup.style, Vue);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.metergroup=function(e,t,l){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e),a={name:"MeterGroup",extends:r.default,props:{value:{type:Array,default:null},min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},labelPosition:{type:String,default:"end"},labelOrientation:{type:String,default:"horizontal"}},style:n(t).default,provide:function(){return{$parentInstance:this}}},o={name:"MeterGroupLabel",hostName:"MeterGroup",extends:r.default,inheritAttrs:!1,props:{value:{type:Array,default:null},labelPosition:{type:String,default:"end"},labelOrientation:{type:String,default:"horizontal"}}};o.render=function(e,t,n,r,a,o){return l.openBlock(),l.createElementBlock("ol",l.mergeProps({class:e.cx("labellist")},e.ptm("labellist")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,(function(t,n){return l.openBlock(),l.createElementBlock("li",l.mergeProps({key:n+"_label",class:e.cx("labellistitem")},e.ptm("labellistitem")),[l.renderSlot(e.$slots,"icon",{value:t,class:l.normalizeClass(e.cx("labelicon"))},(function(){return[t.icon?(l.openBlock(),l.createElementBlock("i",l.mergeProps({key:0,class:[t.icon,e.cx("labelicon")],style:{color:t.color}},e.ptm("labelicon")),null,16)):(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:1,class:e.cx("labellisttype"),style:{backgroundColor:t.color}},e.ptm("labellisttype")),null,16))]})),l.createElementVNode("span",l.mergeProps({class:e.cx("label")},e.ptm("label")),l.toDisplayString(t.label)+" ("+l.toDisplayString(e.$parentInstance.percentValue(t.value))+")",17)],16)})),128))],16)};var i={name:"MeterGroup",extends:a,methods:{getPTOptions:function(e,t,l){return this.ptm(e,{context:{value:t,index:l}})},percent:function(){return Math.round(Math.max(0,Math.min(100,((arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)-this.min)/(this.max-this.min)*100)))},percentValue:function(e){return this.percent(e)+"%"},meterSize:function(e){return{backgroundColor:e.color,width:"horizontal"===this.orientation&&this.percentValue(e.value),height:"vertical"===this.orientation&&this.percentValue(e.value)}}},computed:{totalPercent:function(){return this.percent(this.value.reduce((function(e,t){return e+t.value}),0))},percentages:function(){var e=0,t=[];return this.value.forEach((function(l){t.push(e+=l.value)})),t}},components:{MeterGroupLabel:o}},u=["aria-valuemin","aria-valuemax","aria-valuenow"];return i.render=function(e,t,n,r,a,o){var i=l.resolveComponent("MeterGroupLabel");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:e.cx("root"),role:"meter","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":o.totalPercent},e.ptm("root"),{"data-pc-name":"metergroup"}),["start"===e.labelPosition?l.renderSlot(e.$slots,"label",{key:0,value:e.value,totalPercent:o.totalPercent,percentages:o.percentages},(function(){return[l.createVNode(i,{value:e.value,labelPosition:e.labelPosition,labelOrientation:e.labelOrientation,unstyled:e.unstyled,pt:e.pt},null,8,["value","labelPosition","labelOrientation","unstyled","pt"])]})):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"start",{value:e.value,totalPercent:o.totalPercent,percentages:o.percentages}),l.createElementVNode("div",l.mergeProps({class:e.cx("metercontainer")},e.ptm("metercontainer")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.value,(function(t,n){return l.renderSlot(e.$slots,"meter",{key:n,value:t,index:n,class:l.normalizeClass(e.cx("meter")),orientation:e.orientation,size:o.percentValue(t.value),totalPercent:o.totalPercent},(function(){return[l.createElementVNode("span",l.mergeProps({class:e.cx("meter"),style:o.meterSize(t)},o.getPTOptions("meter",t,n)),null,16)]}))})),128))],16),l.renderSlot(e.$slots,"end",{value:e.value,totalPercent:o.totalPercent,percentages:o.percentages}),"end"===e.labelPosition?l.renderSlot(e.$slots,"label",{key:1,value:e.value,totalPercent:o.totalPercent,percentages:o.percentages},(function(){return[l.createVNode(i,{value:e.value,labelPosition:e.labelPosition,labelOrientation:e.labelOrientation,unstyled:e.unstyled,pt:e.pt},null,8,["value","labelPosition","labelOrientation","unstyled","pt"])]})):l.createCommentVNode("",!0)],16,u)},i}(primevue.basecomponent,primevue.metergroup.style,Vue);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var BaseStyle = require('primevue/base/style');
|
|
4
|
+
|
|
5
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
|
+
|
|
7
|
+
var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
|
|
8
|
+
|
|
9
|
+
var css = "\n@layer primevue {\n .p-metergroup {\n position: relative;\n overflow: hidden;\n }\n\n .p-metergroup-vertical.p-metergroup {\n display: flex;\n }\n\n .p-metergroup-vertical .p-metergroup-meter-container {\n flex-direction: column;\n }\n\n .p-metergroup-meter-container {\n display: flex;\n }\n\n .p-metergroup-label-list {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list {\n align-items: start;\n }\n\n .p-metergroup-horizontal .p-metergroup-label-list-vertical {\n flex-direction: column;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list-horizontal {\n flex-direction: column;\n }\n\n .p-metergroup-label-list-item {\n display: inline-flex;\n align-items: center;\n }\n\n .p-metergroup-label-type {\n display: inline-block;\n }\n}\n";
|
|
10
|
+
var classes = {
|
|
11
|
+
root: function root(_ref) {
|
|
12
|
+
var props = _ref.props;
|
|
13
|
+
return ['p-metergroup p-component', {
|
|
14
|
+
'p-metergroup-horizontal': props.orientation === 'horizontal',
|
|
15
|
+
'p-metergroup-vertical': props.orientation === 'vertical'
|
|
16
|
+
}];
|
|
17
|
+
},
|
|
18
|
+
metercontainer: 'p-metergroup-meter-container',
|
|
19
|
+
meter: 'p-metergroup-meter',
|
|
20
|
+
labellist: function labellist(_ref2) {
|
|
21
|
+
var props = _ref2.props;
|
|
22
|
+
return ['p-metergroup-label-list', {
|
|
23
|
+
'p-metergroup-label-list-start': props.labelPosition === 'start',
|
|
24
|
+
'p-metergroup-label-list-end': props.labelPosition === 'end',
|
|
25
|
+
'p-metergroup-label-list-vertical': props.labelOrientation === 'vertical',
|
|
26
|
+
'p-metergroup-label-list-horizontal': props.labelOrientation === 'horizontal'
|
|
27
|
+
}];
|
|
28
|
+
},
|
|
29
|
+
labellistitem: 'p-metergroup-label-list-item',
|
|
30
|
+
labelicon: 'p-metergroup-label-icon',
|
|
31
|
+
labellisttype: 'p-metergroup-label-type',
|
|
32
|
+
label: 'p-metergroup-label'
|
|
33
|
+
};
|
|
34
|
+
var MeterGroupStyle = BaseStyle__default["default"].extend({
|
|
35
|
+
name: 'metergroup',
|
|
36
|
+
css: css,
|
|
37
|
+
classes: classes
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
module.exports = MeterGroupStyle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=e(require("primevue/base/style")).default.extend({name:"metergroup",css:"\n@layer primevue {\n .p-metergroup {\n position: relative;\n overflow: hidden;\n }\n\n .p-metergroup-vertical.p-metergroup {\n display: flex;\n }\n\n .p-metergroup-vertical .p-metergroup-meter-container {\n flex-direction: column;\n }\n\n .p-metergroup-meter-container {\n display: flex;\n }\n\n .p-metergroup-label-list {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list {\n align-items: start;\n }\n\n .p-metergroup-horizontal .p-metergroup-label-list-vertical {\n flex-direction: column;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list-horizontal {\n flex-direction: column;\n }\n\n .p-metergroup-label-list-item {\n display: inline-flex;\n align-items: center;\n }\n\n .p-metergroup-label-type {\n display: inline-block;\n }\n}\n",classes:{root:function(e){var t=e.props;return["p-metergroup p-component",{"p-metergroup-horizontal":"horizontal"===t.orientation,"p-metergroup-vertical":"vertical"===t.orientation}]},metercontainer:"p-metergroup-meter-container",meter:"p-metergroup-meter",labellist:function(e){var t=e.props;return["p-metergroup-label-list",{"p-metergroup-label-list-start":"start"===t.labelPosition,"p-metergroup-label-list-end":"end"===t.labelPosition,"p-metergroup-label-list-vertical":"vertical"===t.labelOrientation,"p-metergroup-label-list-horizontal":"horizontal"===t.labelOrientation}]},labellistitem:"p-metergroup-label-list-item",labelicon:"p-metergroup-label-icon",labellisttype:"p-metergroup-label-type",label:"p-metergroup-label"}});module.exports=t;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import BaseStyle from 'primevue/base/style';
|
|
2
|
+
|
|
3
|
+
var css = "\n@layer primevue {\n .p-metergroup {\n position: relative;\n overflow: hidden;\n }\n\n .p-metergroup-vertical.p-metergroup {\n display: flex;\n }\n\n .p-metergroup-vertical .p-metergroup-meter-container {\n flex-direction: column;\n }\n\n .p-metergroup-meter-container {\n display: flex;\n }\n\n .p-metergroup-label-list {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list {\n align-items: start;\n }\n\n .p-metergroup-horizontal .p-metergroup-label-list-vertical {\n flex-direction: column;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list-horizontal {\n flex-direction: column;\n }\n\n .p-metergroup-label-list-item {\n display: inline-flex;\n align-items: center;\n }\n\n .p-metergroup-label-type {\n display: inline-block;\n }\n}\n";
|
|
4
|
+
var classes = {
|
|
5
|
+
root: function root(_ref) {
|
|
6
|
+
var props = _ref.props;
|
|
7
|
+
return ['p-metergroup p-component', {
|
|
8
|
+
'p-metergroup-horizontal': props.orientation === 'horizontal',
|
|
9
|
+
'p-metergroup-vertical': props.orientation === 'vertical'
|
|
10
|
+
}];
|
|
11
|
+
},
|
|
12
|
+
metercontainer: 'p-metergroup-meter-container',
|
|
13
|
+
meter: 'p-metergroup-meter',
|
|
14
|
+
labellist: function labellist(_ref2) {
|
|
15
|
+
var props = _ref2.props;
|
|
16
|
+
return ['p-metergroup-label-list', {
|
|
17
|
+
'p-metergroup-label-list-start': props.labelPosition === 'start',
|
|
18
|
+
'p-metergroup-label-list-end': props.labelPosition === 'end',
|
|
19
|
+
'p-metergroup-label-list-vertical': props.labelOrientation === 'vertical',
|
|
20
|
+
'p-metergroup-label-list-horizontal': props.labelOrientation === 'horizontal'
|
|
21
|
+
}];
|
|
22
|
+
},
|
|
23
|
+
labellistitem: 'p-metergroup-label-list-item',
|
|
24
|
+
labelicon: 'p-metergroup-label-icon',
|
|
25
|
+
labellisttype: 'p-metergroup-label-type',
|
|
26
|
+
label: 'p-metergroup-label'
|
|
27
|
+
};
|
|
28
|
+
var MeterGroupStyle = BaseStyle.extend({
|
|
29
|
+
name: 'metergroup',
|
|
30
|
+
css: css,
|
|
31
|
+
classes: classes
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export { MeterGroupStyle as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"primevue/base/style";var r=e.extend({name:"metergroup",css:"\n@layer primevue {\n .p-metergroup {\n position: relative;\n overflow: hidden;\n }\n\n .p-metergroup-vertical.p-metergroup {\n display: flex;\n }\n\n .p-metergroup-vertical .p-metergroup-meter-container {\n flex-direction: column;\n }\n\n .p-metergroup-meter-container {\n display: flex;\n }\n\n .p-metergroup-label-list {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list {\n align-items: start;\n }\n\n .p-metergroup-horizontal .p-metergroup-label-list-vertical {\n flex-direction: column;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list-horizontal {\n flex-direction: column;\n }\n\n .p-metergroup-label-list-item {\n display: inline-flex;\n align-items: center;\n }\n\n .p-metergroup-label-type {\n display: inline-block;\n }\n}\n",classes:{root:function(e){var r=e.props;return["p-metergroup p-component",{"p-metergroup-horizontal":"horizontal"===r.orientation,"p-metergroup-vertical":"vertical"===r.orientation}]},metercontainer:"p-metergroup-meter-container",meter:"p-metergroup-meter",labellist:function(e){var r=e.props;return["p-metergroup-label-list",{"p-metergroup-label-list-start":"start"===r.labelPosition,"p-metergroup-label-list-end":"end"===r.labelPosition,"p-metergroup-label-list-vertical":"vertical"===r.labelOrientation,"p-metergroup-label-list-horizontal":"horizontal"===r.labelOrientation}]},labellistitem:"p-metergroup-label-list-item",labelicon:"p-metergroup-label-icon",labellisttype:"p-metergroup-label-type",label:"p-metergroup-label"}});export{r as default};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
this.primevue = this.primevue || {};
|
|
2
|
+
this.primevue.metergroup = this.primevue.metergroup || {};
|
|
3
|
+
this.primevue.metergroup.style = (function (BaseStyle) {
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
+
|
|
8
|
+
var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
|
|
9
|
+
|
|
10
|
+
var css = "\n@layer primevue {\n .p-metergroup {\n position: relative;\n overflow: hidden;\n }\n\n .p-metergroup-vertical.p-metergroup {\n display: flex;\n }\n\n .p-metergroup-vertical .p-metergroup-meter-container {\n flex-direction: column;\n }\n\n .p-metergroup-meter-container {\n display: flex;\n }\n\n .p-metergroup-label-list {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list {\n align-items: start;\n }\n\n .p-metergroup-horizontal .p-metergroup-label-list-vertical {\n flex-direction: column;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list-horizontal {\n flex-direction: column;\n }\n\n .p-metergroup-label-list-item {\n display: inline-flex;\n align-items: center;\n }\n\n .p-metergroup-label-type {\n display: inline-block;\n }\n}\n";
|
|
11
|
+
var classes = {
|
|
12
|
+
root: function root(_ref) {
|
|
13
|
+
var props = _ref.props;
|
|
14
|
+
return ['p-metergroup p-component', {
|
|
15
|
+
'p-metergroup-horizontal': props.orientation === 'horizontal',
|
|
16
|
+
'p-metergroup-vertical': props.orientation === 'vertical'
|
|
17
|
+
}];
|
|
18
|
+
},
|
|
19
|
+
metercontainer: 'p-metergroup-meter-container',
|
|
20
|
+
meter: 'p-metergroup-meter',
|
|
21
|
+
labellist: function labellist(_ref2) {
|
|
22
|
+
var props = _ref2.props;
|
|
23
|
+
return ['p-metergroup-label-list', {
|
|
24
|
+
'p-metergroup-label-list-start': props.labelPosition === 'start',
|
|
25
|
+
'p-metergroup-label-list-end': props.labelPosition === 'end',
|
|
26
|
+
'p-metergroup-label-list-vertical': props.labelOrientation === 'vertical',
|
|
27
|
+
'p-metergroup-label-list-horizontal': props.labelOrientation === 'horizontal'
|
|
28
|
+
}];
|
|
29
|
+
},
|
|
30
|
+
labellistitem: 'p-metergroup-label-list-item',
|
|
31
|
+
labelicon: 'p-metergroup-label-icon',
|
|
32
|
+
labellisttype: 'p-metergroup-label-type',
|
|
33
|
+
label: 'p-metergroup-label'
|
|
34
|
+
};
|
|
35
|
+
var MeterGroupStyle = BaseStyle__default["default"].extend({
|
|
36
|
+
name: 'metergroup',
|
|
37
|
+
css: css,
|
|
38
|
+
classes: classes
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
return MeterGroupStyle;
|
|
42
|
+
|
|
43
|
+
})(primevue.base.style);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.metergroup=this.primevue.metergroup||{},this.primevue.metergroup.style=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}return t(primevue.base.style).default.extend({name:"metergroup",css:"\n@layer primevue {\n .p-metergroup {\n position: relative;\n overflow: hidden;\n }\n\n .p-metergroup-vertical.p-metergroup {\n display: flex;\n }\n\n .p-metergroup-vertical .p-metergroup-meter-container {\n flex-direction: column;\n }\n\n .p-metergroup-meter-container {\n display: flex;\n }\n\n .p-metergroup-label-list {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list {\n align-items: start;\n }\n\n .p-metergroup-horizontal .p-metergroup-label-list-vertical {\n flex-direction: column;\n }\n\n .p-metergroup-vertical .p-metergroup-label-list-horizontal {\n flex-direction: column;\n }\n\n .p-metergroup-label-list-item {\n display: inline-flex;\n align-items: center;\n }\n\n .p-metergroup-label-type {\n display: inline-block;\n }\n}\n",classes:{root:function(e){var t=e.props;return["p-metergroup p-component",{"p-metergroup-horizontal":"horizontal"===t.orientation,"p-metergroup-vertical":"vertical"===t.orientation}]},metercontainer:"p-metergroup-meter-container",meter:"p-metergroup-meter",labellist:function(e){var t=e.props;return["p-metergroup-label-list",{"p-metergroup-label-list-start":"start"===t.labelPosition,"p-metergroup-label-list-end":"end"===t.labelPosition,"p-metergroup-label-list-vertical":"vertical"===t.labelOrientation,"p-metergroup-label-list-horizontal":"horizontal"===t.labelOrientation}]},labellistitem:"p-metergroup-label-list-item",labelicon:"p-metergroup-label-icon",labellisttype:"p-metergroup-label-type",label:"p-metergroup-label"}})}();
|
|
@@ -125,12 +125,20 @@ export default {
|
|
|
125
125
|
},
|
|
126
126
|
autoOptionFocus: {
|
|
127
127
|
type: Boolean,
|
|
128
|
-
default:
|
|
128
|
+
default: false
|
|
129
129
|
},
|
|
130
130
|
autoFilterFocus: {
|
|
131
131
|
type: Boolean,
|
|
132
132
|
default: false
|
|
133
133
|
},
|
|
134
|
+
focusOnHover: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: true
|
|
137
|
+
},
|
|
138
|
+
highlightOnSelect: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
default: false
|
|
141
|
+
},
|
|
134
142
|
filterMessage: {
|
|
135
143
|
type: String,
|
|
136
144
|
default: null
|