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.
Files changed (266) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +12 -12
  3. package/accordion/Accordion.d.ts +53 -21
  4. package/accordiontab/AccordionTab.d.ts +33 -12
  5. package/autocomplete/AutoComplete.d.ts +111 -84
  6. package/avatar/Avatar.d.ts +38 -25
  7. package/avatar/Avatar.vue +1 -1
  8. package/avatar/avatar.cjs.js +2 -1
  9. package/avatar/avatar.cjs.min.js +1 -1
  10. package/avatar/avatar.esm.js +2 -1
  11. package/avatar/avatar.esm.min.js +1 -1
  12. package/avatar/avatar.js +2 -1
  13. package/avatar/avatar.min.js +1 -1
  14. package/avatargroup/AvatarGroup.d.ts +30 -14
  15. package/badge/Badge.d.ts +34 -20
  16. package/badge/Badge.vue +16 -5
  17. package/badge/badge.cjs.js +15 -5
  18. package/badge/badge.cjs.min.js +1 -1
  19. package/badge/badge.esm.js +15 -5
  20. package/badge/badge.esm.min.js +1 -1
  21. package/badge/badge.js +16 -7
  22. package/badge/badge.min.js +1 -1
  23. package/badgedirective/BadgeDirective.d.ts +60 -1
  24. package/blockui/BlockUI.d.ts +36 -16
  25. package/breadcrumb/Breadcrumb.d.ts +37 -20
  26. package/button/Button.d.ts +74 -17
  27. package/button/Button.vue +51 -8
  28. package/button/button.cjs.js +51 -8
  29. package/button/button.cjs.min.js +1 -1
  30. package/button/button.esm.js +51 -8
  31. package/button/button.esm.min.js +1 -1
  32. package/button/button.js +51 -8
  33. package/button/button.min.js +1 -1
  34. package/calendar/Calendar.d.ts +112 -77
  35. package/card/Card.d.ts +35 -15
  36. package/carousel/Carousel.d.ts +47 -29
  37. package/cascadeselect/CascadeSelect.d.ts +70 -59
  38. package/chart/Chart.d.ts +41 -23
  39. package/checkbox/Checkbox.d.ts +39 -15
  40. package/checkbox/Checkbox.vue +1 -1
  41. package/checkbox/checkbox.cjs.js +1 -1
  42. package/checkbox/checkbox.cjs.min.js +1 -1
  43. package/checkbox/checkbox.esm.js +1 -1
  44. package/checkbox/checkbox.esm.min.js +1 -1
  45. package/checkbox/checkbox.js +1 -1
  46. package/checkbox/checkbox.min.js +1 -1
  47. package/chip/Chip.d.ts +35 -14
  48. package/chips/Chips.d.ts +45 -20
  49. package/colorpicker/ColorPicker.d.ts +46 -28
  50. package/column/Column.d.ts +81 -65
  51. package/columngroup/ColumnGroup.d.ts +29 -13
  52. package/config/config.cjs.js +20 -1
  53. package/config/config.cjs.min.js +1 -1
  54. package/config/config.esm.js +20 -1
  55. package/config/config.esm.min.js +1 -1
  56. package/config/config.js +20 -1
  57. package/config/config.min.js +1 -1
  58. package/confirmationoptions/ConfirmationOptions.d.ts +15 -6
  59. package/confirmationservice/ConfirmationService.d.ts +11 -0
  60. package/confirmdialog/ConfirmDialog.d.ts +35 -17
  61. package/confirmpopup/ConfirmPopup.d.ts +32 -17
  62. package/contextmenu/ContextMenu.d.ts +51 -35
  63. package/core/core.js +339 -104
  64. package/core/core.min.js +6 -6
  65. package/datatable/DataTable.d.ts +248 -205
  66. package/datatable/DataTable.vue +72 -111
  67. package/datatable/TableBody.vue +3 -17
  68. package/datatable/datatable.cjs.js +63 -57
  69. package/datatable/datatable.cjs.min.js +1 -1
  70. package/datatable/datatable.esm.js +63 -57
  71. package/datatable/datatable.esm.min.js +1 -1
  72. package/datatable/datatable.js +63 -57
  73. package/datatable/datatable.min.js +1 -1
  74. package/dataview/DataView.d.ts +65 -47
  75. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +33 -13
  76. package/deferredcontent/DeferredContent.d.ts +30 -13
  77. package/dialog/Dialog.d.ts +67 -46
  78. package/dialogservice/DialogService.d.ts +13 -2
  79. package/divider/Divider.d.ts +35 -30
  80. package/dock/Dock.d.ts +49 -36
  81. package/dropdown/Dropdown.d.ts +90 -82
  82. package/dropdown/Dropdown.vue +1 -1
  83. package/dropdown/dropdown.cjs.js +1 -1
  84. package/dropdown/dropdown.cjs.min.js +1 -1
  85. package/dropdown/dropdown.esm.js +1 -1
  86. package/dropdown/dropdown.esm.min.js +1 -1
  87. package/dropdown/dropdown.js +1 -1
  88. package/dropdown/dropdown.min.js +1 -1
  89. package/dynamicdialog/DynamicDialog.d.ts +30 -10
  90. package/dynamicdialog/DynamicDialog.vue +2 -2
  91. package/dynamicdialog/dynamicdialog.cjs.js +3 -3
  92. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  93. package/dynamicdialog/dynamicdialog.esm.js +2 -2
  94. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  95. package/dynamicdialog/dynamicdialog.js +3 -3
  96. package/dynamicdialog/dynamicdialog.min.js +1 -1
  97. package/dynamicdialogoptions/DynamicDialogOptions.d.ts +28 -8
  98. package/editor/Editor.d.ts +48 -17
  99. package/fieldset/Fieldset.d.ts +43 -16
  100. package/fileupload/FileUpload.d.ts +101 -47
  101. package/focustrap/FocusTrap.d.ts +42 -3
  102. package/fullcalendar/FullCalendar.d.ts +1 -1
  103. package/galleria/Galleria.d.ts +64 -40
  104. package/image/Image.d.ts +33 -14
  105. package/inlinemessage/InlineMessage.d.ts +31 -17
  106. package/inplace/Inplace.d.ts +41 -18
  107. package/inputmask/InputMask.d.ts +41 -17
  108. package/inputnumber/InputNumber.d.ts +60 -41
  109. package/inputswitch/InputSwitch.d.ts +35 -15
  110. package/inputswitch/InputSwitch.vue +1 -0
  111. package/inputswitch/inputswitch.cjs.js +1 -1
  112. package/inputswitch/inputswitch.cjs.min.js +1 -1
  113. package/inputswitch/inputswitch.esm.js +1 -1
  114. package/inputswitch/inputswitch.esm.min.js +1 -1
  115. package/inputswitch/inputswitch.js +1 -1
  116. package/inputswitch/inputswitch.min.js +1 -1
  117. package/inputtext/InputText.d.ts +32 -12
  118. package/knob/Knob.d.ts +47 -21
  119. package/listbox/Listbox.d.ts +81 -60
  120. package/megamenu/MegaMenu.d.ts +42 -27
  121. package/megamenu/MegaMenu.vue +17 -0
  122. package/megamenu/megamenu.cjs.js +1 -1
  123. package/megamenu/megamenu.cjs.min.js +1 -1
  124. package/megamenu/megamenu.esm.js +1 -1
  125. package/megamenu/megamenu.esm.min.js +1 -1
  126. package/megamenu/megamenu.js +1 -1
  127. package/megamenu/megamenu.min.js +1 -1
  128. package/menu/Menu.d.ts +51 -30
  129. package/menubar/Menubar.d.ts +36 -19
  130. package/menuitem/MenuItem.d.ts +22 -10
  131. package/message/Message.d.ts +40 -21
  132. package/multiselect/MultiSelect.d.ts +111 -90
  133. package/orderlist/OrderList.d.ts +51 -23
  134. package/organizationchart/OrganizationChart.d.ts +43 -26
  135. package/overlaypanel/OverlayPanel.d.ts +46 -26
  136. package/package.json +2 -2
  137. package/paginator/Paginator.d.ts +49 -24
  138. package/panel/Panel.d.ts +39 -14
  139. package/panelmenu/PanelMenu.d.ts +49 -21
  140. package/password/Password.d.ts +47 -28
  141. package/picklist/PickList.d.ts +74 -33
  142. package/progressbar/ProgressBar.d.ts +34 -17
  143. package/progressspinner/ProgressSpinner.d.ts +32 -13
  144. package/radiobutton/RadioButton.d.ts +32 -14
  145. package/rating/Rating.d.ts +51 -25
  146. package/resources/themes/arya-blue/theme.css +34 -11
  147. package/resources/themes/arya-green/theme.css +34 -11
  148. package/resources/themes/arya-orange/theme.css +34 -11
  149. package/resources/themes/arya-purple/theme.css +34 -11
  150. package/resources/themes/bootstrap4-dark-blue/theme.css +34 -11
  151. package/resources/themes/bootstrap4-dark-purple/theme.css +34 -11
  152. package/resources/themes/bootstrap4-light-blue/theme.css +34 -11
  153. package/resources/themes/bootstrap4-light-purple/theme.css +34 -11
  154. package/resources/themes/fluent-light/theme.css +34 -11
  155. package/resources/themes/lara-dark-blue/theme.css +34 -11
  156. package/resources/themes/lara-dark-indigo/theme.css +34 -11
  157. package/resources/themes/lara-dark-purple/theme.css +34 -11
  158. package/resources/themes/lara-dark-teal/theme.css +34 -11
  159. package/resources/themes/lara-light-blue/theme.css +34 -11
  160. package/resources/themes/lara-light-indigo/theme.css +34 -11
  161. package/resources/themes/lara-light-purple/theme.css +34 -11
  162. package/resources/themes/lara-light-teal/theme.css +34 -11
  163. package/resources/themes/luna-amber/theme.css +34 -11
  164. package/resources/themes/luna-blue/theme.css +34 -11
  165. package/resources/themes/luna-green/theme.css +34 -11
  166. package/resources/themes/luna-pink/theme.css +34 -11
  167. package/resources/themes/md-dark-deeppurple/theme.css +34 -11
  168. package/resources/themes/md-dark-indigo/theme.css +34 -11
  169. package/resources/themes/md-light-deeppurple/theme.css +34 -11
  170. package/resources/themes/md-light-indigo/theme.css +34 -11
  171. package/resources/themes/mdc-dark-deeppurple/theme.css +34 -11
  172. package/resources/themes/mdc-dark-indigo/theme.css +34 -11
  173. package/resources/themes/mdc-light-deeppurple/theme.css +34 -11
  174. package/resources/themes/mdc-light-indigo/theme.css +34 -11
  175. package/resources/themes/mira/theme.css +34 -11
  176. package/resources/themes/nano/theme.css +34 -11
  177. package/resources/themes/nova/theme.css +34 -11
  178. package/resources/themes/nova-accent/theme.css +34 -11
  179. package/resources/themes/nova-alt/theme.css +34 -11
  180. package/resources/themes/nova-vue/theme.css +34 -11
  181. package/resources/themes/rhea/theme.css +34 -11
  182. package/resources/themes/saga-blue/theme.css +34 -11
  183. package/resources/themes/saga-green/theme.css +34 -11
  184. package/resources/themes/saga-orange/theme.css +34 -11
  185. package/resources/themes/saga-purple/theme.css +34 -11
  186. package/resources/themes/soho-dark/theme.css +34 -11
  187. package/resources/themes/soho-light/theme.css +34 -11
  188. package/resources/themes/tailwind-light/theme.css +34 -11
  189. package/resources/themes/vela-blue/theme.css +34 -11
  190. package/resources/themes/vela-green/theme.css +34 -11
  191. package/resources/themes/vela-orange/theme.css +34 -11
  192. package/resources/themes/vela-purple/theme.css +34 -11
  193. package/resources/themes/viva-dark/theme.css +34 -11
  194. package/resources/themes/viva-light/theme.css +34 -11
  195. package/ripple/Ripple.d.ts +24 -1
  196. package/row/Row.d.ts +28 -10
  197. package/scrollpanel/ScrollPanel.d.ts +29 -11
  198. package/scrolltop/ScrollTop.d.ts +35 -18
  199. package/selectbutton/SelectButton.d.ts +47 -27
  200. package/sidebar/Sidebar.d.ts +46 -27
  201. package/skeleton/Skeleton.d.ts +36 -22
  202. package/slider/Slider.d.ts +46 -23
  203. package/speeddial/SpeedDial.d.ts +64 -51
  204. package/splitbutton/SplitButton.d.ts +73 -24
  205. package/splitbutton/SplitButton.vue +41 -1
  206. package/splitbutton/splitbutton.cjs.js +43 -3
  207. package/splitbutton/splitbutton.cjs.min.js +1 -1
  208. package/splitbutton/splitbutton.esm.js +43 -3
  209. package/splitbutton/splitbutton.esm.min.js +1 -1
  210. package/splitbutton/splitbutton.js +43 -3
  211. package/splitbutton/splitbutton.min.js +1 -1
  212. package/splitter/Splitter.d.ts +49 -30
  213. package/splitterpanel/SplitterPanel.d.ts +28 -10
  214. package/steps/Steps.d.ts +36 -15
  215. package/styleclass/StyleClass.d.ts +72 -1
  216. package/tabmenu/TabMenu.d.ts +41 -16
  217. package/tabmenu/TabMenu.vue +1 -1
  218. package/tabmenu/tabmenu.cjs.js +1 -0
  219. package/tabmenu/tabmenu.cjs.min.js +1 -1
  220. package/tabmenu/tabmenu.esm.js +1 -0
  221. package/tabmenu/tabmenu.esm.min.js +1 -1
  222. package/tabmenu/tabmenu.js +1 -0
  223. package/tabmenu/tabmenu.min.js +1 -1
  224. package/tabpanel/TabPanel.d.ts +29 -11
  225. package/tabview/TabView.d.ts +47 -19
  226. package/tag/Tag.d.ts +33 -15
  227. package/terminal/Terminal.d.ts +30 -14
  228. package/terminalservice/TerminalService.d.ts +24 -5
  229. package/textarea/Textarea.d.ts +33 -11
  230. package/tieredmenu/TieredMenu.d.ts +45 -31
  231. package/timeline/Timeline.d.ts +41 -32
  232. package/toast/Toast.d.ts +63 -35
  233. package/toast/Toast.vue +4 -2
  234. package/toast/ToastMessage.vue +4 -4
  235. package/toast/toast.cjs.js +8 -6
  236. package/toast/toast.cjs.min.js +1 -1
  237. package/toast/toast.esm.js +8 -6
  238. package/toast/toast.esm.min.js +1 -1
  239. package/toast/toast.js +8 -6
  240. package/toast/toast.min.js +1 -1
  241. package/toastservice/ToastService.d.ts +16 -3
  242. package/togglebutton/ToggleButton.d.ts +42 -22
  243. package/toolbar/Toolbar.d.ts +34 -14
  244. package/tooltip/Tooltip.d.ts +99 -1
  245. package/tree/Tree.d.ts +55 -36
  246. package/treeselect/TreeSelect.d.ts +63 -55
  247. package/treetable/TreeTable.d.ts +121 -107
  248. package/tristatecheckbox/TriStateCheckbox.d.ts +35 -12
  249. package/ts-helpers.d.ts +2 -2
  250. package/utils/utils.cjs.js +18 -15
  251. package/utils/utils.cjs.min.js +1 -1
  252. package/utils/utils.esm.js +18 -15
  253. package/utils/utils.esm.min.js +1 -1
  254. package/utils/utils.js +18 -15
  255. package/utils/utils.min.js +1 -1
  256. package/vetur-attributes.json +62 -2
  257. package/vetur-tags.json +17 -2
  258. package/virtualscroller/VirtualScroller.d.ts +99 -43
  259. package/virtualscroller/VirtualScroller.vue +248 -72
  260. package/virtualscroller/virtualscroller.cjs.js +234 -72
  261. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  262. package/virtualscroller/virtualscroller.esm.js +234 -72
  263. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  264. package/virtualscroller/virtualscroller.js +235 -74
  265. package/virtualscroller/virtualscroller.min.js +1 -1
  266. package/web-types.json +1922 -1744
@@ -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
- export declare type CheckboxEmits = {
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': (value: any) => void;
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: (event: MouseEvent) => void;
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: (event: Event) => void;
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: (value: boolean) => void;
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
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
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;
@@ -95,7 +95,7 @@ export default {
95
95
  },
96
96
  methods: {
97
97
  onClick(event) {
98
- if (!this.disabled) {
98
+ if (!this.disabled && !this.readonly) {
99
99
  let newModelValue;
100
100
 
101
101
  if (this.binary) {
@@ -70,7 +70,7 @@ var script = {
70
70
  },
71
71
  methods: {
72
72
  onClick(event) {
73
- if (!this.disabled) {
73
+ if (!this.disabled && !this.readonly) {
74
74
  let newModelValue;
75
75
 
76
76
  if (this.binary) {
@@ -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;
@@ -68,7 +68,7 @@ var script = {
68
68
  },
69
69
  methods: {
70
70
  onClick(event) {
71
- if (!this.disabled) {
71
+ if (!this.disabled && !this.readonly) {
72
72
  let newModelValue;
73
73
 
74
74
  if (this.binary) {
@@ -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};
@@ -69,7 +69,7 @@ this.primevue.checkbox = (function (utils, vue) {
69
69
  },
70
70
  methods: {
71
71
  onClick(event) {
72
- if (!this.disabled) {
72
+ if (!this.disabled && !this.readonly) {
73
73
  let newModelValue;
74
74
 
75
75
  if (this.binary) {
@@ -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
- * Default value is 'pi pi-times-circle'.
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: () => VNode[];
48
+ default(): VNode[];
33
49
  }
34
50
 
35
- export declare type ChipEmits = {
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: (event: Event) => void;
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
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
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
- * Default value is true.
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
- * Default value is 'pi pi-times-circle'.
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: (scope: {
106
+ chip(scope: {
87
107
  /**
88
108
  * Value of the component
89
109
  */
90
110
  value: any;
91
- }) => VNode[];
111
+ }): VNode[];
92
112
  }
93
-
94
- export declare type ChipsEmits = {
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': (value: any[]) => void;
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: (event: ChipsAddEvent) => void;
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: (event: ChipsRemoveEvent) => void;
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
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
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
- type ColorPickerFormatType = 'hex' | 'rgb' | 'hsb' | undefined;
4
-
5
- type ColorPickerAppendToType = 'body' | 'self' | string | undefined | HTMLElement;
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
- * Default value is ff0000.
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
- * @see ColorPickerFormatType
35
- * Default value is 'hex'.
47
+ * @defaultValue hex
36
48
  */
37
- format?: ColorPickerFormatType;
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
- * Default value is true.
61
+ * @defaultValue true
49
62
  */
50
63
  autoZIndex?: boolean | undefined;
51
64
  /**
52
65
  * Base zIndex value to use in layering.
53
- * Default value is 0.
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
- * @see ColorPickerAppendToType
63
- * Default value is 'body'.
75
+ * @defaultValue body
64
76
  */
65
- appendTo?: ColorPickerAppendToType;
77
+ appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
66
78
  }
67
79
 
68
80
  export interface ColorPickerSlots {}
69
81
 
70
- export declare type ColorPickerEmits = {
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': (value: any) => void;
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: (event: ColorPickerChangeEvent) => void;
95
+ change(event: ColorPickerChangeEvent): void;
81
96
  /**
82
97
  * Callback to invoke when input is cleared by the user.
83
98
  */
84
- show: () => void;
99
+ show(): void;
85
100
  /**
86
101
  * Callback to invoke when input is cleared by the user.
87
102
  */
88
- hide: () => void;
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
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
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;