primevue 3.23.0 → 3.24.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/LICENSE.md +1 -1
- package/README.md +12 -12
- package/accordion/Accordion.d.ts +53 -21
- package/accordiontab/AccordionTab.d.ts +33 -12
- package/autocomplete/AutoComplete.d.ts +111 -84
- package/avatar/Avatar.d.ts +38 -25
- package/avatar/Avatar.vue +1 -1
- package/avatar/avatar.cjs.js +2 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +2 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +2 -1
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +30 -14
- package/badge/Badge.d.ts +34 -20
- package/badge/Badge.vue +16 -5
- package/badge/badge.cjs.js +15 -5
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +15 -5
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +16 -7
- package/badge/badge.min.js +1 -1
- package/badgedirective/BadgeDirective.d.ts +60 -1
- package/blockui/BlockUI.d.ts +36 -16
- package/breadcrumb/Breadcrumb.d.ts +37 -20
- package/button/Button.d.ts +74 -17
- package/button/Button.vue +51 -8
- package/button/button.cjs.js +51 -8
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +51 -8
- package/button/button.esm.min.js +1 -1
- package/button/button.js +51 -8
- package/button/button.min.js +1 -1
- package/calendar/Calendar.d.ts +112 -77
- package/card/Card.d.ts +35 -15
- package/carousel/Carousel.d.ts +47 -29
- package/cascadeselect/CascadeSelect.d.ts +70 -59
- package/chart/Chart.d.ts +41 -23
- package/checkbox/Checkbox.d.ts +39 -15
- package/checkbox/Checkbox.vue +1 -1
- package/checkbox/checkbox.cjs.js +1 -1
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +1 -1
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +1 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chip/Chip.d.ts +35 -14
- package/chips/Chips.d.ts +45 -20
- package/colorpicker/ColorPicker.d.ts +46 -28
- package/column/Column.d.ts +81 -65
- package/columngroup/ColumnGroup.d.ts +29 -13
- package/config/config.cjs.js +20 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +20 -1
- package/config/config.esm.min.js +1 -1
- package/config/config.js +20 -1
- package/config/config.min.js +1 -1
- package/confirmationoptions/ConfirmationOptions.d.ts +15 -6
- package/confirmationservice/ConfirmationService.d.ts +11 -0
- package/confirmdialog/ConfirmDialog.d.ts +35 -17
- package/confirmpopup/ConfirmPopup.d.ts +32 -17
- package/contextmenu/ContextMenu.d.ts +51 -35
- package/core/core.js +339 -104
- package/core/core.min.js +6 -6
- package/datatable/DataTable.d.ts +248 -205
- package/datatable/DataTable.vue +72 -111
- package/datatable/TableBody.vue +3 -17
- package/datatable/datatable.cjs.js +63 -57
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +63 -57
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +63 -57
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +65 -47
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +33 -13
- package/deferredcontent/DeferredContent.d.ts +30 -13
- package/dialog/Dialog.d.ts +67 -46
- package/dialogservice/DialogService.d.ts +13 -2
- package/divider/Divider.d.ts +35 -30
- package/dock/Dock.d.ts +49 -36
- package/dropdown/Dropdown.d.ts +90 -82
- package/dropdown/Dropdown.vue +1 -1
- package/dropdown/dropdown.cjs.js +1 -1
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1 -1
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1 -1
- package/dropdown/dropdown.min.js +1 -1
- package/dynamicdialog/DynamicDialog.d.ts +30 -10
- package/dynamicdialog/DynamicDialog.vue +2 -2
- package/dynamicdialog/dynamicdialog.cjs.js +3 -3
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +2 -2
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +3 -3
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/dynamicdialogoptions/DynamicDialogOptions.d.ts +28 -8
- package/editor/Editor.d.ts +48 -17
- package/fieldset/Fieldset.d.ts +43 -16
- package/fileupload/FileUpload.d.ts +101 -47
- package/focustrap/FocusTrap.d.ts +42 -3
- package/fullcalendar/FullCalendar.d.ts +1 -1
- package/galleria/Galleria.d.ts +64 -40
- package/image/Image.d.ts +33 -14
- package/inlinemessage/InlineMessage.d.ts +31 -17
- package/inplace/Inplace.d.ts +41 -18
- package/inputmask/InputMask.d.ts +41 -17
- package/inputnumber/InputNumber.d.ts +60 -41
- package/inputswitch/InputSwitch.d.ts +35 -15
- package/inputswitch/InputSwitch.vue +1 -0
- package/inputswitch/inputswitch.cjs.js +1 -1
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +1 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +1 -1
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/InputText.d.ts +32 -12
- package/knob/Knob.d.ts +47 -21
- package/listbox/Listbox.d.ts +81 -60
- package/megamenu/MegaMenu.d.ts +42 -27
- package/megamenu/MegaMenu.vue +17 -0
- package/megamenu/megamenu.cjs.js +1 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +1 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +1 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +51 -30
- package/menubar/Menubar.d.ts +36 -19
- package/menuitem/MenuItem.d.ts +22 -10
- package/message/Message.d.ts +40 -21
- package/multiselect/MultiSelect.d.ts +111 -90
- package/orderlist/OrderList.d.ts +51 -23
- package/organizationchart/OrganizationChart.d.ts +43 -26
- package/overlaypanel/OverlayPanel.d.ts +46 -26
- package/package.json +2 -2
- package/paginator/Paginator.d.ts +49 -24
- package/panel/Panel.d.ts +39 -14
- package/panelmenu/PanelMenu.d.ts +49 -21
- package/password/Password.d.ts +47 -28
- package/picklist/PickList.d.ts +74 -33
- package/progressbar/ProgressBar.d.ts +34 -17
- package/progressspinner/ProgressSpinner.d.ts +32 -13
- package/radiobutton/RadioButton.d.ts +32 -14
- package/rating/Rating.d.ts +51 -25
- package/resources/themes/arya-blue/theme.css +34 -11
- package/resources/themes/arya-green/theme.css +34 -11
- package/resources/themes/arya-orange/theme.css +34 -11
- package/resources/themes/arya-purple/theme.css +34 -11
- package/resources/themes/bootstrap4-dark-blue/theme.css +34 -11
- package/resources/themes/bootstrap4-dark-purple/theme.css +34 -11
- package/resources/themes/bootstrap4-light-blue/theme.css +34 -11
- package/resources/themes/bootstrap4-light-purple/theme.css +34 -11
- package/resources/themes/fluent-light/theme.css +34 -11
- package/resources/themes/lara-dark-blue/theme.css +34 -11
- package/resources/themes/lara-dark-indigo/theme.css +34 -11
- package/resources/themes/lara-dark-purple/theme.css +34 -11
- package/resources/themes/lara-dark-teal/theme.css +34 -11
- package/resources/themes/lara-light-blue/theme.css +34 -11
- package/resources/themes/lara-light-indigo/theme.css +34 -11
- package/resources/themes/lara-light-purple/theme.css +34 -11
- package/resources/themes/lara-light-teal/theme.css +34 -11
- package/resources/themes/luna-amber/theme.css +34 -11
- package/resources/themes/luna-blue/theme.css +34 -11
- package/resources/themes/luna-green/theme.css +34 -11
- package/resources/themes/luna-pink/theme.css +34 -11
- package/resources/themes/md-dark-deeppurple/theme.css +34 -11
- package/resources/themes/md-dark-indigo/theme.css +34 -11
- package/resources/themes/md-light-deeppurple/theme.css +34 -11
- package/resources/themes/md-light-indigo/theme.css +34 -11
- package/resources/themes/mdc-dark-deeppurple/theme.css +34 -11
- package/resources/themes/mdc-dark-indigo/theme.css +34 -11
- package/resources/themes/mdc-light-deeppurple/theme.css +34 -11
- package/resources/themes/mdc-light-indigo/theme.css +34 -11
- package/resources/themes/mira/theme.css +34 -11
- package/resources/themes/nano/theme.css +34 -11
- package/resources/themes/nova/theme.css +34 -11
- package/resources/themes/nova-accent/theme.css +34 -11
- package/resources/themes/nova-alt/theme.css +34 -11
- package/resources/themes/nova-vue/theme.css +34 -11
- package/resources/themes/rhea/theme.css +34 -11
- package/resources/themes/saga-blue/theme.css +34 -11
- package/resources/themes/saga-green/theme.css +34 -11
- package/resources/themes/saga-orange/theme.css +34 -11
- package/resources/themes/saga-purple/theme.css +34 -11
- package/resources/themes/soho-dark/theme.css +34 -11
- package/resources/themes/soho-light/theme.css +34 -11
- package/resources/themes/tailwind-light/theme.css +34 -11
- package/resources/themes/vela-blue/theme.css +34 -11
- package/resources/themes/vela-green/theme.css +34 -11
- package/resources/themes/vela-orange/theme.css +34 -11
- package/resources/themes/vela-purple/theme.css +34 -11
- package/resources/themes/viva-dark/theme.css +34 -11
- package/resources/themes/viva-light/theme.css +34 -11
- package/ripple/Ripple.d.ts +24 -1
- package/row/Row.d.ts +28 -10
- package/scrollpanel/ScrollPanel.d.ts +29 -11
- package/scrolltop/ScrollTop.d.ts +35 -18
- package/selectbutton/SelectButton.d.ts +47 -27
- package/sidebar/Sidebar.d.ts +46 -27
- package/skeleton/Skeleton.d.ts +36 -22
- package/slider/Slider.d.ts +46 -23
- package/speeddial/SpeedDial.d.ts +64 -51
- package/splitbutton/SplitButton.d.ts +73 -24
- package/splitbutton/SplitButton.vue +41 -1
- package/splitbutton/splitbutton.cjs.js +43 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +43 -3
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +43 -3
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +49 -30
- package/splitterpanel/SplitterPanel.d.ts +28 -10
- package/steps/Steps.d.ts +36 -15
- package/styleclass/StyleClass.d.ts +72 -1
- package/tabmenu/TabMenu.d.ts +41 -16
- package/tabmenu/TabMenu.vue +1 -1
- package/tabmenu/tabmenu.cjs.js +1 -0
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +1 -0
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +1 -0
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +29 -11
- package/tabview/TabView.d.ts +47 -19
- package/tag/Tag.d.ts +33 -15
- package/terminal/Terminal.d.ts +30 -14
- package/terminalservice/TerminalService.d.ts +24 -5
- package/textarea/Textarea.d.ts +33 -11
- package/tieredmenu/TieredMenu.d.ts +45 -31
- package/timeline/Timeline.d.ts +41 -32
- package/toast/Toast.d.ts +63 -35
- package/toast/Toast.vue +4 -2
- package/toast/ToastMessage.vue +4 -4
- package/toast/toast.cjs.js +8 -6
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +8 -6
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +8 -6
- package/toast/toast.min.js +1 -1
- package/toastservice/ToastService.d.ts +16 -3
- package/togglebutton/ToggleButton.d.ts +42 -22
- package/toolbar/Toolbar.d.ts +34 -14
- package/tooltip/Tooltip.d.ts +99 -1
- package/tree/Tree.d.ts +55 -36
- package/treeselect/TreeSelect.d.ts +63 -55
- package/treetable/TreeTable.d.ts +121 -107
- package/tristatecheckbox/TriStateCheckbox.d.ts +35 -12
- package/ts-helpers.d.ts +2 -2
- package/utils/utils.cjs.js +18 -15
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +18 -15
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +18 -15
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +62 -2
- package/vetur-tags.json +17 -2
- package/virtualscroller/VirtualScroller.d.ts +99 -43
- package/virtualscroller/VirtualScroller.vue +248 -72
- package/virtualscroller/virtualscroller.cjs.js +234 -72
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +234 -72
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +235 -74
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1922 -1744
package/checkbox/Checkbox.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Checkbox is an extension to standard checkbox element with theming.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/checkbox/)
|
|
6
|
+
*
|
|
7
|
+
* @module checkbox
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { InputHTMLAttributes } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Defines valid properties in Checkbox component.
|
|
15
|
+
*/
|
|
4
16
|
export interface CheckboxProps {
|
|
5
17
|
/**
|
|
6
18
|
* Value of the checkbox.
|
|
@@ -16,18 +28,22 @@ export interface CheckboxProps {
|
|
|
16
28
|
name?: string | undefined;
|
|
17
29
|
/**
|
|
18
30
|
* Allows to select a boolean value instead of multiple values.
|
|
31
|
+
* @default false
|
|
19
32
|
*/
|
|
20
33
|
binary?: boolean;
|
|
21
34
|
/**
|
|
22
35
|
* When present, it specifies that the element should be disabled.
|
|
36
|
+
* @default false
|
|
23
37
|
*/
|
|
24
38
|
disabled?: boolean | undefined;
|
|
25
39
|
/**
|
|
26
40
|
* When present, it specifies that an input field is read-only.
|
|
41
|
+
* @default false
|
|
27
42
|
*/
|
|
28
43
|
readonly?: boolean | undefined;
|
|
29
44
|
/**
|
|
30
45
|
* When present, it specifies that the element is required.
|
|
46
|
+
* @default false
|
|
31
47
|
*/
|
|
32
48
|
required?: boolean | undefined;
|
|
33
49
|
/**
|
|
@@ -36,10 +52,12 @@ export interface CheckboxProps {
|
|
|
36
52
|
tabindex?: number | undefined;
|
|
37
53
|
/**
|
|
38
54
|
* Value in checked state.
|
|
55
|
+
* @default true
|
|
39
56
|
*/
|
|
40
57
|
trueValue?: any;
|
|
41
58
|
/**
|
|
42
59
|
* Value in unchecked state.
|
|
60
|
+
* @default false
|
|
43
61
|
*/
|
|
44
62
|
falseValue?: any;
|
|
45
63
|
/**
|
|
@@ -70,29 +88,44 @@ export interface CheckboxProps {
|
|
|
70
88
|
|
|
71
89
|
export interface CheckboxSlots {}
|
|
72
90
|
|
|
73
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Defines valid emits in Checkbox component.
|
|
93
|
+
*/
|
|
94
|
+
export interface CheckboxEmits {
|
|
74
95
|
/**
|
|
75
96
|
* Emitted when the page changes.
|
|
76
97
|
* @param {*} value - New page value.
|
|
77
98
|
*/
|
|
78
|
-
'update:page'
|
|
99
|
+
'update:page'(value: any): void;
|
|
79
100
|
/**
|
|
80
101
|
* Callback to invoke on value click.
|
|
81
102
|
* @param {MouseEvent} event - Browser event.
|
|
82
103
|
*/
|
|
83
|
-
click
|
|
104
|
+
click(event: MouseEvent): void;
|
|
84
105
|
/**
|
|
85
106
|
* Callback to invoke on value change.
|
|
86
107
|
* @param {Event} event - Browser event.
|
|
87
108
|
*/
|
|
88
|
-
change
|
|
109
|
+
change(event: Event): void;
|
|
89
110
|
/**
|
|
90
111
|
* Callback to invoke on value change.
|
|
91
112
|
* @param {boolean} value - New value.
|
|
92
113
|
*/
|
|
93
|
-
input
|
|
94
|
-
}
|
|
114
|
+
input(value: boolean): void;
|
|
115
|
+
}
|
|
95
116
|
|
|
117
|
+
/**
|
|
118
|
+
* **PrimeVue - Checkbox**
|
|
119
|
+
*
|
|
120
|
+
* _Accordion groups a collection of contents in tabs._
|
|
121
|
+
*
|
|
122
|
+
* [Live Demo](https://www.primevue.org/checkbox/)
|
|
123
|
+
* --- ---
|
|
124
|
+
* 
|
|
125
|
+
*
|
|
126
|
+
* @group Component
|
|
127
|
+
*
|
|
128
|
+
*/
|
|
96
129
|
declare class Checkbox extends ClassComponent<CheckboxProps, CheckboxSlots, CheckboxEmits> {}
|
|
97
130
|
|
|
98
131
|
declare module '@vue/runtime-core' {
|
|
@@ -101,13 +134,4 @@ declare module '@vue/runtime-core' {
|
|
|
101
134
|
}
|
|
102
135
|
}
|
|
103
136
|
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* Checkbox is an extension to standard checkbox element with theming.
|
|
107
|
-
*
|
|
108
|
-
* Demos:
|
|
109
|
-
*
|
|
110
|
-
* - [Checkbox](https://www.primefaces.org/primevue/checkbox)
|
|
111
|
-
*
|
|
112
|
-
*/
|
|
113
137
|
export default Checkbox;
|
package/checkbox/Checkbox.vue
CHANGED
package/checkbox/checkbox.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/utils"),l=require("vue"),t={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.ObjectUtils.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.ObjectUtils.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const a={class:"p-hidden-accessible"},i=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];t.render=function(e,t,u,s,n,d){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(d.containerClass),onClick:t[2]||(t[2]=e=>d.onClick(e))},[l.createElementVNode("div",a,[l.createElementVNode("input",l.mergeProps({ref:"input",id:u.inputId,type:"checkbox",value:u.value,name:u.name,checked:d.checked,tabindex:u.tabindex,disabled:u.disabled,readonly:u.readonly,required:u.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=e=>d.onFocus(e)),onBlur:t[1]||(t[1]=e=>d.onBlur(e))},u.inputProps),null,16,i)]),l.createElementVNode("div",{ref:"box",class:l.normalizeClass(["p-checkbox-box",u.inputClass,{"p-highlight":d.checked,"p-disabled":u.disabled,"p-focus":n.focused}]),style:l.normalizeStyle(u.inputStyle)},[l.createElementVNode("span",{class:l.normalizeClass(["p-checkbox-icon",{"pi pi-check":d.checked}])},null,2)],6)],2)},module.exports=t;
|
|
1
|
+
"use strict";var e=require("primevue/utils"),l=require("vue"),t={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled&&!this.readonly){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.ObjectUtils.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.ObjectUtils.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const a={class:"p-hidden-accessible"},i=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];t.render=function(e,t,u,s,n,d){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(d.containerClass),onClick:t[2]||(t[2]=e=>d.onClick(e))},[l.createElementVNode("div",a,[l.createElementVNode("input",l.mergeProps({ref:"input",id:u.inputId,type:"checkbox",value:u.value,name:u.name,checked:d.checked,tabindex:u.tabindex,disabled:u.disabled,readonly:u.readonly,required:u.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=e=>d.onFocus(e)),onBlur:t[1]||(t[1]=e=>d.onBlur(e))},u.inputProps),null,16,i)]),l.createElementVNode("div",{ref:"box",class:l.normalizeClass(["p-checkbox-box",u.inputClass,{"p-highlight":d.checked,"p-disabled":u.disabled,"p-focus":n.focused}]),style:l.normalizeStyle(u.inputStyle)},[l.createElementVNode("span",{class:l.normalizeClass(["p-checkbox-icon",{"pi pi-check":d.checked}])},null,2)],6)],2)},module.exports=t;
|
package/checkbox/checkbox.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ObjectUtils as e}from"primevue/utils";import{openBlock as l,createElementBlock as t,normalizeClass as a,createElementVNode as i,mergeProps as u,normalizeStyle as d}from"vue";var s={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const n={class:"p-hidden-accessible"},c=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];s.render=function(e,s,o,r,h,p){return l(),t("div",{class:a(p.containerClass),onClick:s[2]||(s[2]=e=>p.onClick(e))},[i("div",n,[i("input",u({ref:"input",id:o.inputId,type:"checkbox",value:o.value,name:o.name,checked:p.checked,tabindex:o.tabindex,disabled:o.disabled,readonly:o.readonly,required:o.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:s[0]||(s[0]=e=>p.onFocus(e)),onBlur:s[1]||(s[1]=e=>p.onBlur(e))},o.inputProps),null,16,c)]),i("div",{ref:"box",class:a(["p-checkbox-box",o.inputClass,{"p-highlight":p.checked,"p-disabled":o.disabled,"p-focus":h.focused}]),style:d(o.inputStyle)},[i("span",{class:a(["p-checkbox-icon",{"pi pi-check":p.checked}])},null,2)],6)],2)};export{s as default};
|
|
1
|
+
import{ObjectUtils as e}from"primevue/utils";import{openBlock as l,createElementBlock as t,normalizeClass as a,createElementVNode as i,mergeProps as u,normalizeStyle as d}from"vue";var s={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled&&!this.readonly){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const n={class:"p-hidden-accessible"},c=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];s.render=function(e,s,o,r,h,p){return l(),t("div",{class:a(p.containerClass),onClick:s[2]||(s[2]=e=>p.onClick(e))},[i("div",n,[i("input",u({ref:"input",id:o.inputId,type:"checkbox",value:o.value,name:o.name,checked:p.checked,tabindex:o.tabindex,disabled:o.disabled,readonly:o.readonly,required:o.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:s[0]||(s[0]=e=>p.onFocus(e)),onBlur:s[1]||(s[1]=e=>p.onBlur(e))},o.inputProps),null,16,c)]),i("div",{ref:"box",class:a(["p-checkbox-box",o.inputClass,{"p-highlight":p.checked,"p-disabled":o.disabled,"p-focus":h.focused}]),style:d(o.inputStyle)},[i("span",{class:a(["p-checkbox-icon",{"pi pi-check":p.checked}])},null,2)],6)],2)};export{s as default};
|
package/checkbox/checkbox.js
CHANGED
package/checkbox/checkbox.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.checkbox=function(e,l){"use strict";var t={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.ObjectUtils.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.ObjectUtils.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const a={class:"p-hidden-accessible"},i=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];return t.render=function(e,t,u,s,n,d){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(d.containerClass),onClick:t[2]||(t[2]=e=>d.onClick(e))},[l.createElementVNode("div",a,[l.createElementVNode("input",l.mergeProps({ref:"input",id:u.inputId,type:"checkbox",value:u.value,name:u.name,checked:d.checked,tabindex:u.tabindex,disabled:u.disabled,readonly:u.readonly,required:u.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=e=>d.onFocus(e)),onBlur:t[1]||(t[1]=e=>d.onBlur(e))},u.inputProps),null,16,i)]),l.createElementVNode("div",{ref:"box",class:l.normalizeClass(["p-checkbox-box",u.inputClass,{"p-highlight":d.checked,"p-disabled":u.disabled,"p-focus":n.focused}]),style:l.normalizeStyle(u.inputStyle)},[l.createElementVNode("span",{class:l.normalizeClass(["p-checkbox-icon",{"pi pi-check":d.checked}])},null,2)],6)],2)},t}(primevue.utils,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.checkbox=function(e,l){"use strict";var t={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled&&!this.readonly){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.ObjectUtils.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.ObjectUtils.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const a={class:"p-hidden-accessible"},i=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];return t.render=function(e,t,u,s,n,d){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(d.containerClass),onClick:t[2]||(t[2]=e=>d.onClick(e))},[l.createElementVNode("div",a,[l.createElementVNode("input",l.mergeProps({ref:"input",id:u.inputId,type:"checkbox",value:u.value,name:u.name,checked:d.checked,tabindex:u.tabindex,disabled:u.disabled,readonly:u.readonly,required:u.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=e=>d.onFocus(e)),onBlur:t[1]||(t[1]=e=>d.onBlur(e))},u.inputProps),null,16,i)]),l.createElementVNode("div",{ref:"box",class:l.normalizeClass(["p-checkbox-box",u.inputClass,{"p-highlight":d.checked,"p-disabled":u.disabled,"p-focus":n.focused}]),style:l.normalizeStyle(u.inputStyle)},[l.createElementVNode("span",{class:l.normalizeClass(["p-checkbox-icon",{"pi pi-check":d.checked}])},null,2)],6)],2)},t}(primevue.utils,Vue);
|
package/chip/Chip.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Chip represents people using icons, labels and images.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/chip)
|
|
6
|
+
*
|
|
7
|
+
* @module chip
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { VNode } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Defines valid properties in Chip component.
|
|
15
|
+
*/
|
|
4
16
|
export interface ChipProps {
|
|
5
17
|
/**
|
|
6
18
|
* Defines the text to display.
|
|
@@ -16,30 +28,48 @@ export interface ChipProps {
|
|
|
16
28
|
image?: string;
|
|
17
29
|
/**
|
|
18
30
|
* Whether to display a remove icon.
|
|
31
|
+
* @defaultValue false
|
|
19
32
|
*/
|
|
20
33
|
removable?: boolean;
|
|
21
34
|
/**
|
|
22
35
|
* Icon of the remove element.
|
|
23
|
-
*
|
|
36
|
+
* @defaultValue pi pi-times-circle
|
|
24
37
|
*/
|
|
25
38
|
removeIcon?: string;
|
|
26
39
|
}
|
|
27
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Defines valid slots in Chip component.
|
|
43
|
+
*/
|
|
28
44
|
export interface ChipSlots {
|
|
29
45
|
/**
|
|
30
46
|
* Content can easily be customized with the default slot instead of using the built-in modes.
|
|
31
47
|
*/
|
|
32
|
-
default
|
|
48
|
+
default(): VNode[];
|
|
33
49
|
}
|
|
34
50
|
|
|
35
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Defines valid properties in Chip component.
|
|
53
|
+
*/
|
|
54
|
+
export interface ChipEmits {
|
|
36
55
|
/**
|
|
37
56
|
* Callback to invoke when a chip is removed.
|
|
38
57
|
* @param {Event} event - Browser event.
|
|
39
58
|
*/
|
|
40
|
-
remove
|
|
41
|
-
}
|
|
59
|
+
remove(event: Event): void;
|
|
60
|
+
}
|
|
42
61
|
|
|
62
|
+
/**
|
|
63
|
+
* **PrimeVue - Chip**
|
|
64
|
+
*
|
|
65
|
+
* _Chip represents people using icons, labels and images._
|
|
66
|
+
*
|
|
67
|
+
* [Live Demo](https://www.primevue.org/chip/)
|
|
68
|
+
* --- ---
|
|
69
|
+
* 
|
|
70
|
+
*
|
|
71
|
+
* @group Component
|
|
72
|
+
*/
|
|
43
73
|
declare class Chip extends ClassComponent<ChipProps, ChipSlots, ChipEmits> {}
|
|
44
74
|
|
|
45
75
|
declare module '@vue/runtime-core' {
|
|
@@ -48,13 +78,4 @@ declare module '@vue/runtime-core' {
|
|
|
48
78
|
}
|
|
49
79
|
}
|
|
50
80
|
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* Chip represents entities using icons, labels and images.
|
|
54
|
-
*
|
|
55
|
-
* Demos:
|
|
56
|
-
*
|
|
57
|
-
* - [Chip](https://www.primefaces.org/primevue/chip)
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
81
|
export default Chip;
|
package/chips/Chips.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Chips groups a collection of contents in tabs.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/chips/)
|
|
6
|
+
*
|
|
7
|
+
* @module chips
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { InputHTMLAttributes, VNode } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Custom add event.
|
|
15
|
+
* @see {@link ChipsEmits.add}
|
|
16
|
+
*/
|
|
4
17
|
export interface ChipsAddEvent {
|
|
5
18
|
/**
|
|
6
19
|
* Browser event.
|
|
@@ -13,10 +26,15 @@ export interface ChipsAddEvent {
|
|
|
13
26
|
}
|
|
14
27
|
|
|
15
28
|
/**
|
|
29
|
+
* Custom remove event.
|
|
30
|
+
* @see {@link ChipsEmits.remove}
|
|
16
31
|
* @extends ChipsAddEvent
|
|
17
32
|
*/
|
|
18
33
|
export interface ChipsRemoveEvent extends ChipsAddEvent {}
|
|
19
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Defines valid properties in Chips component.
|
|
37
|
+
*/
|
|
20
38
|
export interface ChipsProps {
|
|
21
39
|
/**
|
|
22
40
|
* Value of the component.
|
|
@@ -32,7 +50,7 @@ export interface ChipsProps {
|
|
|
32
50
|
addOnBlur?: boolean | undefined;
|
|
33
51
|
/**
|
|
34
52
|
* Whether to allow duplicate values or not.
|
|
35
|
-
*
|
|
53
|
+
* @defaultValue true.
|
|
36
54
|
*/
|
|
37
55
|
allowDuplicate?: boolean | undefined;
|
|
38
56
|
/**
|
|
@@ -57,7 +75,7 @@ export interface ChipsProps {
|
|
|
57
75
|
inputProps?: InputHTMLAttributes | undefined;
|
|
58
76
|
/**
|
|
59
77
|
* Icon to display in chip remove action.
|
|
60
|
-
*
|
|
78
|
+
* @defaultValue pi pi-times-circle
|
|
61
79
|
*/
|
|
62
80
|
removeTokenIcon?: string | undefined;
|
|
63
81
|
/**
|
|
@@ -77,38 +95,54 @@ export interface ChipsProps {
|
|
|
77
95
|
*/
|
|
78
96
|
'aria-label'?: string | undefined;
|
|
79
97
|
}
|
|
80
|
-
|
|
98
|
+
/**
|
|
99
|
+
* Defines valid slots in Chips slots.
|
|
100
|
+
*/
|
|
81
101
|
export interface ChipsSlots {
|
|
82
102
|
/**
|
|
83
103
|
* Custom chip template.
|
|
84
104
|
* @param {Object} scope - chip slot's params.
|
|
85
105
|
*/
|
|
86
|
-
chip
|
|
106
|
+
chip(scope: {
|
|
87
107
|
/**
|
|
88
108
|
* Value of the component
|
|
89
109
|
*/
|
|
90
110
|
value: any;
|
|
91
|
-
})
|
|
111
|
+
}): VNode[];
|
|
92
112
|
}
|
|
93
|
-
|
|
94
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Defines valid emits in Chips component.
|
|
115
|
+
*/
|
|
116
|
+
export interface ChipsEmits {
|
|
95
117
|
/**
|
|
96
118
|
* Emitted when the value changes.
|
|
97
119
|
* @param {*} value - New value.
|
|
98
120
|
*/
|
|
99
|
-
'update:modelValue'
|
|
121
|
+
'update:modelValue'(value: any[]): void;
|
|
100
122
|
/**
|
|
101
123
|
* Callback to invoke when a chip is added.
|
|
102
124
|
* @param {ChipsAddEvent} event - Custom add event.
|
|
103
125
|
*/
|
|
104
|
-
add
|
|
126
|
+
add(event: ChipsAddEvent): void;
|
|
105
127
|
/**
|
|
106
128
|
* Callback to invoke when a chip is removed.
|
|
107
129
|
* @param {ChipsRemoveEvent} event - Custom remove event.
|
|
108
130
|
*/
|
|
109
|
-
remove
|
|
110
|
-
}
|
|
131
|
+
remove(event: ChipsRemoveEvent): void;
|
|
132
|
+
}
|
|
111
133
|
|
|
134
|
+
/**
|
|
135
|
+
* **PrimeVue - Chips**
|
|
136
|
+
*
|
|
137
|
+
* _Chips is used to enter multiple values on an input field._
|
|
138
|
+
*
|
|
139
|
+
* [Live Demo](https://www.primevue.org/chips/)
|
|
140
|
+
* --- ---
|
|
141
|
+
* 
|
|
142
|
+
*
|
|
143
|
+
* @group Component
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
112
146
|
declare class Chips extends ClassComponent<ChipsProps, ChipsSlots, ChipsEmits> {}
|
|
113
147
|
|
|
114
148
|
declare module '@vue/runtime-core' {
|
|
@@ -117,13 +151,4 @@ declare module '@vue/runtime-core' {
|
|
|
117
151
|
}
|
|
118
152
|
}
|
|
119
153
|
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* Chips is used to enter multiple values on an input field.
|
|
123
|
-
*
|
|
124
|
-
* Demos:
|
|
125
|
-
*
|
|
126
|
-
* - [Chips](https://www.primefaces.org/primevue/chips)
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
154
|
export default Chips;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* ColorPicker groups a collection of contents in tabs.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/colorpicker/)
|
|
6
|
+
*
|
|
7
|
+
* @module colorpicker
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Custom change event.
|
|
14
|
+
* @see {@link ColorPickerEmits.change}
|
|
15
|
+
*/
|
|
7
16
|
export interface ColorPickerChangeEvent {
|
|
8
17
|
/**
|
|
9
18
|
* Browser event
|
|
@@ -15,6 +24,9 @@ export interface ColorPickerChangeEvent {
|
|
|
15
24
|
value: any;
|
|
16
25
|
}
|
|
17
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Defines valid properties in ColorPicker component.
|
|
29
|
+
*/
|
|
18
30
|
export interface ColorPickerProps {
|
|
19
31
|
/**
|
|
20
32
|
* Value of the component.
|
|
@@ -22,21 +34,22 @@ export interface ColorPickerProps {
|
|
|
22
34
|
modelValue?: any;
|
|
23
35
|
/**
|
|
24
36
|
* Initial color to display when value is not defined.
|
|
25
|
-
*
|
|
37
|
+
* @defaultValue ff0000
|
|
26
38
|
*/
|
|
27
39
|
defaultColor?: any;
|
|
28
40
|
/**
|
|
29
41
|
* Whether to display as an overlay or not.
|
|
42
|
+
* @defaultValue false
|
|
30
43
|
*/
|
|
31
44
|
inline?: boolean | undefined;
|
|
32
45
|
/**
|
|
33
46
|
* Format to use in value binding, supported formats are 'hex', 'rgb' and 'hsb'.
|
|
34
|
-
* @
|
|
35
|
-
* Default value is 'hex'.
|
|
47
|
+
* @defaultValue hex
|
|
36
48
|
*/
|
|
37
|
-
format?:
|
|
49
|
+
format?: 'hex' | 'rgb' | 'hsb' | undefined;
|
|
38
50
|
/**
|
|
39
51
|
* When present, it specifies that the component should be disabled.
|
|
52
|
+
* @defaultValue false
|
|
40
53
|
*/
|
|
41
54
|
disabled?: boolean | undefined;
|
|
42
55
|
/**
|
|
@@ -45,12 +58,12 @@ export interface ColorPickerProps {
|
|
|
45
58
|
tabindex?: string | undefined;
|
|
46
59
|
/**
|
|
47
60
|
* Whether to automatically manage layering.
|
|
48
|
-
*
|
|
61
|
+
* @defaultValue true
|
|
49
62
|
*/
|
|
50
63
|
autoZIndex?: boolean | undefined;
|
|
51
64
|
/**
|
|
52
65
|
* Base zIndex value to use in layering.
|
|
53
|
-
*
|
|
66
|
+
* @defaultValue 0
|
|
54
67
|
*/
|
|
55
68
|
baseZIndex?: number | undefined;
|
|
56
69
|
/**
|
|
@@ -59,35 +72,49 @@ export interface ColorPickerProps {
|
|
|
59
72
|
panelClass?: any;
|
|
60
73
|
/**
|
|
61
74
|
* A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself.
|
|
62
|
-
* @
|
|
63
|
-
* Default value is 'body'.
|
|
75
|
+
* @defaultValue body
|
|
64
76
|
*/
|
|
65
|
-
appendTo?:
|
|
77
|
+
appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
|
|
66
78
|
}
|
|
67
79
|
|
|
68
80
|
export interface ColorPickerSlots {}
|
|
69
81
|
|
|
70
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Defines valid emits in ColorPicker component.
|
|
84
|
+
*/
|
|
85
|
+
export interface ColorPickerEmits {
|
|
71
86
|
/**
|
|
72
87
|
* Emitted when the value changes.
|
|
73
88
|
* @param {*} value - New value.
|
|
74
89
|
*/
|
|
75
|
-
'update:modelValue'
|
|
90
|
+
'update:modelValue'(value: any): void;
|
|
76
91
|
/**
|
|
77
92
|
* Callback to invoke when a chip is added.
|
|
78
93
|
* @param {ColorPickerChangeEvent} event - Custom add event.
|
|
79
94
|
*/
|
|
80
|
-
change
|
|
95
|
+
change(event: ColorPickerChangeEvent): void;
|
|
81
96
|
/**
|
|
82
97
|
* Callback to invoke when input is cleared by the user.
|
|
83
98
|
*/
|
|
84
|
-
show
|
|
99
|
+
show(): void;
|
|
85
100
|
/**
|
|
86
101
|
* Callback to invoke when input is cleared by the user.
|
|
87
102
|
*/
|
|
88
|
-
hide
|
|
89
|
-
}
|
|
103
|
+
hide(): void;
|
|
104
|
+
}
|
|
90
105
|
|
|
106
|
+
/**
|
|
107
|
+
* **PrimeVue - ColorPicker**
|
|
108
|
+
*
|
|
109
|
+
* _ColorPicker groups a collection of contents in tabs._
|
|
110
|
+
*
|
|
111
|
+
* [Live Demo](https://www.primevue.org/colorpicker/)
|
|
112
|
+
* --- ---
|
|
113
|
+
* 
|
|
114
|
+
*
|
|
115
|
+
* @group Component
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
91
118
|
declare class ColorPicker extends ClassComponent<ColorPickerProps, ColorPickerSlots, ColorPickerEmits> {}
|
|
92
119
|
|
|
93
120
|
declare module '@vue/runtime-core' {
|
|
@@ -96,13 +123,4 @@ declare module '@vue/runtime-core' {
|
|
|
96
123
|
}
|
|
97
124
|
}
|
|
98
125
|
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* ColorPicker is an input component to select a color.
|
|
102
|
-
*
|
|
103
|
-
* Demos:
|
|
104
|
-
*
|
|
105
|
-
* - [ColorPicker](https://www.primefaces.org/primevue/colorpicker)
|
|
106
|
-
*
|
|
107
|
-
*/
|
|
108
126
|
export default ColorPicker;
|