primevue 3.41.0 → 3.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/AutoComplete.d.ts +2 -2
- package/autocomplete/BaseAutoComplete.vue +2 -2
- package/autocomplete/autocomplete.cjs.js +2 -2
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +2 -2
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +2 -2
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +2 -2
- package/avatar/BaseAvatar.vue +2 -2
- package/avatar/avatar.cjs.js +2 -2
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +2 -2
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +2 -2
- package/avatar/avatar.min.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +2 -2
- package/button/BaseButton.vue +4 -0
- package/button/Button.d.ts +4 -0
- package/button/Button.vue +1 -1
- package/button/button.cjs.js +6 -1
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +6 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +6 -1
- package/button/button.min.js +1 -1
- package/calendar/BaseCalendar.vue +6 -2
- package/calendar/Calendar.d.ts +39 -2
- package/calendar/Calendar.vue +40 -11
- package/calendar/calendar.cjs.js +70 -30
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +70 -30
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +70 -30
- package/calendar/calendar.min.js +1 -1
- package/calendar/style/calendarstyle.cjs.js +4 -2
- package/calendar/style/calendarstyle.cjs.min.js +1 -1
- package/calendar/style/calendarstyle.esm.js +4 -2
- package/calendar/style/calendarstyle.esm.min.js +1 -1
- package/calendar/style/calendarstyle.js +4 -2
- package/calendar/style/calendarstyle.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +2 -2
- package/cascadeselect/CascadeSelect.d.ts +2 -2
- package/cascadeselect/cascadeselect.cjs.js +2 -2
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +2 -2
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +2 -2
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/BaseCheckbox.vue +2 -2
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/checkbox.cjs.js +2 -2
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +2 -2
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +2 -2
- package/checkbox/checkbox.min.js +1 -1
- package/chips/BaseChips.vue +2 -2
- package/chips/Chips.d.ts +2 -2
- package/chips/chips.cjs.js +2 -2
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +2 -2
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +2 -2
- package/chips/chips.min.js +1 -1
- package/column/Column.d.ts +4 -0
- package/confirmpopup/ConfirmPopup.vue +0 -1
- package/contextmenu/BaseContextMenu.vue +2 -2
- package/contextmenu/ContextMenu.d.ts +2 -2
- package/contextmenu/contextmenu.cjs.js +2 -2
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +2 -2
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +2 -2
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +59 -26
- package/core/core.min.js +10 -10
- package/datatable/DataTable.d.ts +1 -1
- package/datatable/DataTable.vue +4 -7
- package/datatable/HeaderCell.vue +1 -1
- package/datatable/datatable.cjs.js +6 -9
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +6 -9
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +6 -9
- package/datatable/datatable.min.js +1 -1
- package/dock/BaseDock.vue +2 -2
- package/dock/Dock.d.ts +2 -2
- package/dock/Dock.vue +27 -5
- package/dock/DockSub.vue +2 -2
- package/dock/dock.cjs.js +33 -12
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +33 -12
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +33 -12
- package/dock/dock.min.js +1 -1
- package/dropdown/BaseDropdown.vue +2 -2
- package/dropdown/Dropdown.d.ts +2 -2
- package/dropdown/dropdown.cjs.js +2 -2
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +2 -2
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +2 -2
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.vue +6 -0
- package/editor/editor.cjs.js +6 -0
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +6 -0
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +6 -0
- package/editor/editor.min.js +1 -1
- package/inlinemessage/InlineMessage.vue +2 -2
- package/inlinemessage/inlinemessage.cjs.js +7 -5
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +5 -3
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +7 -5
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inputnumber/BaseInputNumber.vue +2 -2
- package/inputnumber/InputNumber.d.ts +2 -2
- package/inputnumber/inputnumber.cjs.js +2 -2
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +2 -2
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +2 -2
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/BaseInputSwitch.vue +2 -2
- package/inputswitch/InputSwitch.d.ts +2 -2
- package/inputswitch/inputswitch.cjs.js +2 -2
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +2 -2
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +2 -2
- package/inputswitch/inputswitch.min.js +1 -1
- package/knob/BaseKnob.vue +2 -2
- package/knob/Knob.d.ts +2 -2
- package/knob/knob.cjs.js +2 -2
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +2 -2
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +2 -2
- package/knob/knob.min.js +1 -1
- package/listbox/BaseListbox.vue +14 -5
- package/listbox/Listbox.d.ts +3 -3
- package/listbox/Listbox.vue +4 -3
- package/listbox/listbox.cjs.js +18 -8
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +18 -8
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +18 -8
- package/listbox/listbox.min.js +1 -1
- package/megamenu/BaseMegaMenu.vue +2 -2
- package/megamenu/MegaMenu.d.ts +25 -2
- package/megamenu/MegaMenu.vue +45 -26
- package/megamenu/megamenu.cjs.js +65 -41
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +65 -41
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +65 -41
- package/megamenu/megamenu.min.js +1 -1
- package/megamenu/style/megamenustyle.cjs.js +1 -1
- package/megamenu/style/megamenustyle.cjs.min.js +1 -1
- package/megamenu/style/megamenustyle.esm.js +1 -1
- package/megamenu/style/megamenustyle.esm.min.js +1 -1
- package/megamenu/style/megamenustyle.js +1 -1
- package/megamenu/style/megamenustyle.min.js +1 -1
- package/menu/BaseMenu.vue +2 -2
- package/menu/Menu.d.ts +2 -2
- package/menu/Menu.vue +5 -1
- package/menu/menu.cjs.js +6 -3
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +6 -3
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +6 -3
- package/menu/menu.min.js +1 -1
- package/menubar/BaseMenubar.vue +2 -2
- package/menubar/Menubar.d.ts +29 -5
- package/menubar/Menubar.vue +48 -29
- package/menubar/menubar.cjs.js +70 -46
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +70 -46
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +70 -46
- package/menubar/menubar.min.js +1 -1
- package/multiselect/BaseMultiSelect.vue +2 -2
- package/multiselect/MultiSelect.d.ts +2 -2
- package/multiselect/multiselect.cjs.js +2 -2
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +2 -2
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +2 -2
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/BaseOrderList.vue +2 -2
- package/orderlist/OrderList.d.ts +2 -2
- package/orderlist/orderlist.cjs.js +2 -2
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +2 -2
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +2 -2
- package/orderlist/orderlist.min.js +1 -1
- package/package.json +1 -1
- package/panelmenu/style/panelmenustyle.cjs.js +1 -1
- package/panelmenu/style/panelmenustyle.cjs.min.js +1 -1
- package/panelmenu/style/panelmenustyle.esm.js +1 -1
- package/panelmenu/style/panelmenustyle.esm.min.js +1 -1
- package/panelmenu/style/panelmenustyle.js +1 -1
- package/panelmenu/style/panelmenustyle.min.js +1 -1
- package/password/BasePassword.vue +2 -2
- package/password/Password.d.ts +2 -2
- package/password/password.cjs.js +2 -2
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +2 -2
- package/password/password.esm.min.js +1 -1
- package/password/password.js +2 -2
- package/password/password.min.js +1 -1
- package/picklist/PickList.vue +1 -4
- package/picklist/picklist.cjs.js +1 -4
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +1 -4
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +1 -4
- package/picklist/picklist.min.js +1 -1
- package/radiobutton/BaseRadioButton.vue +2 -2
- package/radiobutton/RadioButton.d.ts +2 -2
- package/radiobutton/radiobutton.cjs.js +2 -2
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +2 -2
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +2 -2
- package/radiobutton/radiobutton.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +6 -6
- package/resources/themes/arya-green/theme.css +6 -6
- package/resources/themes/arya-orange/theme.css +6 -6
- package/resources/themes/arya-purple/theme.css +6 -6
- package/resources/themes/bootstrap4-dark-blue/theme.css +6 -6
- package/resources/themes/bootstrap4-dark-purple/theme.css +6 -6
- package/resources/themes/bootstrap4-light-blue/theme.css +6 -6
- package/resources/themes/bootstrap4-light-purple/theme.css +6 -6
- package/resources/themes/fluent-light/theme.css +6 -6
- package/resources/themes/lara-dark-amber/theme.css +6 -6
- package/resources/themes/lara-dark-blue/theme.css +6 -6
- package/resources/themes/lara-dark-cyan/theme.css +6 -6
- package/resources/themes/lara-dark-green/theme.css +6 -6
- package/resources/themes/lara-dark-indigo/theme.css +6 -6
- package/resources/themes/lara-dark-pink/theme.css +6 -6
- package/resources/themes/lara-dark-purple/theme.css +6 -6
- package/resources/themes/lara-dark-teal/theme.css +6 -6
- package/resources/themes/lara-light-amber/theme.css +6 -6
- package/resources/themes/lara-light-blue/theme.css +6 -6
- package/resources/themes/lara-light-cyan/theme.css +6 -6
- package/resources/themes/lara-light-green/theme.css +6 -6
- package/resources/themes/lara-light-indigo/theme.css +6 -6
- package/resources/themes/lara-light-pink/theme.css +6 -6
- package/resources/themes/lara-light-purple/theme.css +6 -6
- package/resources/themes/lara-light-teal/theme.css +6 -6
- package/resources/themes/luna-amber/theme.css +6 -6
- package/resources/themes/luna-blue/theme.css +6 -6
- package/resources/themes/luna-green/theme.css +6 -6
- package/resources/themes/luna-pink/theme.css +6 -6
- package/resources/themes/md-dark-deeppurple/theme.css +6 -6
- package/resources/themes/md-dark-indigo/theme.css +6 -6
- package/resources/themes/md-light-deeppurple/theme.css +6 -6
- package/resources/themes/md-light-indigo/theme.css +6 -6
- package/resources/themes/mdc-dark-deeppurple/theme.css +6 -6
- package/resources/themes/mdc-dark-indigo/theme.css +6 -6
- package/resources/themes/mdc-light-deeppurple/theme.css +6 -6
- package/resources/themes/mdc-light-indigo/theme.css +6 -6
- package/resources/themes/mira/theme.css +6 -6
- package/resources/themes/nano/theme.css +6 -6
- package/resources/themes/nova/theme.css +6 -6
- package/resources/themes/nova-accent/theme.css +6 -6
- package/resources/themes/nova-alt/theme.css +6 -6
- package/resources/themes/nova-vue/theme.css +6 -6
- package/resources/themes/rhea/theme.css +6 -6
- package/resources/themes/saga-blue/theme.css +6 -6
- package/resources/themes/saga-green/theme.css +6 -6
- package/resources/themes/saga-orange/theme.css +6 -6
- package/resources/themes/saga-purple/theme.css +6 -6
- package/resources/themes/soho-dark/theme.css +6 -6
- package/resources/themes/soho-light/theme.css +6 -6
- package/resources/themes/tailwind-light/theme.css +6 -6
- package/resources/themes/vela-blue/theme.css +6 -6
- package/resources/themes/vela-green/theme.css +6 -6
- package/resources/themes/vela-orange/theme.css +6 -6
- package/resources/themes/vela-purple/theme.css +6 -6
- package/resources/themes/viva-dark/theme.css +6 -6
- package/resources/themes/viva-light/theme.css +6 -6
- package/selectbutton/BaseSelectButton.vue +1 -1
- package/selectbutton/SelectButton.d.ts +1 -1
- package/selectbutton/selectbutton.cjs.js +1 -1
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +1 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +1 -1
- package/selectbutton/selectbutton.min.js +1 -1
- package/slider/BaseSlider.vue +2 -2
- package/slider/Slider.d.ts +2 -2
- package/slider/slider.cjs.js +2 -2
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +2 -2
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +2 -2
- package/slider/slider.min.js +1 -1
- package/speeddial/BaseSpeedDial.vue +2 -2
- package/speeddial/SpeedDial.d.ts +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/splitter/Splitter.vue +1 -2
- package/splitter/splitter.cjs.js +1 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +1 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +1 -1
- package/splitter/splitter.min.js +1 -1
- package/styleclass/StyleClass.d.ts +10 -0
- package/styleclass/styleclass.cjs.js +18 -0
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +18 -0
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +18 -0
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/BaseTabMenu.vue +2 -2
- package/tabmenu/TabMenu.d.ts +2 -2
- package/tabmenu/tabmenu.cjs.js +2 -2
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +2 -2
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +2 -2
- package/tabmenu/tabmenu.min.js +1 -1
- package/tieredmenu/BaseTieredMenu.vue +2 -2
- package/tieredmenu/TieredMenu.d.ts +2 -2
- package/tieredmenu/TieredMenu.vue +5 -1
- package/tieredmenu/tieredmenu.cjs.js +6 -3
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +6 -3
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +6 -3
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/togglebutton/BaseToggleButton.vue +2 -2
- package/togglebutton/ToggleButton.d.ts +2 -2
- package/togglebutton/togglebutton.cjs.js +2 -2
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +2 -2
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +2 -2
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/BaseToolbar.vue +1 -1
- package/toolbar/Toolbar.d.ts +1 -1
- package/toolbar/toolbar.cjs.js +1 -1
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +1 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +1 -1
- package/toolbar/toolbar.min.js +1 -1
- package/tree/BaseTree.vue +6 -2
- package/tree/Tree.d.ts +8 -62
- package/tree/Tree.vue +2 -1
- package/tree/TreeNode.vue +17 -8
- package/tree/style/treestyle.cjs.js +1 -0
- package/tree/style/treestyle.cjs.min.js +1 -1
- package/tree/style/treestyle.esm.js +1 -0
- package/tree/style/treestyle.esm.min.js +1 -1
- package/tree/style/treestyle.js +1 -0
- package/tree/style/treestyle.min.js +1 -1
- package/tree/tree.cjs.js +30 -11
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +31 -12
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +30 -11
- package/tree/tree.min.js +1 -1
- package/treenode/TreeNode.d.ts +71 -0
- package/treenode/package.json +3 -0
- package/treeselect/BaseTreeSelect.vue +2 -2
- package/treeselect/TreeSelect.d.ts +4 -3
- package/treeselect/treeselect.cjs.js +2 -2
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +2 -2
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +2 -2
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BaseTreeTable.vue +4 -0
- package/treetable/BodyCell.vue +16 -4
- package/treetable/TreeTable.d.ts +6 -1
- package/treetable/TreeTable.vue +2 -1
- package/treetable/TreeTableRow.vue +5 -0
- package/treetable/treetable.cjs.js +33 -6
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +34 -7
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +33 -6
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/BaseTriStateCheckbox.vue +2 -2
- package/tristatecheckbox/TriStateCheckbox.d.ts +2 -2
- package/tristatecheckbox/tristatecheckbox.cjs.js +2 -2
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +2 -2
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +2 -2
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/web-types.json +1 -1
|
@@ -4186,7 +4186,7 @@
|
|
|
4186
4186
|
border: 1px solid #304562;
|
|
4187
4187
|
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
|
4188
4188
|
border-radius: 3px;
|
|
4189
|
-
width: 12.5rem;
|
|
4189
|
+
min-width: 12.5rem;
|
|
4190
4190
|
}
|
|
4191
4191
|
.p-contextmenu .p-contextmenu-root-list {
|
|
4192
4192
|
outline: 0 none;
|
|
@@ -4410,14 +4410,14 @@
|
|
|
4410
4410
|
}
|
|
4411
4411
|
.p-megamenu .p-submenu-list {
|
|
4412
4412
|
padding: 0.25rem 0;
|
|
4413
|
-
width: 12.5rem;
|
|
4413
|
+
min-width: 12.5rem;
|
|
4414
4414
|
}
|
|
4415
4415
|
.p-megamenu .p-submenu-list .p-menuitem-separator {
|
|
4416
4416
|
border-top: 1px solid #304562;
|
|
4417
4417
|
margin: 0.25rem 0;
|
|
4418
4418
|
}
|
|
4419
4419
|
.p-megamenu.p-megamenu-vertical {
|
|
4420
|
-
width: 12.5rem;
|
|
4420
|
+
min-width: 12.5rem;
|
|
4421
4421
|
padding: 0.25rem 0;
|
|
4422
4422
|
}
|
|
4423
4423
|
.p-megamenu.p-megamenu-horizontal .p-megamenu-root-list > .p-menuitem > .p-menuitem-content {
|
|
@@ -4507,7 +4507,7 @@
|
|
|
4507
4507
|
color: rgba(255, 255, 255, 0.87);
|
|
4508
4508
|
border: 1px solid #304562;
|
|
4509
4509
|
border-radius: 3px;
|
|
4510
|
-
width: 12.5rem;
|
|
4510
|
+
min-width: 12.5rem;
|
|
4511
4511
|
}
|
|
4512
4512
|
.p-menu .p-menuitem > .p-menuitem-content {
|
|
4513
4513
|
color: rgba(255, 255, 255, 0.87);
|
|
@@ -4679,7 +4679,7 @@
|
|
|
4679
4679
|
background: #1f2d40;
|
|
4680
4680
|
border: 1px solid #304562;
|
|
4681
4681
|
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
|
4682
|
-
width: 12.5rem;
|
|
4682
|
+
min-width: 12.5rem;
|
|
4683
4683
|
}
|
|
4684
4684
|
.p-menubar .p-submenu-list .p-menuitem-separator {
|
|
4685
4685
|
border-top: 1px solid #304562;
|
|
@@ -4987,7 +4987,7 @@
|
|
|
4987
4987
|
color: rgba(255, 255, 255, 0.87);
|
|
4988
4988
|
border: 1px solid #304562;
|
|
4989
4989
|
border-radius: 3px;
|
|
4990
|
-
width: 12.5rem;
|
|
4990
|
+
min-width: 12.5rem;
|
|
4991
4991
|
}
|
|
4992
4992
|
.p-tieredmenu.p-tieredmenu-overlay {
|
|
4993
4993
|
background: #1f2d40;
|
|
@@ -4218,7 +4218,7 @@
|
|
|
4218
4218
|
border: 2px solid #263238;
|
|
4219
4219
|
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
|
4220
4220
|
border-radius: 6px;
|
|
4221
|
-
width: 12.5rem;
|
|
4221
|
+
min-width: 12.5rem;
|
|
4222
4222
|
}
|
|
4223
4223
|
.p-contextmenu .p-contextmenu-root-list {
|
|
4224
4224
|
outline: 0 none;
|
|
@@ -4442,14 +4442,14 @@
|
|
|
4442
4442
|
}
|
|
4443
4443
|
.p-megamenu .p-submenu-list {
|
|
4444
4444
|
padding: 0.5rem 0.5rem;
|
|
4445
|
-
width: 12.5rem;
|
|
4445
|
+
min-width: 12.5rem;
|
|
4446
4446
|
}
|
|
4447
4447
|
.p-megamenu .p-submenu-list .p-menuitem-separator {
|
|
4448
4448
|
border-top: 1px solid #263238;
|
|
4449
4449
|
margin: 4px 0;
|
|
4450
4450
|
}
|
|
4451
4451
|
.p-megamenu.p-megamenu-vertical {
|
|
4452
|
-
width: 12.5rem;
|
|
4452
|
+
min-width: 12.5rem;
|
|
4453
4453
|
padding: 0.5rem 0.5rem;
|
|
4454
4454
|
}
|
|
4455
4455
|
.p-megamenu.p-megamenu-horizontal .p-megamenu-root-list > .p-menuitem > .p-menuitem-content {
|
|
@@ -4539,7 +4539,7 @@
|
|
|
4539
4539
|
color: rgba(255, 255, 255, 0.87);
|
|
4540
4540
|
border: 2px solid #263238;
|
|
4541
4541
|
border-radius: 6px;
|
|
4542
|
-
width: 12.5rem;
|
|
4542
|
+
min-width: 12.5rem;
|
|
4543
4543
|
}
|
|
4544
4544
|
.p-menu .p-menuitem > .p-menuitem-content {
|
|
4545
4545
|
color: rgba(255, 255, 255, 0.87);
|
|
@@ -4711,7 +4711,7 @@
|
|
|
4711
4711
|
background: #161d21;
|
|
4712
4712
|
border: 2px solid #263238;
|
|
4713
4713
|
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
|
4714
|
-
width: 12.5rem;
|
|
4714
|
+
min-width: 12.5rem;
|
|
4715
4715
|
}
|
|
4716
4716
|
.p-menubar .p-submenu-list .p-menuitem-separator {
|
|
4717
4717
|
border-top: 1px solid #263238;
|
|
@@ -5019,7 +5019,7 @@
|
|
|
5019
5019
|
color: rgba(255, 255, 255, 0.87);
|
|
5020
5020
|
border: 2px solid #263238;
|
|
5021
5021
|
border-radius: 6px;
|
|
5022
|
-
width: 12.5rem;
|
|
5022
|
+
min-width: 12.5rem;
|
|
5023
5023
|
}
|
|
5024
5024
|
.p-tieredmenu.p-tieredmenu-overlay {
|
|
5025
5025
|
background: #161d21;
|
|
@@ -4218,7 +4218,7 @@
|
|
|
4218
4218
|
border: 0 none;
|
|
4219
4219
|
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
|
4220
4220
|
border-radius: 6px;
|
|
4221
|
-
width: 12.5rem;
|
|
4221
|
+
min-width: 12.5rem;
|
|
4222
4222
|
}
|
|
4223
4223
|
.p-contextmenu .p-contextmenu-root-list {
|
|
4224
4224
|
outline: 0 none;
|
|
@@ -4442,14 +4442,14 @@
|
|
|
4442
4442
|
}
|
|
4443
4443
|
.p-megamenu .p-submenu-list {
|
|
4444
4444
|
padding: 0.5rem 0.5rem;
|
|
4445
|
-
width: 12.5rem;
|
|
4445
|
+
min-width: 12.5rem;
|
|
4446
4446
|
}
|
|
4447
4447
|
.p-megamenu .p-submenu-list .p-menuitem-separator {
|
|
4448
4448
|
border-top: 1px solid #ebebeb;
|
|
4449
4449
|
margin: 4px 0;
|
|
4450
4450
|
}
|
|
4451
4451
|
.p-megamenu.p-megamenu-vertical {
|
|
4452
|
-
width: 12.5rem;
|
|
4452
|
+
min-width: 12.5rem;
|
|
4453
4453
|
padding: 0.5rem 0.5rem;
|
|
4454
4454
|
}
|
|
4455
4455
|
.p-megamenu.p-megamenu-horizontal .p-megamenu-root-list > .p-menuitem > .p-menuitem-content {
|
|
@@ -4539,7 +4539,7 @@
|
|
|
4539
4539
|
color: #6c6c6c;
|
|
4540
4540
|
border: 2px solid #ebebeb;
|
|
4541
4541
|
border-radius: 6px;
|
|
4542
|
-
width: 12.5rem;
|
|
4542
|
+
min-width: 12.5rem;
|
|
4543
4543
|
}
|
|
4544
4544
|
.p-menu .p-menuitem > .p-menuitem-content {
|
|
4545
4545
|
color: #6c6c6c;
|
|
@@ -4711,7 +4711,7 @@
|
|
|
4711
4711
|
background: #ffffff;
|
|
4712
4712
|
border: 0 none;
|
|
4713
4713
|
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
|
4714
|
-
width: 12.5rem;
|
|
4714
|
+
min-width: 12.5rem;
|
|
4715
4715
|
}
|
|
4716
4716
|
.p-menubar .p-submenu-list .p-menuitem-separator {
|
|
4717
4717
|
border-top: 1px solid #ebebeb;
|
|
@@ -5019,7 +5019,7 @@
|
|
|
5019
5019
|
color: #6c6c6c;
|
|
5020
5020
|
border: 2px solid #ebebeb;
|
|
5021
5021
|
border-radius: 6px;
|
|
5022
|
-
width: 12.5rem;
|
|
5022
|
+
min-width: 12.5rem;
|
|
5023
5023
|
}
|
|
5024
5024
|
.p-tieredmenu.p-tieredmenu-overlay {
|
|
5025
5025
|
background: #ffffff;
|
|
@@ -168,7 +168,7 @@ export interface SelectButtonProps {
|
|
|
168
168
|
/**
|
|
169
169
|
* Identifier of the underlying element.
|
|
170
170
|
*/
|
|
171
|
-
|
|
171
|
+
ariaLabelledby?: string | undefined;
|
|
172
172
|
/**
|
|
173
173
|
* Used to pass attributes to DOM elements inside the component.
|
|
174
174
|
* @type {SelectButtonPassThroughOptions}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/ripple"),t=require("primevue/utils"),n=require("primevue/basecomponent"),i=require("primevue/selectbutton/style"),r=require("vue");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(){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 u(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e){if(Array.isArray(e))return p(e)}function p(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 f={name:"SelectButton",extends:{name:"BaseSelectButton",extends:o(n).default,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,unselectable:{type:Boolean,default:!0},allowEmpty:{type:Boolean,default:!0},disabled:Boolean,dataKey:null,
|
|
1
|
+
"use strict";var e=require("primevue/ripple"),t=require("primevue/utils"),n=require("primevue/basecomponent"),i=require("primevue/selectbutton/style"),r=require("vue");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(){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 u(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e){if(Array.isArray(e))return p(e)}function p(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 f={name:"SelectButton",extends:{name:"BaseSelectButton",extends:o(n).default,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,unselectable:{type:Boolean,default:!0},allowEmpty:{type:Boolean,default:!0},disabled:Boolean,dataKey:null,ariaLabelledby:{type:String,default:null}},style:o(i).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","focus","blur","change"],data:function(){return{focusedIndex:0}},mounted:function(){this.defaultTabIndexes()},methods:{defaultTabIndexes:function(){for(var e=t.DomHandler.find(this.$refs.container,'[data-pc-section="button"]'),n=t.DomHandler.findSingle(this.$refs.container,'[data-p-highlight="true"]'),i=0;i<e.length;i++)(!0===t.DomHandler.getAttribute(e[i],"data-p-highlight")&&t.ObjectUtils.equals(e[i],n)||null===n&&0==i)&&(this.focusedIndex=i)},getOptionLabel:function(e){return this.optionLabel?t.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?t.ObjectUtils.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e)},getPTOptions:function(e,t){return this.ptm(t,{context:{active:this.isSelected(e),disabled:this.isOptionDisabled(e),option:e}})},isOptionDisabled:function(e){return!!this.optionDisabled&&t.ObjectUtils.resolveFieldData(e,this.optionDisabled)},onOptionSelect:function(e,n,i){var r=this;if(!this.disabled&&!this.isOptionDisabled(n)){var o=this.isSelected(n);if(!o||this.unselectable&&this.allowEmpty){var a,l,p=this.getOptionValue(n);a=this.multiple?o?this.modelValue.filter((function(e){return!t.ObjectUtils.equals(e,p,r.equalityKey)})):this.modelValue?[].concat(d(l=this.modelValue)||c(l)||u(l)||s(),[p]):[p]:o?null:p,this.focusedIndex=i,this.$emit("update:modelValue",a),this.$emit("change",{event:e,value:a})}}},isSelected:function(e){var n=!1,i=this.getOptionValue(e);if(this.multiple){if(this.modelValue){var r,o=l(this.modelValue);try{for(o.s();!(r=o.n()).done;){if(t.ObjectUtils.equals(r.value,i,this.equalityKey)){n=!0;break}}}catch(e){o.e(e)}finally{o.f()}}}else n=t.ObjectUtils.equals(this.modelValue,i,this.equalityKey);return n},onKeydown:function(e,t,n){switch(e.code){case"Space":this.onOptionSelect(e,t,n),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(e,"prev"),e.preventDefault()}},changeTabIndexes:function(e,t){for(var n,i,r=0;r<=this.$refs.container.children.length-1;r++)"0"===this.$refs.container.children[r].getAttribute("tabindex")&&(n={elem:this.$refs.container.children[r],index:r});this.focusedIndex=i="prev"===t?0===n.index?this.$refs.container.children.length-1:n.index-1:n.index===this.$refs.container.children.length-1?0:n.index+1,this.$refs.container.children[i].focus()},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e,t){e.target&&e.relatedTarget&&e.target.parentElement!==e.relatedTarget.parentElement&&this.defaultTabIndexes(),this.$emit("blur",e,t)}},computed:{equalityKey:function(){return this.optionValue?null:this.dataKey}},directives:{ripple:a.default}},h=["aria-labelledby"],b=["tabindex","aria-label","role","aria-checked","aria-disabled","onClick","onKeydown","onBlur","data-p-highlight","data-p-disabled"];f.render=function(e,t,n,i,o,a){var l=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("div",r.mergeProps({ref:"container",class:e.cx("root"),role:"group","aria-labelledby":e.ariaLabelledby},e.ptm("root"),{"data-pc-name":"selectbutton"}),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.options,(function(n,i){return r.withDirectives((r.openBlock(),r.createElementBlock("div",r.mergeProps({key:a.getOptionRenderKey(n),tabindex:i===o.focusedIndex?"0":"-1","aria-label":a.getOptionLabel(n),role:e.multiple?"checkbox":"radio","aria-checked":a.isSelected(n),"aria-disabled":e.optionDisabled,class:e.cx("button",{option:n}),onClick:function(e){return a.onOptionSelect(e,n,i)},onKeydown:function(e){return a.onKeydown(e,n,i)},onFocus:t[0]||(t[0]=function(e){return a.onFocus(e)}),onBlur:function(e){return a.onBlur(e,n)}},a.getPTOptions(n,"button"),{"data-p-highlight":a.isSelected(n),"data-p-disabled":a.isOptionDisabled(n)}),[r.renderSlot(e.$slots,"option",{option:n,index:i,class:r.normalizeClass(e.cx("label"))},(function(){return[r.createElementVNode("span",r.mergeProps({class:e.cx("label")},a.getPTOptions(n,"label")),r.toDisplayString(a.getOptionLabel(n)),17)]}))],16,b)),[[l]])})),128))],16,h)},module.exports=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/ripple";import{DomHandler as t,ObjectUtils as n}from"primevue/utils";import i from"primevue/basecomponent";import o from"primevue/selectbutton/style";import{resolveDirective as r,openBlock as a,createElementBlock as l,mergeProps as s,Fragment as u,renderList as d,withDirectives as c,renderSlot as p,normalizeClass as f,createElementVNode as h,toDisplayString as b}from"vue";function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw r}}}}function y(){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 g(e,t){if(e){if("string"==typeof e)return O(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)?O(e,t):void 0}}function v(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function x(e){if(Array.isArray(e))return O(e)}function O(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 S={name:"SelectButton",extends:{name:"BaseSelectButton",extends:i,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,unselectable:{type:Boolean,default:!0},allowEmpty:{type:Boolean,default:!0},disabled:Boolean,dataKey:null,
|
|
1
|
+
import e from"primevue/ripple";import{DomHandler as t,ObjectUtils as n}from"primevue/utils";import i from"primevue/basecomponent";import o from"primevue/selectbutton/style";import{resolveDirective as r,openBlock as a,createElementBlock as l,mergeProps as s,Fragment as u,renderList as d,withDirectives as c,renderSlot as p,normalizeClass as f,createElementVNode as h,toDisplayString as b}from"vue";function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw r}}}}function y(){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 g(e,t){if(e){if("string"==typeof e)return O(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)?O(e,t):void 0}}function v(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function x(e){if(Array.isArray(e))return O(e)}function O(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 S={name:"SelectButton",extends:{name:"BaseSelectButton",extends:i,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,unselectable:{type:Boolean,default:!0},allowEmpty:{type:Boolean,default:!0},disabled:Boolean,dataKey:null,ariaLabelledby:{type:String,default:null}},style:o,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","focus","blur","change"],data:function(){return{focusedIndex:0}},mounted:function(){this.defaultTabIndexes()},methods:{defaultTabIndexes:function(){for(var e=t.find(this.$refs.container,'[data-pc-section="button"]'),i=t.findSingle(this.$refs.container,'[data-p-highlight="true"]'),o=0;o<e.length;o++)(!0===t.getAttribute(e[o],"data-p-highlight")&&n.equals(e[o],i)||null===i&&0==o)&&(this.focusedIndex=o)},getOptionLabel:function(e){return this.optionLabel?n.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?n.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e){return this.dataKey?n.resolveFieldData(e,this.dataKey):this.getOptionLabel(e)},getPTOptions:function(e,t){return this.ptm(t,{context:{active:this.isSelected(e),disabled:this.isOptionDisabled(e),option:e}})},isOptionDisabled:function(e){return!!this.optionDisabled&&n.resolveFieldData(e,this.optionDisabled)},onOptionSelect:function(e,t,i){var o=this;if(!this.disabled&&!this.isOptionDisabled(t)){var r=this.isSelected(t);if(!r||this.unselectable&&this.allowEmpty){var a,l,s=this.getOptionValue(t);a=this.multiple?r?this.modelValue.filter((function(e){return!n.equals(e,s,o.equalityKey)})):this.modelValue?[].concat(x(l=this.modelValue)||v(l)||g(l)||y(),[s]):[s]:r?null:s,this.focusedIndex=i,this.$emit("update:modelValue",a),this.$emit("change",{event:e,value:a})}}},isSelected:function(e){var t=!1,i=this.getOptionValue(e);if(this.multiple){if(this.modelValue){var o,r=m(this.modelValue);try{for(r.s();!(o=r.n()).done;){if(n.equals(o.value,i,this.equalityKey)){t=!0;break}}}catch(e){r.e(e)}finally{r.f()}}}else t=n.equals(this.modelValue,i,this.equalityKey);return t},onKeydown:function(e,t,n){switch(e.code){case"Space":this.onOptionSelect(e,t,n),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(e,"prev"),e.preventDefault()}},changeTabIndexes:function(e,t){for(var n,i,o=0;o<=this.$refs.container.children.length-1;o++)"0"===this.$refs.container.children[o].getAttribute("tabindex")&&(n={elem:this.$refs.container.children[o],index:o});this.focusedIndex=i="prev"===t?0===n.index?this.$refs.container.children.length-1:n.index-1:n.index===this.$refs.container.children.length-1?0:n.index+1,this.$refs.container.children[i].focus()},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e,t){e.target&&e.relatedTarget&&e.target.parentElement!==e.relatedTarget.parentElement&&this.defaultTabIndexes(),this.$emit("blur",e,t)}},computed:{equalityKey:function(){return this.optionValue?null:this.dataKey}},directives:{ripple:e}},w=["aria-labelledby"],I=["tabindex","aria-label","role","aria-checked","aria-disabled","onClick","onKeydown","onBlur","data-p-highlight","data-p-disabled"];S.render=function(e,t,n,i,o,m){var y=r("ripple");return a(),l("div",s({ref:"container",class:e.cx("root"),role:"group","aria-labelledby":e.ariaLabelledby},e.ptm("root"),{"data-pc-name":"selectbutton"}),[(a(!0),l(u,null,d(e.options,(function(n,i){return c((a(),l("div",s({key:m.getOptionRenderKey(n),tabindex:i===o.focusedIndex?"0":"-1","aria-label":m.getOptionLabel(n),role:e.multiple?"checkbox":"radio","aria-checked":m.isSelected(n),"aria-disabled":e.optionDisabled,class:e.cx("button",{option:n}),onClick:function(e){return m.onOptionSelect(e,n,i)},onKeydown:function(e){return m.onKeydown(e,n,i)},onFocus:t[0]||(t[0]=function(e){return m.onFocus(e)}),onBlur:function(e){return m.onBlur(e,n)}},m.getPTOptions(n,"button"),{"data-p-highlight":m.isSelected(n),"data-p-disabled":m.isOptionDisabled(n)}),[p(e.$slots,"option",{option:n,index:i,class:f(e.cx("label"))},(function(){return[h("span",s({class:e.cx("label")},m.getPTOptions(n,"label")),b(m.getOptionLabel(n)),17)]}))],16,I)),[[y]])})),128))],16,w)};export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.selectbutton=function(e,t,n,i,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(){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 u(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e){if(Array.isArray(e))return p(e)}function p(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 f={name:"SelectButton",extends:{name:"BaseSelectButton",extends:o(n).default,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,unselectable:{type:Boolean,default:!0},allowEmpty:{type:Boolean,default:!0},disabled:Boolean,dataKey:null,
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.selectbutton=function(e,t,n,i,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(){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 u(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e){if(Array.isArray(e))return p(e)}function p(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 f={name:"SelectButton",extends:{name:"BaseSelectButton",extends:o(n).default,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,unselectable:{type:Boolean,default:!0},allowEmpty:{type:Boolean,default:!0},disabled:Boolean,dataKey:null,ariaLabelledby:{type:String,default:null}},style:o(i).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","focus","blur","change"],data:function(){return{focusedIndex:0}},mounted:function(){this.defaultTabIndexes()},methods:{defaultTabIndexes:function(){for(var e=t.DomHandler.find(this.$refs.container,'[data-pc-section="button"]'),n=t.DomHandler.findSingle(this.$refs.container,'[data-p-highlight="true"]'),i=0;i<e.length;i++)(!0===t.DomHandler.getAttribute(e[i],"data-p-highlight")&&t.ObjectUtils.equals(e[i],n)||null===n&&0==i)&&(this.focusedIndex=i)},getOptionLabel:function(e){return this.optionLabel?t.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?t.ObjectUtils.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e)},getPTOptions:function(e,t){return this.ptm(t,{context:{active:this.isSelected(e),disabled:this.isOptionDisabled(e),option:e}})},isOptionDisabled:function(e){return!!this.optionDisabled&&t.ObjectUtils.resolveFieldData(e,this.optionDisabled)},onOptionSelect:function(e,n,i){var r=this;if(!this.disabled&&!this.isOptionDisabled(n)){var o=this.isSelected(n);if(!o||this.unselectable&&this.allowEmpty){var a,l,p=this.getOptionValue(n);a=this.multiple?o?this.modelValue.filter((function(e){return!t.ObjectUtils.equals(e,p,r.equalityKey)})):this.modelValue?[].concat(d(l=this.modelValue)||c(l)||u(l)||s(),[p]):[p]:o?null:p,this.focusedIndex=i,this.$emit("update:modelValue",a),this.$emit("change",{event:e,value:a})}}},isSelected:function(e){var n=!1,i=this.getOptionValue(e);if(this.multiple){if(this.modelValue){var r,o=l(this.modelValue);try{for(o.s();!(r=o.n()).done;){if(t.ObjectUtils.equals(r.value,i,this.equalityKey)){n=!0;break}}}catch(e){o.e(e)}finally{o.f()}}}else n=t.ObjectUtils.equals(this.modelValue,i,this.equalityKey);return n},onKeydown:function(e,t,n){switch(e.code){case"Space":this.onOptionSelect(e,t,n),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(e,"prev"),e.preventDefault()}},changeTabIndexes:function(e,t){for(var n,i,r=0;r<=this.$refs.container.children.length-1;r++)"0"===this.$refs.container.children[r].getAttribute("tabindex")&&(n={elem:this.$refs.container.children[r],index:r});this.focusedIndex=i="prev"===t?0===n.index?this.$refs.container.children.length-1:n.index-1:n.index===this.$refs.container.children.length-1?0:n.index+1,this.$refs.container.children[i].focus()},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e,t){e.target&&e.relatedTarget&&e.target.parentElement!==e.relatedTarget.parentElement&&this.defaultTabIndexes(),this.$emit("blur",e,t)}},computed:{equalityKey:function(){return this.optionValue?null:this.dataKey}},directives:{ripple:a.default}},h=["aria-labelledby"],b=["tabindex","aria-label","role","aria-checked","aria-disabled","onClick","onKeydown","onBlur","data-p-highlight","data-p-disabled"];return f.render=function(e,t,n,i,o,a){var l=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("div",r.mergeProps({ref:"container",class:e.cx("root"),role:"group","aria-labelledby":e.ariaLabelledby},e.ptm("root"),{"data-pc-name":"selectbutton"}),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.options,(function(n,i){return r.withDirectives((r.openBlock(),r.createElementBlock("div",r.mergeProps({key:a.getOptionRenderKey(n),tabindex:i===o.focusedIndex?"0":"-1","aria-label":a.getOptionLabel(n),role:e.multiple?"checkbox":"radio","aria-checked":a.isSelected(n),"aria-disabled":e.optionDisabled,class:e.cx("button",{option:n}),onClick:function(e){return a.onOptionSelect(e,n,i)},onKeydown:function(e){return a.onKeydown(e,n,i)},onFocus:t[0]||(t[0]=function(e){return a.onFocus(e)}),onBlur:function(e){return a.onBlur(e,n)}},a.getPTOptions(n,"button"),{"data-p-highlight":a.isSelected(n),"data-p-disabled":a.isOptionDisabled(n)}),[r.renderSlot(e.$slots,"option",{option:n,index:i,class:r.normalizeClass(e.cx("label"))},(function(){return[r.createElementVNode("span",r.mergeProps({class:e.cx("label")},a.getPTOptions(n,"label")),r.toDisplayString(a.getOptionLabel(n)),17)]}))],16,b)),[[l]])})),128))],16,h)},f}(primevue.ripple,primevue.utils,primevue.basecomponent,primevue.selectbutton.style,Vue);
|
package/slider/BaseSlider.vue
CHANGED
package/slider/Slider.d.ts
CHANGED
|
@@ -130,11 +130,11 @@ export interface SliderProps {
|
|
|
130
130
|
/**
|
|
131
131
|
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
ariaLabelledby?: string | undefined;
|
|
134
134
|
/**
|
|
135
135
|
* Used to define a string that labels the element.
|
|
136
136
|
*/
|
|
137
|
-
|
|
137
|
+
ariaLabel?: string | undefined;
|
|
138
138
|
/**
|
|
139
139
|
* Used to pass attributes to DOM elements inside the component.
|
|
140
140
|
* @type {SliderPassThroughOptions}
|
package/slider/slider.cjs.js
CHANGED
package/slider/slider.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),n=require("primevue/slider/style"),i=require("vue");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(){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 o(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return u(e)}function u(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 d={name:"Slider",extends:{name:"BaseSlider",extends:a(t).default,props:{modelValue:[Number,Array],min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},step:{type:Number,default:null},range:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:0},
|
|
1
|
+
"use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),n=require("primevue/slider/style"),i=require("vue");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(){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 o(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return u(e)}function u(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 d={name:"Slider",extends:{name:"BaseSlider",extends:a(t).default,props:{modelValue:[Number,Array],min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},step:{type:Number,default:null},range:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a(n).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","slideend"],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var t=this.$el.getBoundingClientRect();this.initX=t.left+e.DomHandler.getWindowScrollLeft(),this.initY=t.top+e.DomHandler.getWindowScrollTop(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue:function(e){var t=("horizontal"===this.orientation?100*((e.touches?e.touches[0].pageX:e.pageX)-this.initX)/this.barWidth:100*(this.initY+this.barHeight-(e.touches?e.touches[0].pageY:e.pageY))/this.barHeight)/100*(this.max-this.min)+this.min;if(this.step){var n=this.range?this.modelValue[this.handleIndex]:this.modelValue,i=t-n;i<0?t=n+Math.ceil(t/this.step-n/this.step)*this.step:i>0&&(t=n+Math.floor(t/this.step-n/this.step)*this.step)}else t=Math.floor(t);this.updateModel(e,t)},updateModel:function(e,t){var n,i,a=parseFloat(t.toFixed(10));this.range?(n=this.modelValue?s(i=this.modelValue)||l(i)||o(i)||r():[],0==this.handleIndex?(a<this.min?a=this.min:a>=this.max&&(a=this.max),n[0]=a):(a>this.max?a=this.max:a<=this.min&&(a=this.min),n[1]=a)):(a<this.min?a=this.min:a>this.max&&(a=this.max),n=a),this.$emit("update:modelValue",n),this.$emit("change",n)},onDragStart:function(e,t){this.disabled||(this.$el.setAttribute("data-p-sliding",!0),this.dragging=!0,this.updateDomData(),this.handleIndex=this.range&&this.modelValue[0]===this.max?0:t,e.currentTarget.focus(),e.preventDefault())},onDrag:function(e){this.dragging&&(this.setValue(e),e.preventDefault())},onDragEnd:function(e){this.dragging&&(this.dragging=!1,this.$el.setAttribute("data-p-sliding",!1),this.$emit("slideend",{originalEvent:e,value:this.modelValue}))},onBarClick:function(t){this.disabled||"handle"!==e.DomHandler.getAttribute(t.target,"data-pc-section")&&(this.updateDomData(),this.setValue(t))},onMouseDown:function(e,t){this.bindDragListeners(),this.onDragStart(e,t)},onKeyDown:function(e,t){switch(this.handleIndex=t,e.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(e,t),e.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(e,t),e.preventDefault();break;case"PageDown":this.decrementValue(e,t,!0),e.preventDefault();break;case"PageUp":this.incrementValue(e,t,!0),e.preventDefault();break;case"Home":this.updateModel(e,this.min),e.preventDefault();break;case"End":this.updateModel(e,this.max),e.preventDefault()}},decrementValue:function(e,t){this.updateModel(e,this.range?this.step?this.modelValue[t]-this.step:this.modelValue[t]-1:this.step?this.modelValue-this.step:!this.step&&(arguments.length>2&&void 0!==arguments[2]&&arguments[2])?this.modelValue-10:this.modelValue-1),e.preventDefault()},incrementValue:function(e,t){this.updateModel(e,this.range?this.step?this.modelValue[t]+this.step:this.modelValue[t]+1:this.step?this.modelValue+this.step:!this.step&&(arguments.length>2&&void 0!==arguments[2]&&arguments[2])?this.modelValue+10:this.modelValue+1),e.preventDefault()},bindDragListeners:function(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener("mousemove",this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener("mouseup",this.dragEndListener))},unbindDragListeners:function(){this.dragListener&&(document.removeEventListener("mousemove",this.dragListener),this.dragListener=null),this.dragEndListener&&(document.removeEventListener("mouseup",this.dragEndListener),this.dragEndListener=null)}},computed:{horizontal:function(){return"horizontal"===this.orientation},vertical:function(){return"vertical"===this.orientation},rangeStyle:function(){if(this.range){var e=this.rangeEndPosition>this.rangeStartPosition?this.rangeEndPosition-this.rangeStartPosition:this.rangeStartPosition-this.rangeEndPosition,t=this.rangeEndPosition>this.rangeStartPosition?this.rangeStartPosition:this.rangeEndPosition;return this.horizontal?{left:t+"%",width:e+"%"}:{bottom:t+"%",height:e+"%"}}return this.horizontal?{width:this.handlePosition+"%"}:{height:this.handlePosition+"%"}},handleStyle:function(){return this.horizontal?{left:this.handlePosition+"%"}:{bottom:this.handlePosition+"%"}},handlePosition:function(){return this.modelValue<this.min?0:this.modelValue>this.max?100:100*(this.modelValue-this.min)/(this.max-this.min)},rangeStartPosition:function(){return this.modelValue&&this.modelValue[0]?100*(this.modelValue[0]<this.min?0:this.modelValue[0]-this.min)/(this.max-this.min):0},rangeEndPosition:function(){return this.modelValue&&2===this.modelValue.length?100*(this.modelValue[1]>this.max?100:this.modelValue[1]-this.min)/(this.max-this.min):100},rangeStartHandleStyle:function(){return this.horizontal?{left:this.rangeStartPosition+"%"}:{bottom:this.rangeStartPosition+"%"}},rangeEndHandleStyle:function(){return this.horizontal?{left:this.rangeEndPosition+"%"}:{bottom:this.rangeEndPosition+"%"}}}},h=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation"],m=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation"],c=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation"];d.render=function(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",i.mergeProps({class:e.cx("root"),onClick:t[15]||(t[15]=function(){return o.onBarClick&&o.onBarClick.apply(o,arguments)})},e.ptm("root"),{"data-p-sliding":!1,"data-pc-name":"slider"}),[i.createElementVNode("span",i.mergeProps({class:e.cx("range"),style:[e.sx("range"),o.rangeStyle]},e.ptm("range")),null,16),e.range?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:0,class:e.cx("handle"),style:[e.sx("handle"),o.handleStyle],onTouchstart:t[0]||(t[0]=function(e){return o.onDragStart(e)}),onTouchmove:t[1]||(t[1]=function(e){return o.onDrag(e)}),onTouchend:t[2]||(t[2]=function(e){return o.onDragEnd(e)}),onMousedown:t[3]||(t[3]=function(e){return o.onMouseDown(e)}),onKeydown:t[4]||(t[4]=function(e){return o.onKeyDown(e)}),tabindex:e.tabindex,role:"slider","aria-valuemin":e.min,"aria-valuenow":e.modelValue,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm("handle")),null,16,h)),e.range?(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:1,class:e.cx("handle"),style:[e.sx("handle"),o.rangeStartHandleStyle],onTouchstart:t[5]||(t[5]=function(e){return o.onDragStart(e,0)}),onTouchmove:t[6]||(t[6]=function(e){return o.onDrag(e)}),onTouchend:t[7]||(t[7]=function(e){return o.onDragEnd(e)}),onMousedown:t[8]||(t[8]=function(e){return o.onMouseDown(e,0)}),onKeydown:t[9]||(t[9]=function(e){return o.onKeyDown(e,0)}),tabindex:e.tabindex,role:"slider","aria-valuemin":e.min,"aria-valuenow":e.modelValue?e.modelValue[0]:null,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm("startHandler")),null,16,m)):i.createCommentVNode("",!0),e.range?(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:2,class:e.cx("handle"),style:[e.sx("handle"),o.rangeEndHandleStyle],onTouchstart:t[10]||(t[10]=function(e){return o.onDragStart(e,1)}),onTouchmove:t[11]||(t[11]=function(e){return o.onDrag(e)}),onTouchend:t[12]||(t[12]=function(e){return o.onDragEnd(e)}),onMousedown:t[13]||(t[13]=function(e){return o.onMouseDown(e,1)}),onKeydown:t[14]||(t[14]=function(e){return o.onKeyDown(e,1)}),tabindex:e.tabindex,role:"slider","aria-valuemin":e.min,"aria-valuenow":e.modelValue?e.modelValue[1]:null,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm("endHandler")),null,16,c)):i.createCommentVNode("",!0)],16)},module.exports=d;
|
package/slider/slider.esm.js
CHANGED
package/slider/slider.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DomHandler as t}from"primevue/utils";import e from"primevue/basecomponent";import n from"primevue/slider/style";import{openBlock as i,createElementBlock as a,mergeProps as r,createElementVNode as o,createCommentVNode as s}from"vue";function l(){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 u(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function h(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function d(t){if(Array.isArray(t))return m(t)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var g={name:"Slider",extends:{name:"BaseSlider",extends:e,props:{modelValue:[Number,Array],min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},step:{type:Number,default:null},range:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:0},
|
|
1
|
+
import{DomHandler as t}from"primevue/utils";import e from"primevue/basecomponent";import n from"primevue/slider/style";import{openBlock as i,createElementBlock as a,mergeProps as r,createElementVNode as o,createCommentVNode as s}from"vue";function l(){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 u(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function h(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function d(t){if(Array.isArray(t))return m(t)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var g={name:"Slider",extends:{name:"BaseSlider",extends:e,props:{modelValue:[Number,Array],min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},step:{type:Number,default:null},range:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:n,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","slideend"],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var e=this.$el.getBoundingClientRect();this.initX=e.left+t.getWindowScrollLeft(),this.initY=e.top+t.getWindowScrollTop(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue:function(t){var e=("horizontal"===this.orientation?100*((t.touches?t.touches[0].pageX:t.pageX)-this.initX)/this.barWidth:100*(this.initY+this.barHeight-(t.touches?t.touches[0].pageY:t.pageY))/this.barHeight)/100*(this.max-this.min)+this.min;if(this.step){var n=this.range?this.modelValue[this.handleIndex]:this.modelValue,i=e-n;i<0?e=n+Math.ceil(e/this.step-n/this.step)*this.step:i>0&&(e=n+Math.floor(e/this.step-n/this.step)*this.step)}else e=Math.floor(e);this.updateModel(t,e)},updateModel:function(t,e){var n,i,a=parseFloat(e.toFixed(10));this.range?(n=this.modelValue?d(i=this.modelValue)||h(i)||u(i)||l():[],0==this.handleIndex?(a<this.min?a=this.min:a>=this.max&&(a=this.max),n[0]=a):(a>this.max?a=this.max:a<=this.min&&(a=this.min),n[1]=a)):(a<this.min?a=this.min:a>this.max&&(a=this.max),n=a),this.$emit("update:modelValue",n),this.$emit("change",n)},onDragStart:function(t,e){this.disabled||(this.$el.setAttribute("data-p-sliding",!0),this.dragging=!0,this.updateDomData(),this.handleIndex=this.range&&this.modelValue[0]===this.max?0:e,t.currentTarget.focus(),t.preventDefault())},onDrag:function(t){this.dragging&&(this.setValue(t),t.preventDefault())},onDragEnd:function(t){this.dragging&&(this.dragging=!1,this.$el.setAttribute("data-p-sliding",!1),this.$emit("slideend",{originalEvent:t,value:this.modelValue}))},onBarClick:function(e){this.disabled||"handle"!==t.getAttribute(e.target,"data-pc-section")&&(this.updateDomData(),this.setValue(e))},onMouseDown:function(t,e){this.bindDragListeners(),this.onDragStart(t,e)},onKeyDown:function(t,e){switch(this.handleIndex=e,t.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(t,e),t.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(t,e),t.preventDefault();break;case"PageDown":this.decrementValue(t,e,!0),t.preventDefault();break;case"PageUp":this.incrementValue(t,e,!0),t.preventDefault();break;case"Home":this.updateModel(t,this.min),t.preventDefault();break;case"End":this.updateModel(t,this.max),t.preventDefault()}},decrementValue:function(t,e){this.updateModel(t,this.range?this.step?this.modelValue[e]-this.step:this.modelValue[e]-1:this.step?this.modelValue-this.step:!this.step&&(arguments.length>2&&void 0!==arguments[2]&&arguments[2])?this.modelValue-10:this.modelValue-1),t.preventDefault()},incrementValue:function(t,e){this.updateModel(t,this.range?this.step?this.modelValue[e]+this.step:this.modelValue[e]+1:this.step?this.modelValue+this.step:!this.step&&(arguments.length>2&&void 0!==arguments[2]&&arguments[2])?this.modelValue+10:this.modelValue+1),t.preventDefault()},bindDragListeners:function(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener("mousemove",this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener("mouseup",this.dragEndListener))},unbindDragListeners:function(){this.dragListener&&(document.removeEventListener("mousemove",this.dragListener),this.dragListener=null),this.dragEndListener&&(document.removeEventListener("mouseup",this.dragEndListener),this.dragEndListener=null)}},computed:{horizontal:function(){return"horizontal"===this.orientation},vertical:function(){return"vertical"===this.orientation},rangeStyle:function(){if(this.range){var t=this.rangeEndPosition>this.rangeStartPosition?this.rangeEndPosition-this.rangeStartPosition:this.rangeStartPosition-this.rangeEndPosition,e=this.rangeEndPosition>this.rangeStartPosition?this.rangeStartPosition:this.rangeEndPosition;return this.horizontal?{left:e+"%",width:t+"%"}:{bottom:e+"%",height:t+"%"}}return this.horizontal?{width:this.handlePosition+"%"}:{height:this.handlePosition+"%"}},handleStyle:function(){return this.horizontal?{left:this.handlePosition+"%"}:{bottom:this.handlePosition+"%"}},handlePosition:function(){return this.modelValue<this.min?0:this.modelValue>this.max?100:100*(this.modelValue-this.min)/(this.max-this.min)},rangeStartPosition:function(){return this.modelValue&&this.modelValue[0]?100*(this.modelValue[0]<this.min?0:this.modelValue[0]-this.min)/(this.max-this.min):0},rangeEndPosition:function(){return this.modelValue&&2===this.modelValue.length?100*(this.modelValue[1]>this.max?100:this.modelValue[1]-this.min)/(this.max-this.min):100},rangeStartHandleStyle:function(){return this.horizontal?{left:this.rangeStartPosition+"%"}:{bottom:this.rangeStartPosition+"%"}},rangeEndHandleStyle:function(){return this.horizontal?{left:this.rangeEndPosition+"%"}:{bottom:this.rangeEndPosition+"%"}}}},c=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation"],p=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation"],f=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation"];g.render=function(t,e,n,l,u,h){return i(),a("div",r({class:t.cx("root"),onClick:e[15]||(e[15]=function(){return h.onBarClick&&h.onBarClick.apply(h,arguments)})},t.ptm("root"),{"data-p-sliding":!1,"data-pc-name":"slider"}),[o("span",r({class:t.cx("range"),style:[t.sx("range"),h.rangeStyle]},t.ptm("range")),null,16),t.range?s("",!0):(i(),a("span",r({key:0,class:t.cx("handle"),style:[t.sx("handle"),h.handleStyle],onTouchstart:e[0]||(e[0]=function(t){return h.onDragStart(t)}),onTouchmove:e[1]||(e[1]=function(t){return h.onDrag(t)}),onTouchend:e[2]||(e[2]=function(t){return h.onDragEnd(t)}),onMousedown:e[3]||(e[3]=function(t){return h.onMouseDown(t)}),onKeydown:e[4]||(e[4]=function(t){return h.onKeyDown(t)}),tabindex:t.tabindex,role:"slider","aria-valuemin":t.min,"aria-valuenow":t.modelValue,"aria-valuemax":t.max,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-orientation":t.orientation},t.ptm("handle")),null,16,c)),t.range?(i(),a("span",r({key:1,class:t.cx("handle"),style:[t.sx("handle"),h.rangeStartHandleStyle],onTouchstart:e[5]||(e[5]=function(t){return h.onDragStart(t,0)}),onTouchmove:e[6]||(e[6]=function(t){return h.onDrag(t)}),onTouchend:e[7]||(e[7]=function(t){return h.onDragEnd(t)}),onMousedown:e[8]||(e[8]=function(t){return h.onMouseDown(t,0)}),onKeydown:e[9]||(e[9]=function(t){return h.onKeyDown(t,0)}),tabindex:t.tabindex,role:"slider","aria-valuemin":t.min,"aria-valuenow":t.modelValue?t.modelValue[0]:null,"aria-valuemax":t.max,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-orientation":t.orientation},t.ptm("startHandler")),null,16,p)):s("",!0),t.range?(i(),a("span",r({key:2,class:t.cx("handle"),style:[t.sx("handle"),h.rangeEndHandleStyle],onTouchstart:e[10]||(e[10]=function(t){return h.onDragStart(t,1)}),onTouchmove:e[11]||(e[11]=function(t){return h.onDrag(t)}),onTouchend:e[12]||(e[12]=function(t){return h.onDragEnd(t)}),onMousedown:e[13]||(e[13]=function(t){return h.onMouseDown(t,1)}),onKeydown:e[14]||(e[14]=function(t){return h.onKeyDown(t,1)}),tabindex:t.tabindex,role:"slider","aria-valuemin":t.min,"aria-valuenow":t.modelValue?t.modelValue[1]:null,"aria-valuemax":t.max,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-orientation":t.orientation},t.ptm("endHandler")),null,16,f)):s("",!0)],16)};export{g as default};
|
package/slider/slider.js
CHANGED
|
@@ -40,11 +40,11 @@ this.primevue.slider = (function (utils, BaseComponent, SliderStyle, vue) {
|
|
|
40
40
|
type: Number,
|
|
41
41
|
"default": 0
|
|
42
42
|
},
|
|
43
|
-
|
|
43
|
+
ariaLabelledby: {
|
|
44
44
|
type: String,
|
|
45
45
|
"default": null
|
|
46
46
|
},
|
|
47
|
-
|
|
47
|
+
ariaLabel: {
|
|
48
48
|
type: String,
|
|
49
49
|
"default": null
|
|
50
50
|
}
|
package/slider/slider.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.slider=function(e,t,n,i){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(){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 o(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return u(e)}function u(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 d={name:"Slider",extends:{name:"BaseSlider",extends:a(t).default,props:{modelValue:[Number,Array],min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},step:{type:Number,default:null},range:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:0},
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.slider=function(e,t,n,i){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(){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 o(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return u(e)}function u(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 d={name:"Slider",extends:{name:"BaseSlider",extends:a(t).default,props:{modelValue:[Number,Array],min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},step:{type:Number,default:null},range:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a(n).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","slideend"],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var t=this.$el.getBoundingClientRect();this.initX=t.left+e.DomHandler.getWindowScrollLeft(),this.initY=t.top+e.DomHandler.getWindowScrollTop(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue:function(e){var t=("horizontal"===this.orientation?100*((e.touches?e.touches[0].pageX:e.pageX)-this.initX)/this.barWidth:100*(this.initY+this.barHeight-(e.touches?e.touches[0].pageY:e.pageY))/this.barHeight)/100*(this.max-this.min)+this.min;if(this.step){var n=this.range?this.modelValue[this.handleIndex]:this.modelValue,i=t-n;i<0?t=n+Math.ceil(t/this.step-n/this.step)*this.step:i>0&&(t=n+Math.floor(t/this.step-n/this.step)*this.step)}else t=Math.floor(t);this.updateModel(e,t)},updateModel:function(e,t){var n,i,a=parseFloat(t.toFixed(10));this.range?(n=this.modelValue?s(i=this.modelValue)||l(i)||o(i)||r():[],0==this.handleIndex?(a<this.min?a=this.min:a>=this.max&&(a=this.max),n[0]=a):(a>this.max?a=this.max:a<=this.min&&(a=this.min),n[1]=a)):(a<this.min?a=this.min:a>this.max&&(a=this.max),n=a),this.$emit("update:modelValue",n),this.$emit("change",n)},onDragStart:function(e,t){this.disabled||(this.$el.setAttribute("data-p-sliding",!0),this.dragging=!0,this.updateDomData(),this.handleIndex=this.range&&this.modelValue[0]===this.max?0:t,e.currentTarget.focus(),e.preventDefault())},onDrag:function(e){this.dragging&&(this.setValue(e),e.preventDefault())},onDragEnd:function(e){this.dragging&&(this.dragging=!1,this.$el.setAttribute("data-p-sliding",!1),this.$emit("slideend",{originalEvent:e,value:this.modelValue}))},onBarClick:function(t){this.disabled||"handle"!==e.DomHandler.getAttribute(t.target,"data-pc-section")&&(this.updateDomData(),this.setValue(t))},onMouseDown:function(e,t){this.bindDragListeners(),this.onDragStart(e,t)},onKeyDown:function(e,t){switch(this.handleIndex=t,e.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(e,t),e.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(e,t),e.preventDefault();break;case"PageDown":this.decrementValue(e,t,!0),e.preventDefault();break;case"PageUp":this.incrementValue(e,t,!0),e.preventDefault();break;case"Home":this.updateModel(e,this.min),e.preventDefault();break;case"End":this.updateModel(e,this.max),e.preventDefault()}},decrementValue:function(e,t){this.updateModel(e,this.range?this.step?this.modelValue[t]-this.step:this.modelValue[t]-1:this.step?this.modelValue-this.step:!this.step&&(arguments.length>2&&void 0!==arguments[2]&&arguments[2])?this.modelValue-10:this.modelValue-1),e.preventDefault()},incrementValue:function(e,t){this.updateModel(e,this.range?this.step?this.modelValue[t]+this.step:this.modelValue[t]+1:this.step?this.modelValue+this.step:!this.step&&(arguments.length>2&&void 0!==arguments[2]&&arguments[2])?this.modelValue+10:this.modelValue+1),e.preventDefault()},bindDragListeners:function(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener("mousemove",this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener("mouseup",this.dragEndListener))},unbindDragListeners:function(){this.dragListener&&(document.removeEventListener("mousemove",this.dragListener),this.dragListener=null),this.dragEndListener&&(document.removeEventListener("mouseup",this.dragEndListener),this.dragEndListener=null)}},computed:{horizontal:function(){return"horizontal"===this.orientation},vertical:function(){return"vertical"===this.orientation},rangeStyle:function(){if(this.range){var e=this.rangeEndPosition>this.rangeStartPosition?this.rangeEndPosition-this.rangeStartPosition:this.rangeStartPosition-this.rangeEndPosition,t=this.rangeEndPosition>this.rangeStartPosition?this.rangeStartPosition:this.rangeEndPosition;return this.horizontal?{left:t+"%",width:e+"%"}:{bottom:t+"%",height:e+"%"}}return this.horizontal?{width:this.handlePosition+"%"}:{height:this.handlePosition+"%"}},handleStyle:function(){return this.horizontal?{left:this.handlePosition+"%"}:{bottom:this.handlePosition+"%"}},handlePosition:function(){return this.modelValue<this.min?0:this.modelValue>this.max?100:100*(this.modelValue-this.min)/(this.max-this.min)},rangeStartPosition:function(){return this.modelValue&&this.modelValue[0]?100*(this.modelValue[0]<this.min?0:this.modelValue[0]-this.min)/(this.max-this.min):0},rangeEndPosition:function(){return this.modelValue&&2===this.modelValue.length?100*(this.modelValue[1]>this.max?100:this.modelValue[1]-this.min)/(this.max-this.min):100},rangeStartHandleStyle:function(){return this.horizontal?{left:this.rangeStartPosition+"%"}:{bottom:this.rangeStartPosition+"%"}},rangeEndHandleStyle:function(){return this.horizontal?{left:this.rangeEndPosition+"%"}:{bottom:this.rangeEndPosition+"%"}}}},h=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation"],m=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation"],c=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation"];return d.render=function(e,t,n,a,r,o){return i.openBlock(),i.createElementBlock("div",i.mergeProps({class:e.cx("root"),onClick:t[15]||(t[15]=function(){return o.onBarClick&&o.onBarClick.apply(o,arguments)})},e.ptm("root"),{"data-p-sliding":!1,"data-pc-name":"slider"}),[i.createElementVNode("span",i.mergeProps({class:e.cx("range"),style:[e.sx("range"),o.rangeStyle]},e.ptm("range")),null,16),e.range?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:0,class:e.cx("handle"),style:[e.sx("handle"),o.handleStyle],onTouchstart:t[0]||(t[0]=function(e){return o.onDragStart(e)}),onTouchmove:t[1]||(t[1]=function(e){return o.onDrag(e)}),onTouchend:t[2]||(t[2]=function(e){return o.onDragEnd(e)}),onMousedown:t[3]||(t[3]=function(e){return o.onMouseDown(e)}),onKeydown:t[4]||(t[4]=function(e){return o.onKeyDown(e)}),tabindex:e.tabindex,role:"slider","aria-valuemin":e.min,"aria-valuenow":e.modelValue,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm("handle")),null,16,h)),e.range?(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:1,class:e.cx("handle"),style:[e.sx("handle"),o.rangeStartHandleStyle],onTouchstart:t[5]||(t[5]=function(e){return o.onDragStart(e,0)}),onTouchmove:t[6]||(t[6]=function(e){return o.onDrag(e)}),onTouchend:t[7]||(t[7]=function(e){return o.onDragEnd(e)}),onMousedown:t[8]||(t[8]=function(e){return o.onMouseDown(e,0)}),onKeydown:t[9]||(t[9]=function(e){return o.onKeyDown(e,0)}),tabindex:e.tabindex,role:"slider","aria-valuemin":e.min,"aria-valuenow":e.modelValue?e.modelValue[0]:null,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm("startHandler")),null,16,m)):i.createCommentVNode("",!0),e.range?(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:2,class:e.cx("handle"),style:[e.sx("handle"),o.rangeEndHandleStyle],onTouchstart:t[10]||(t[10]=function(e){return o.onDragStart(e,1)}),onTouchmove:t[11]||(t[11]=function(e){return o.onDrag(e)}),onTouchend:t[12]||(t[12]=function(e){return o.onDragEnd(e)}),onMousedown:t[13]||(t[13]=function(e){return o.onMouseDown(e,1)}),onKeydown:t[14]||(t[14]=function(e){return o.onKeyDown(e,1)}),tabindex:e.tabindex,role:"slider","aria-valuemin":e.min,"aria-valuenow":e.modelValue?e.modelValue[1]:null,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm("endHandler")),null,16,c)):i.createCommentVNode("",!0)],16)},d}(primevue.utils,primevue.basecomponent,primevue.slider.style,Vue);
|
package/speeddial/SpeedDial.d.ts
CHANGED
|
@@ -247,11 +247,11 @@ export interface SpeedDialProps {
|
|
|
247
247
|
/**
|
|
248
248
|
* Defines a string value that labels an interactive list element.
|
|
249
249
|
*/
|
|
250
|
-
|
|
250
|
+
ariaLabel?: string | undefined;
|
|
251
251
|
/**
|
|
252
252
|
* Identifier of the underlying list element.
|
|
253
253
|
*/
|
|
254
|
-
|
|
254
|
+
ariaLabelledby?: string | undefined;
|
|
255
255
|
/**
|
|
256
256
|
* Used to pass attributes to DOM elements inside the component.
|
|
257
257
|
* @type {SpeedDialPassThroughOptions}
|