primereact 8.0.0 → 8.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/api/api.cjs.js +22 -1
  2. package/api/api.cjs.min.js +1 -1
  3. package/api/api.esm.js +22 -2
  4. package/api/api.esm.min.js +1 -1
  5. package/api/api.js +22 -1
  6. package/api/api.min.js +1 -1
  7. package/autocomplete/autocomplete.cjs.js +23 -14
  8. package/autocomplete/autocomplete.cjs.min.js +1 -1
  9. package/autocomplete/autocomplete.d.ts +0 -1
  10. package/autocomplete/autocomplete.esm.js +23 -14
  11. package/autocomplete/autocomplete.esm.min.js +1 -1
  12. package/autocomplete/autocomplete.js +23 -14
  13. package/autocomplete/autocomplete.min.js +1 -1
  14. package/breadcrumb/breadcrumb.cjs.js +22 -6
  15. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  16. package/breadcrumb/breadcrumb.esm.js +22 -6
  17. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  18. package/breadcrumb/breadcrumb.js +22 -6
  19. package/breadcrumb/breadcrumb.min.js +1 -1
  20. package/button/button.cjs.js +1 -1
  21. package/button/button.cjs.min.js +1 -1
  22. package/button/button.esm.js +1 -1
  23. package/button/button.esm.min.js +1 -1
  24. package/button/button.js +1 -1
  25. package/button/button.min.js +1 -1
  26. package/calendar/calendar.cjs.js +3 -3
  27. package/calendar/calendar.cjs.min.js +1 -1
  28. package/calendar/calendar.d.ts +6 -5
  29. package/calendar/calendar.esm.js +3 -3
  30. package/calendar/calendar.esm.min.js +1 -1
  31. package/calendar/calendar.js +3 -3
  32. package/calendar/calendar.min.js +1 -1
  33. package/captcha/captcha.cjs.js +1 -0
  34. package/captcha/captcha.esm.js +1 -0
  35. package/captcha/captcha.js +1 -0
  36. package/carousel/carousel.cjs.js +18 -17
  37. package/carousel/carousel.cjs.min.js +1 -1
  38. package/carousel/carousel.esm.js +19 -18
  39. package/carousel/carousel.esm.min.js +1 -1
  40. package/carousel/carousel.js +19 -18
  41. package/carousel/carousel.min.js +1 -1
  42. package/cascadeselect/cascadeselect.cjs.js +2 -1
  43. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  44. package/cascadeselect/cascadeselect.esm.js +2 -1
  45. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  46. package/cascadeselect/cascadeselect.js +2 -1
  47. package/cascadeselect/cascadeselect.min.js +1 -1
  48. package/checkbox/checkbox.cjs.js +0 -1
  49. package/checkbox/checkbox.cjs.min.js +1 -1
  50. package/checkbox/checkbox.esm.js +0 -1
  51. package/checkbox/checkbox.esm.min.js +1 -1
  52. package/checkbox/checkbox.js +0 -1
  53. package/checkbox/checkbox.min.js +1 -1
  54. package/column/column.cjs.js +2 -1
  55. package/column/column.cjs.min.js +1 -1
  56. package/column/column.d.ts +1 -0
  57. package/column/column.esm.js +2 -1
  58. package/column/column.esm.min.js +1 -1
  59. package/column/column.js +2 -1
  60. package/column/column.min.js +1 -1
  61. package/core/core.js +143 -45
  62. package/core/core.min.js +9 -9
  63. package/datatable/datatable.cjs.js +14 -9
  64. package/datatable/datatable.cjs.min.js +1 -1
  65. package/datatable/datatable.esm.js +14 -9
  66. package/datatable/datatable.esm.min.js +1 -1
  67. package/datatable/datatable.js +14 -9
  68. package/datatable/datatable.min.css +1 -1
  69. package/datatable/datatable.min.js +1 -1
  70. package/dialog/dialog.cjs.js +5 -1
  71. package/dialog/dialog.cjs.min.js +1 -1
  72. package/dialog/dialog.d.ts +2 -0
  73. package/dialog/dialog.esm.js +5 -1
  74. package/dialog/dialog.esm.min.js +1 -1
  75. package/dialog/dialog.js +5 -1
  76. package/dialog/dialog.min.js +1 -1
  77. package/dropdown/dropdown.cjs.js +3 -8
  78. package/dropdown/dropdown.cjs.min.js +1 -1
  79. package/dropdown/dropdown.esm.js +3 -8
  80. package/dropdown/dropdown.esm.min.js +1 -1
  81. package/dropdown/dropdown.js +3 -8
  82. package/dropdown/dropdown.min.js +1 -1
  83. package/fileupload/fileupload.cjs.js +46 -19
  84. package/fileupload/fileupload.cjs.min.js +1 -1
  85. package/fileupload/fileupload.d.ts +1 -0
  86. package/fileupload/fileupload.esm.js +46 -19
  87. package/fileupload/fileupload.esm.min.js +1 -1
  88. package/fileupload/fileupload.js +46 -19
  89. package/fileupload/fileupload.min.js +1 -1
  90. package/fullcalendar/fullcalendar.cjs.js +1 -0
  91. package/fullcalendar/fullcalendar.esm.js +1 -0
  92. package/fullcalendar/fullcalendar.js +1 -0
  93. package/hooks/hooks.cjs.js +48 -2
  94. package/hooks/hooks.cjs.min.js +1 -1
  95. package/hooks/hooks.d.ts +3 -1
  96. package/hooks/hooks.esm.js +47 -3
  97. package/hooks/hooks.esm.min.js +1 -1
  98. package/hooks/hooks.js +48 -2
  99. package/hooks/hooks.min.js +1 -1
  100. package/inputnumber/inputnumber.cjs.js +37 -4
  101. package/inputnumber/inputnumber.cjs.min.js +1 -1
  102. package/inputnumber/inputnumber.esm.js +38 -5
  103. package/inputnumber/inputnumber.esm.min.js +1 -1
  104. package/inputnumber/inputnumber.js +37 -4
  105. package/inputnumber/inputnumber.min.js +1 -1
  106. package/inputswitch/inputswitch.d.ts +1 -1
  107. package/listbox/listbox.cjs.js +18 -9
  108. package/listbox/listbox.cjs.min.js +1 -1
  109. package/listbox/listbox.d.ts +1 -0
  110. package/listbox/listbox.esm.js +18 -9
  111. package/listbox/listbox.esm.min.js +1 -1
  112. package/listbox/listbox.js +18 -9
  113. package/listbox/listbox.min.js +1 -1
  114. package/mention/mention.cjs.js +7 -3
  115. package/mention/mention.cjs.min.js +1 -1
  116. package/mention/mention.esm.js +7 -3
  117. package/mention/mention.esm.min.js +1 -1
  118. package/mention/mention.js +7 -3
  119. package/mention/mention.min.js +1 -1
  120. package/multiselect/multiselect.cjs.js +2 -5
  121. package/multiselect/multiselect.cjs.min.js +1 -1
  122. package/multiselect/multiselect.esm.js +2 -5
  123. package/multiselect/multiselect.esm.min.js +1 -1
  124. package/multiselect/multiselect.js +2 -5
  125. package/multiselect/multiselect.min.js +1 -1
  126. package/multistatecheckbox/multistatecheckbox.cjs.js +30 -24
  127. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  128. package/multistatecheckbox/multistatecheckbox.d.ts +2 -4
  129. package/multistatecheckbox/multistatecheckbox.esm.js +30 -24
  130. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  131. package/multistatecheckbox/multistatecheckbox.js +31 -26
  132. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  133. package/overlaypanel/overlaypanel.cjs.js +1 -1
  134. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  135. package/overlaypanel/overlaypanel.esm.js +1 -1
  136. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  137. package/overlaypanel/overlaypanel.js +1 -1
  138. package/overlaypanel/overlaypanel.min.js +1 -1
  139. package/package.json +4 -2
  140. package/paginator/paginator.cjs.js +26 -24
  141. package/paginator/paginator.cjs.min.js +1 -1
  142. package/paginator/paginator.esm.js +26 -24
  143. package/paginator/paginator.esm.min.js +1 -1
  144. package/paginator/paginator.js +26 -25
  145. package/paginator/paginator.min.js +1 -1
  146. package/panelmenu/panelmenu.cjs.js +15 -0
  147. package/panelmenu/panelmenu.cjs.min.js +1 -1
  148. package/panelmenu/panelmenu.esm.js +16 -1
  149. package/panelmenu/panelmenu.esm.min.js +1 -1
  150. package/panelmenu/panelmenu.js +15 -0
  151. package/panelmenu/panelmenu.min.js +1 -1
  152. package/picklist/picklist.cjs.js +6 -2
  153. package/picklist/picklist.cjs.min.js +1 -1
  154. package/picklist/picklist.d.ts +5 -1
  155. package/picklist/picklist.esm.js +6 -2
  156. package/picklist/picklist.esm.min.js +1 -1
  157. package/picklist/picklist.js +6 -2
  158. package/picklist/picklist.min.js +1 -1
  159. package/primereact.all.cjs.js +575 -343
  160. package/primereact.all.cjs.min.js +1 -1
  161. package/primereact.all.esm.js +573 -344
  162. package/primereact.all.esm.min.js +1 -1
  163. package/primereact.all.js +575 -343
  164. package/primereact.all.min.js +1 -1
  165. package/progressbar/progressbar.cjs.js +1 -2
  166. package/progressbar/progressbar.cjs.min.js +1 -1
  167. package/progressbar/progressbar.esm.js +1 -2
  168. package/progressbar/progressbar.esm.min.js +1 -1
  169. package/progressbar/progressbar.js +1 -2
  170. package/progressbar/progressbar.min.js +1 -1
  171. package/radiobutton/radiobutton.cjs.js +5 -5
  172. package/radiobutton/radiobutton.cjs.min.js +1 -1
  173. package/radiobutton/radiobutton.d.ts +0 -1
  174. package/radiobutton/radiobutton.esm.js +5 -5
  175. package/radiobutton/radiobutton.esm.min.js +1 -1
  176. package/radiobutton/radiobutton.js +5 -5
  177. package/radiobutton/radiobutton.min.js +1 -1
  178. package/resources/primereact.css +27 -23
  179. package/resources/primereact.min.css +1 -1
  180. package/resources/themes/arya-blue/theme.css +0 -1
  181. package/resources/themes/arya-green/theme.css +0 -1
  182. package/resources/themes/arya-orange/theme.css +0 -1
  183. package/resources/themes/arya-purple/theme.css +0 -1
  184. package/resources/themes/bootstrap4-dark-blue/theme.css +0 -1
  185. package/resources/themes/bootstrap4-dark-purple/theme.css +0 -1
  186. package/resources/themes/bootstrap4-light-blue/theme.css +0 -1
  187. package/resources/themes/bootstrap4-light-purple/theme.css +0 -1
  188. package/resources/themes/fluent-light/theme.css +0 -1
  189. package/resources/themes/lara-dark-blue/theme.css +0 -1
  190. package/resources/themes/lara-dark-indigo/theme.css +0 -1
  191. package/resources/themes/lara-dark-purple/theme.css +0 -1
  192. package/resources/themes/lara-dark-teal/theme.css +0 -1
  193. package/resources/themes/lara-light-blue/theme.css +0 -1
  194. package/resources/themes/lara-light-indigo/theme.css +0 -1
  195. package/resources/themes/lara-light-purple/theme.css +0 -1
  196. package/resources/themes/lara-light-teal/theme.css +0 -1
  197. package/resources/themes/luna-amber/theme.css +0 -1
  198. package/resources/themes/luna-blue/theme.css +0 -1
  199. package/resources/themes/luna-green/theme.css +0 -1
  200. package/resources/themes/luna-pink/theme.css +0 -1
  201. package/resources/themes/md-dark-deeppurple/theme.css +0 -1
  202. package/resources/themes/md-dark-indigo/theme.css +0 -1
  203. package/resources/themes/md-light-deeppurple/theme.css +0 -1
  204. package/resources/themes/md-light-indigo/theme.css +0 -1
  205. package/resources/themes/mdc-dark-deeppurple/theme.css +0 -1
  206. package/resources/themes/mdc-dark-indigo/theme.css +0 -1
  207. package/resources/themes/mdc-light-deeppurple/theme.css +0 -1
  208. package/resources/themes/mdc-light-indigo/theme.css +0 -1
  209. package/resources/themes/nova/theme.css +0 -1
  210. package/resources/themes/nova-accent/theme.css +0 -1
  211. package/resources/themes/nova-alt/theme.css +0 -1
  212. package/resources/themes/rhea/theme.css +0 -1
  213. package/resources/themes/saga-blue/theme.css +0 -1
  214. package/resources/themes/saga-green/theme.css +0 -1
  215. package/resources/themes/saga-orange/theme.css +0 -1
  216. package/resources/themes/saga-purple/theme.css +0 -1
  217. package/resources/themes/tailwind-light/theme.css +0 -1
  218. package/resources/themes/vela-blue/theme.css +0 -1
  219. package/resources/themes/vela-green/theme.css +0 -1
  220. package/resources/themes/vela-orange/theme.css +0 -1
  221. package/resources/themes/vela-purple/theme.css +0 -1
  222. package/selectbutton/selectbutton.cjs.js +2 -6
  223. package/selectbutton/selectbutton.cjs.min.js +1 -1
  224. package/selectbutton/selectbutton.esm.js +2 -6
  225. package/selectbutton/selectbutton.esm.min.js +1 -1
  226. package/selectbutton/selectbutton.js +2 -6
  227. package/selectbutton/selectbutton.min.js +1 -1
  228. package/slidemenu/slidemenu.cjs.js +38 -7
  229. package/slidemenu/slidemenu.cjs.min.js +1 -1
  230. package/slidemenu/slidemenu.esm.js +38 -7
  231. package/slidemenu/slidemenu.esm.min.js +1 -1
  232. package/slidemenu/slidemenu.js +38 -7
  233. package/slidemenu/slidemenu.min.js +1 -1
  234. package/slider/slider.cjs.js +6 -3
  235. package/slider/slider.cjs.min.js +1 -1
  236. package/slider/slider.esm.js +6 -3
  237. package/slider/slider.esm.min.js +1 -1
  238. package/slider/slider.js +6 -3
  239. package/slider/slider.min.js +1 -1
  240. package/splitbutton/splitbutton.cjs.js +12 -9
  241. package/splitbutton/splitbutton.cjs.min.js +1 -1
  242. package/splitbutton/splitbutton.d.ts +2 -0
  243. package/splitbutton/splitbutton.esm.js +12 -9
  244. package/splitbutton/splitbutton.esm.min.js +1 -1
  245. package/splitbutton/splitbutton.js +12 -9
  246. package/splitbutton/splitbutton.min.js +1 -1
  247. package/splitter/splitter.cjs.js +6 -2
  248. package/splitter/splitter.cjs.min.js +1 -1
  249. package/splitter/splitter.esm.js +6 -2
  250. package/splitter/splitter.esm.min.js +1 -1
  251. package/splitter/splitter.js +6 -2
  252. package/splitter/splitter.min.js +1 -1
  253. package/styleclass/styleclass.cjs.js +26 -21
  254. package/styleclass/styleclass.cjs.min.js +1 -1
  255. package/styleclass/styleclass.esm.js +26 -21
  256. package/styleclass/styleclass.esm.min.js +1 -1
  257. package/styleclass/styleclass.js +26 -21
  258. package/styleclass/styleclass.min.js +1 -1
  259. package/treetable/treetable.cjs.js +10 -1
  260. package/treetable/treetable.cjs.min.js +1 -1
  261. package/treetable/treetable.d.ts +1 -1
  262. package/treetable/treetable.esm.js +10 -1
  263. package/treetable/treetable.esm.min.js +1 -1
  264. package/treetable/treetable.js +10 -1
  265. package/treetable/treetable.min.js +1 -1
  266. package/tristatecheckbox/tristatecheckbox.cjs.js +25 -23
  267. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  268. package/tristatecheckbox/tristatecheckbox.d.ts +2 -4
  269. package/tristatecheckbox/tristatecheckbox.esm.js +25 -23
  270. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  271. package/tristatecheckbox/tristatecheckbox.js +26 -25
  272. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  273. package/web-types.json +86 -63
@@ -17,16 +17,14 @@ interface TriStateCheckboxChangeParams {
17
17
 
18
18
  export interface TriStateCheckboxProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'value'> {
19
19
  id?: string;
20
- inputRef?: React.Ref<HTMLInputElement>;
21
- inputId?: string;
22
20
  value?: boolean | undefined | null;
23
- name?: string;
24
21
  style?: object;
25
22
  className?: string;
26
23
  disabled?: boolean;
24
+ readOnly?: boolean;
25
+ tabIndex?: number;
27
26
  tooltip?: string;
28
27
  tooltipOptions?: TooltipOptions;
29
- ariaLabelledBy?: string;
30
28
  onChange?(e: TriStateCheckboxChangeParams): void;
31
29
  children?: React.ReactNode;
32
30
  }
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Tooltip } from 'primereact/tooltip';
3
+ import { ariaLabel } from 'primereact/api';
3
4
  import { ObjectUtils, classNames } from 'primereact/utils';
4
5
 
5
6
  function _extends() {
@@ -88,12 +89,10 @@ var TriStateCheckbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fu
88
89
  setFocusedState = _React$useState2[1];
89
90
 
90
91
  var elementRef = React.useRef(null);
91
- var inputRef = React.useRef(props.inputRef);
92
92
 
93
93
  var onClick = function onClick(event) {
94
- if (!props.disabled) {
94
+ if (!props.disabled && !props.readOnly) {
95
95
  toggle(event);
96
- inputRef.current.focus();
97
96
  }
98
97
  };
99
98
 
@@ -124,9 +123,13 @@ var TriStateCheckbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fu
124
123
  setFocusedState(false);
125
124
  };
126
125
 
127
- React.useEffect(function () {
128
- ObjectUtils.combinedRefs(inputRef, props.inputRef);
129
- }, [inputRef, props.inputRef]);
126
+ var onKeyDown = function onKeyDown(e) {
127
+ if (e.keyCode === 32) {
128
+ toggle(e);
129
+ e.preventDefault();
130
+ }
131
+ };
132
+
130
133
  var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
131
134
  var otherProps = ObjectUtils.findDiffKeys(props, TriStateCheckbox.defaultProps);
132
135
  var className = classNames('p-tristatecheckbox p-checkbox p-component', props.className);
@@ -139,6 +142,8 @@ var TriStateCheckbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fu
139
142
  'pi pi-check': props.value === true,
140
143
  'pi pi-times': props.value === false
141
144
  });
145
+ var ariaValueLabel = props.value ? ariaLabel('trueLabel') : props.value === false ? ariaLabel('falseLabel') : ariaLabel('nullLabel');
146
+ var ariaChecked = props.value ? 'true' : 'false';
142
147
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
143
148
  ref: elementRef,
144
149
  id: props.id,
@@ -147,24 +152,21 @@ var TriStateCheckbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fu
147
152
  }, otherProps, {
148
153
  onClick: onClick
149
154
  }), /*#__PURE__*/React.createElement("div", {
150
- className: "p-hidden-accessible"
151
- }, /*#__PURE__*/React.createElement("input", {
152
- ref: inputRef,
153
- type: "checkbox",
154
- "aria-labelledby": props.ariaLabelledBy,
155
- id: props.inputId,
156
- name: props.name,
155
+ className: boxClassName,
156
+ tabIndex: props.tabIndex,
157
157
  onFocus: onFocus,
158
158
  onBlur: onBlur,
159
- disabled: props.disabled,
160
- defaultChecked: props.value
161
- })), /*#__PURE__*/React.createElement("div", {
162
- className: boxClassName,
159
+ onKeyDown: onKeyDown,
163
160
  role: "checkbox",
164
- "aria-checked": props.value === true
161
+ "aria-checked": ariaChecked,
162
+ "aria-labelledby": props['aria-labelledby'],
163
+ "aria-label": props['aria-label']
165
164
  }, /*#__PURE__*/React.createElement("span", {
166
165
  className: iconClassName
167
- }))), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
166
+ })), focusedState && /*#__PURE__*/React.createElement("span", {
167
+ className: "p-sr-only",
168
+ "aria-live": "polite"
169
+ }, ariaValueLabel)), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
168
170
  target: elementRef,
169
171
  content: props.tooltip
170
172
  }, props.tooltipOptions)));
@@ -173,16 +175,16 @@ TriStateCheckbox.displayName = 'TriStateCheckbox';
173
175
  TriStateCheckbox.defaultProps = {
174
176
  __TYPE: 'TriStateCheckbox',
175
177
  id: null,
176
- inputRef: null,
177
- inputId: null,
178
178
  value: null,
179
- name: null,
180
179
  style: null,
181
180
  className: null,
182
181
  disabled: false,
182
+ readOnly: false,
183
+ tabIndex: "0",
184
+ 'aria-label': null,
185
+ 'aria-labelledby': null,
183
186
  tooltip: null,
184
187
  tooltipOptions: null,
185
- ariaLabelledBy: null,
186
188
  onChange: null
187
189
  };
188
190
 
@@ -1 +1 @@
1
- import*as e from"react";import{Tooltip as t}from"primereact/tooltip";import{ObjectUtils as n,classNames as l}from"primereact/utils";function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},a.apply(this,arguments)}function r(e){if(Array.isArray(e))return e}function o(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var l,a,r=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(r.push(l.value),!t||r.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw a}}return r}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}function u(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=e.memo(e.forwardRef((function(i,p){var f,d,m=e.useState(!1),v=(d=2,r(f=m)||o(f,d)||u(f,d)||c()),b=v[0],h=v[1],y=e.useRef(null),g=e.useRef(i.inputRef),k=function(e){var t;null==i.value?t=!0:!0===i.value?t=!1:!1===i.value&&(t=null),i.onChange&&i.onChange({originalEvent:e,value:t,stopPropagation:function(){},preventDefault:function(){},target:{name:i.name,id:i.id,value:t}})};e.useEffect((function(){n.combinedRefs(g,i.inputRef)}),[g,i.inputRef]);var E=n.isNotEmpty(i.tooltip),x=n.findDiffKeys(i,s.defaultProps),C=l("p-tristatecheckbox p-checkbox p-component",i.className),N=l("p-checkbox-box",{"p-highlight":(i.value||!i.value)&&null!==i.value,"p-disabled":i.disabled,"p-focus":b}),R=l("p-checkbox-icon p-c",{"pi pi-check":!0===i.value,"pi pi-times":!1===i.value});return e.createElement(e.Fragment,null,e.createElement("div",a({ref:y,id:i.id,className:C,style:i.style},x,{onClick:function(e){i.disabled||(k(e),g.current.focus())}}),e.createElement("div",{className:"p-hidden-accessible"},e.createElement("input",{ref:g,type:"checkbox","aria-labelledby":i.ariaLabelledBy,id:i.inputId,name:i.name,onFocus:function(){h(!0)},onBlur:function(){h(!1)},disabled:i.disabled,defaultChecked:i.value})),e.createElement("div",{className:N,role:"checkbox","aria-checked":!0===i.value},e.createElement("span",{className:R}))),E&&e.createElement(t,a({target:y,content:i.tooltip},i.tooltipOptions)))})));s.displayName="TriStateCheckbox",s.defaultProps={__TYPE:"TriStateCheckbox",id:null,inputRef:null,inputId:null,value:null,name:null,style:null,className:null,disabled:!1,tooltip:null,tooltipOptions:null,ariaLabelledBy:null,onChange:null};export{s as TriStateCheckbox};
1
+ import*as e from"react";import{Tooltip as t}from"primereact/tooltip";import{ariaLabel as l}from"primereact/api";import{ObjectUtils as a,classNames as n}from"primereact/utils";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},r.apply(this,arguments)}function o(e){if(Array.isArray(e))return e}function i(e,t){var l=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=l){var a,n,r=[],o=!0,i=!1;try{for(l=l.call(e);!(o=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);o=!0);}catch(e){i=!0,n=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw n}}return r}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var l=0,a=new Array(t);l<t;l++)a[l]=e[l];return a}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var l=Object.prototype.toString.call(e).slice(8,-1);return"Object"===l&&e.constructor&&(l=e.constructor.name),"Map"===l||"Set"===l?Array.from(e):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?u(e,t):void 0}}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=e.memo(e.forwardRef((function(u,f){var m,d,b=e.useState(!1),v=(d=2,o(m=b)||i(m,d)||c(m,d)||p()),y=v[0],h=v[1],g=e.useRef(null),x=function(e){var t;null==u.value?t=!0:!0===u.value?t=!1:!1===u.value&&(t=null),u.onChange&&u.onChange({originalEvent:e,value:t,stopPropagation:function(){},preventDefault:function(){},target:{name:u.name,id:u.id,value:t}})},k=a.isNotEmpty(u.tooltip),E=a.findDiffKeys(u,s.defaultProps),O=n("p-tristatecheckbox p-checkbox p-component",u.className),C=n("p-checkbox-box",{"p-highlight":(u.value||!u.value)&&null!==u.value,"p-disabled":u.disabled,"p-focus":y}),N=n("p-checkbox-icon p-c",{"pi pi-check":!0===u.value,"pi pi-times":!1===u.value}),S=l(u.value?"trueLabel":!1===u.value?"falseLabel":"nullLabel"),w=u.value?"true":"false";return e.createElement(e.Fragment,null,e.createElement("div",r({ref:g,id:u.id,className:O,style:u.style},E,{onClick:function(e){u.disabled||u.readOnly||x(e)}}),e.createElement("div",{className:C,tabIndex:u.tabIndex,onFocus:function(){h(!0)},onBlur:function(){h(!1)},onKeyDown:function(e){32===e.keyCode&&(x(e),e.preventDefault())},role:"checkbox","aria-checked":w,"aria-labelledby":u["aria-labelledby"],"aria-label":u["aria-label"]},e.createElement("span",{className:N})),y&&e.createElement("span",{className:"p-sr-only","aria-live":"polite"},S)),k&&e.createElement(t,r({target:g,content:u.tooltip},u.tooltipOptions)))})));s.displayName="TriStateCheckbox",s.defaultProps={__TYPE:"TriStateCheckbox",id:null,value:null,style:null,className:null,disabled:!1,readOnly:!1,tabIndex:"0","aria-label":null,"aria-labelledby":null,tooltip:null,tooltipOptions:null,onChange:null};export{s as TriStateCheckbox};
@@ -1,5 +1,5 @@
1
1
  this.primereact = this.primereact || {};
2
- this.primereact.tristatecheckbox = (function (exports, React, tooltip, utils) {
2
+ this.primereact.tristatecheckbox = (function (exports, React, tooltip, api, utils) {
3
3
  'use strict';
4
4
 
5
5
  function _interopNamespace(e) {
@@ -108,12 +108,10 @@ this.primereact.tristatecheckbox = (function (exports, React, tooltip, utils) {
108
108
  setFocusedState = _React$useState2[1];
109
109
 
110
110
  var elementRef = React__namespace.useRef(null);
111
- var inputRef = React__namespace.useRef(props.inputRef);
112
111
 
113
112
  var onClick = function onClick(event) {
114
- if (!props.disabled) {
113
+ if (!props.disabled && !props.readOnly) {
115
114
  toggle(event);
116
- inputRef.current.focus();
117
115
  }
118
116
  };
119
117
 
@@ -144,9 +142,13 @@ this.primereact.tristatecheckbox = (function (exports, React, tooltip, utils) {
144
142
  setFocusedState(false);
145
143
  };
146
144
 
147
- React__namespace.useEffect(function () {
148
- utils.ObjectUtils.combinedRefs(inputRef, props.inputRef);
149
- }, [inputRef, props.inputRef]);
145
+ var onKeyDown = function onKeyDown(e) {
146
+ if (e.keyCode === 32) {
147
+ toggle(e);
148
+ e.preventDefault();
149
+ }
150
+ };
151
+
150
152
  var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
151
153
  var otherProps = utils.ObjectUtils.findDiffKeys(props, TriStateCheckbox.defaultProps);
152
154
  var className = utils.classNames('p-tristatecheckbox p-checkbox p-component', props.className);
@@ -159,6 +161,8 @@ this.primereact.tristatecheckbox = (function (exports, React, tooltip, utils) {
159
161
  'pi pi-check': props.value === true,
160
162
  'pi pi-times': props.value === false
161
163
  });
164
+ var ariaValueLabel = props.value ? api.ariaLabel('trueLabel') : props.value === false ? api.ariaLabel('falseLabel') : api.ariaLabel('nullLabel');
165
+ var ariaChecked = props.value ? 'true' : 'false';
162
166
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", _extends({
163
167
  ref: elementRef,
164
168
  id: props.id,
@@ -167,24 +171,21 @@ this.primereact.tristatecheckbox = (function (exports, React, tooltip, utils) {
167
171
  }, otherProps, {
168
172
  onClick: onClick
169
173
  }), /*#__PURE__*/React__namespace.createElement("div", {
170
- className: "p-hidden-accessible"
171
- }, /*#__PURE__*/React__namespace.createElement("input", {
172
- ref: inputRef,
173
- type: "checkbox",
174
- "aria-labelledby": props.ariaLabelledBy,
175
- id: props.inputId,
176
- name: props.name,
174
+ className: boxClassName,
175
+ tabIndex: props.tabIndex,
177
176
  onFocus: onFocus,
178
177
  onBlur: onBlur,
179
- disabled: props.disabled,
180
- defaultChecked: props.value
181
- })), /*#__PURE__*/React__namespace.createElement("div", {
182
- className: boxClassName,
178
+ onKeyDown: onKeyDown,
183
179
  role: "checkbox",
184
- "aria-checked": props.value === true
180
+ "aria-checked": ariaChecked,
181
+ "aria-labelledby": props['aria-labelledby'],
182
+ "aria-label": props['aria-label']
185
183
  }, /*#__PURE__*/React__namespace.createElement("span", {
186
184
  className: iconClassName
187
- }))), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
185
+ })), focusedState && /*#__PURE__*/React__namespace.createElement("span", {
186
+ className: "p-sr-only",
187
+ "aria-live": "polite"
188
+ }, ariaValueLabel)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
188
189
  target: elementRef,
189
190
  content: props.tooltip
190
191
  }, props.tooltipOptions)));
@@ -193,16 +194,16 @@ this.primereact.tristatecheckbox = (function (exports, React, tooltip, utils) {
193
194
  TriStateCheckbox.defaultProps = {
194
195
  __TYPE: 'TriStateCheckbox',
195
196
  id: null,
196
- inputRef: null,
197
- inputId: null,
198
197
  value: null,
199
- name: null,
200
198
  style: null,
201
199
  className: null,
202
200
  disabled: false,
201
+ readOnly: false,
202
+ tabIndex: "0",
203
+ 'aria-label': null,
204
+ 'aria-labelledby': null,
203
205
  tooltip: null,
204
206
  tooltipOptions: null,
205
- ariaLabelledBy: null,
206
207
  onChange: null
207
208
  };
208
209
 
@@ -212,4 +213,4 @@ this.primereact.tristatecheckbox = (function (exports, React, tooltip, utils) {
212
213
 
213
214
  return exports;
214
215
 
215
- })({}, React, primereact.tooltip, primereact.utils);
216
+ })({}, React, primereact.tooltip, primereact.api, primereact.utils);
@@ -1 +1 @@
1
- this.primereact=this.primereact||{},this.primereact.tristatecheckbox=function(e,t,n,r){"use strict";function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=l(t);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function o(e){if(Array.isArray(e))return e}function c(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){o=!0,l=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw l}}return a}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(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 f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var p=a.memo(a.forwardRef((function(e,t){var l,u,d=a.useState(!1),m=(u=2,o(l=d)||c(l,u)||s(l,u)||f()),b=m[0],v=m[1],h=a.useRef(null),y=a.useRef(e.inputRef),g=function(t){var n;null==e.value?n=!0:!0===e.value?n=!1:!1===e.value&&(n=null),e.onChange&&e.onChange({originalEvent:t,value:n,stopPropagation:function(){},preventDefault:function(){},target:{name:e.name,id:e.id,value:n}})};a.useEffect((function(){r.ObjectUtils.combinedRefs(y,e.inputRef)}),[y,e.inputRef]);var O=r.ObjectUtils.isNotEmpty(e.tooltip),k=r.ObjectUtils.findDiffKeys(e,p.defaultProps),j=r.classNames("p-tristatecheckbox p-checkbox p-component",e.className),E=r.classNames("p-checkbox-box",{"p-highlight":(e.value||!e.value)&&null!==e.value,"p-disabled":e.disabled,"p-focus":b}),x=r.classNames("p-checkbox-icon p-c",{"pi pi-check":!0===e.value,"pi pi-times":!1===e.value});return a.createElement(a.Fragment,null,a.createElement("div",i({ref:h,id:e.id,className:j,style:e.style},k,{onClick:function(t){e.disabled||(g(t),y.current.focus())}}),a.createElement("div",{className:"p-hidden-accessible"},a.createElement("input",{ref:y,type:"checkbox","aria-labelledby":e.ariaLabelledBy,id:e.inputId,name:e.name,onFocus:function(){v(!0)},onBlur:function(){v(!1)},disabled:e.disabled,defaultChecked:e.value})),a.createElement("div",{className:E,role:"checkbox","aria-checked":!0===e.value},a.createElement("span",{className:x}))),O&&a.createElement(n.Tooltip,i({target:h,content:e.tooltip},e.tooltipOptions)))})));return p.displayName="TriStateCheckbox",p.defaultProps={__TYPE:"TriStateCheckbox",id:null,inputRef:null,inputId:null,value:null,name:null,style:null,className:null,disabled:!1,tooltip:null,tooltipOptions:null,ariaLabelledBy:null,onChange:null},e.TriStateCheckbox=p,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.tooltip,primereact.utils);
1
+ this.primereact=this.primereact||{},this.primereact.tristatecheckbox=function(e,t,a,l,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var i=n(t);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},o.apply(this,arguments)}function c(e){if(Array.isArray(e))return e}function u(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l,r,n=[],i=!0,o=!1;try{for(a=a.call(e);!(i=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=new Array(t);a<t;a++)l[a]=e[a];return l}function p(e,t){if(e){if("string"==typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?s(e,t):void 0}}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var b=i.memo(i.forwardRef((function(e,t){var n,s,d=i.useState(!1),m=(s=2,c(n=d)||u(n,s)||p(n,s)||f()),v=m[0],y=m[1],h=i.useRef(null),g=function(t){var a;null==e.value?a=!0:!0===e.value?a=!1:!1===e.value&&(a=null),e.onChange&&e.onChange({originalEvent:t,value:a,stopPropagation:function(){},preventDefault:function(){},target:{name:e.name,id:e.id,value:a}})},O=r.ObjectUtils.isNotEmpty(e.tooltip),k=r.ObjectUtils.findDiffKeys(e,b.defaultProps),x=r.classNames("p-tristatecheckbox p-checkbox p-component",e.className),j=r.classNames("p-checkbox-box",{"p-highlight":(e.value||!e.value)&&null!==e.value,"p-disabled":e.disabled,"p-focus":v}),E=r.classNames("p-checkbox-icon p-c",{"pi pi-check":!0===e.value,"pi pi-times":!1===e.value}),N=l.ariaLabel(e.value?"trueLabel":!1===e.value?"falseLabel":"nullLabel"),C=e.value?"true":"false";return i.createElement(i.Fragment,null,i.createElement("div",o({ref:h,id:e.id,className:x,style:e.style},k,{onClick:function(t){e.disabled||e.readOnly||g(t)}}),i.createElement("div",{className:j,tabIndex:e.tabIndex,onFocus:function(){y(!0)},onBlur:function(){y(!1)},onKeyDown:function(e){32===e.keyCode&&(g(e),e.preventDefault())},role:"checkbox","aria-checked":C,"aria-labelledby":e["aria-labelledby"],"aria-label":e["aria-label"]},i.createElement("span",{className:E})),v&&i.createElement("span",{className:"p-sr-only","aria-live":"polite"},N)),O&&i.createElement(a.Tooltip,o({target:h,content:e.tooltip},e.tooltipOptions)))})));return b.displayName="TriStateCheckbox",b.defaultProps={__TYPE:"TriStateCheckbox",id:null,value:null,style:null,className:null,disabled:!1,readOnly:!1,tabIndex:"0","aria-label":null,"aria-labelledby":null,tooltip:null,tooltipOptions:null,onChange:null},e.TriStateCheckbox=b,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.tooltip,primereact.api,primereact.utils);
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "React",
3
3
  "name": "PrimeReact",
4
- "version": "8.0.0",
4
+ "version": "8.1.1",
5
5
  "tags": [
6
6
  {
7
7
  "name": "Accordion",
@@ -814,7 +814,7 @@
814
814
  },
815
815
  {
816
816
  "name": "model",
817
- "type": "array",
817
+ "type": "MenuItem[]",
818
818
  "default": "null",
819
819
  "description": "An array of menuitems."
820
820
  },
@@ -1994,7 +1994,7 @@
1994
1994
  "name": "readOnly",
1995
1995
  "type": "boolean",
1996
1996
  "default": "false",
1997
- "description": "When present, it specifies that the element cannot be typed."
1997
+ "description": "When present, it specifies that the value cannot be changed."
1998
1998
  },
1999
1999
  {
2000
2000
  "name": "tabIndex",
@@ -2722,8 +2722,14 @@
2722
2722
  {
2723
2723
  "name": "reorderable",
2724
2724
  "type": "boolean",
2725
- "default": "null",
2725
+ "default": "true",
2726
2726
  "description": "Used to defined reorderableColumns per column when reorderableColumns of table is enabled, defaults to value of reorderableColumns."
2727
+ },
2728
+ {
2729
+ "name": "resizeable",
2730
+ "type": "boolean",
2731
+ "default": "true",
2732
+ "description": "Used to defined resizeableColumns per column when resizeableColumns of table is enabled, defaults to value of resizeableColumns."
2727
2733
  }
2728
2734
  ],
2729
2735
  "events": [
@@ -4633,6 +4639,18 @@
4633
4639
  "default": "true",
4634
4640
  "description": "Keeps dialog in the viewport."
4635
4641
  },
4642
+ {
4643
+ "name": "headerStyle",
4644
+ "type": "object",
4645
+ "default": "null",
4646
+ "description": "Style of the header section."
4647
+ },
4648
+ {
4649
+ "name": "headerClassName",
4650
+ "type": "string",
4651
+ "default": "null",
4652
+ "description": "Style class of the header section."
4653
+ },
4636
4654
  {
4637
4655
  "name": "contentStyle",
4638
4656
  "type": "object",
@@ -5755,6 +5773,17 @@
5755
5773
  }
5756
5774
  ]
5757
5775
  },
5776
+ {
5777
+ "name": "onBeforeDrop",
5778
+ "description": "Callback to invoke before files dropped. Return false from callback to prevent drop.",
5779
+ "arguments": [
5780
+ {
5781
+ "name": "event.originalEvent",
5782
+ "type": "object",
5783
+ "description": "Original browser event."
5784
+ }
5785
+ ]
5786
+ },
5758
5787
  {
5759
5788
  "name": "onUpload",
5760
5789
  "description": "Callback to invoke when file upload is complete.",
@@ -7325,6 +7354,12 @@
7325
7354
  "default": "undefined",
7326
7355
  "description": "Locale to use in filtering. The default locale is the host environment's current locale."
7327
7356
  },
7357
+ {
7358
+ "name": "filterInputProps",
7359
+ "type": "object",
7360
+ "default": "undefined",
7361
+ "description": "Props for the filter input, any prop is passed implicity to the filter input element."
7362
+ },
7328
7363
  {
7329
7364
  "name": "tabIndex",
7330
7365
  "type": "number",
@@ -8260,12 +8295,6 @@
8260
8295
  "default": "null",
8261
8296
  "description": "Unique identifier of the element."
8262
8297
  },
8263
- {
8264
- "name": "inputId",
8265
- "type": "string",
8266
- "default": "null",
8267
- "description": "Unique identifier of the native checkbox element."
8268
- },
8269
8298
  {
8270
8299
  "name": "value",
8271
8300
  "type": "any",
@@ -8284,6 +8313,12 @@
8284
8313
  "default": "null",
8285
8314
  "description": "Property name to use as the value of an option, defaults to the option itself when not defined."
8286
8315
  },
8316
+ {
8317
+ "name": "optionLabel",
8318
+ "type": "string",
8319
+ "default": "null",
8320
+ "description": "Property name to refer to the option label, used by screen readers only. Defaults to optionValue."
8321
+ },
8287
8322
  {
8288
8323
  "name": "iconTemplate",
8289
8324
  "type": "any",
@@ -8291,10 +8326,10 @@
8291
8326
  "description": "Template of icon for the selected option."
8292
8327
  },
8293
8328
  {
8294
- "name": "name",
8329
+ "name": "dataKey",
8295
8330
  "type": "string",
8296
8331
  "default": "null",
8297
- "description": "Name of the checkbox element ."
8332
+ "description": "A property to uniquely match the value in options for better performance."
8298
8333
  },
8299
8334
  {
8300
8335
  "name": "style",
@@ -8318,7 +8353,7 @@
8318
8353
  "name": "readOnly",
8319
8354
  "type": "boolean",
8320
8355
  "default": "false",
8321
- "description": "When present, it specifies that the element value cannot be altered."
8356
+ "description": "When present, it specifies that the value cannot be changed."
8322
8357
  },
8323
8358
  {
8324
8359
  "name": "empty",
@@ -8337,18 +8372,6 @@
8337
8372
  "type": "object",
8338
8373
  "default": "null",
8339
8374
  "description": "Configuration of the tooltip, refer to the tooltip documentation for more information."
8340
- },
8341
- {
8342
- "name": "ariaLabelledBy",
8343
- "type": "string",
8344
- "default": "null",
8345
- "description": "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
8346
- },
8347
- {
8348
- "name": "dataKey",
8349
- "type": "string",
8350
- "default": "null",
8351
- "description": "A property to uniquely match the value in options for better performance."
8352
8375
  }
8353
8376
  ],
8354
8377
  "events": [
@@ -9167,7 +9190,19 @@
9167
9190
  "name": "itemTemplate",
9168
9191
  "type": "function",
9169
9192
  "default": "null",
9170
- "description": "Function that gets the option and returns the content for it."
9193
+ "description": "Template function that gets the options for both source and target items and returns the content for it."
9194
+ },
9195
+ {
9196
+ "name": "sourceItemTemplate",
9197
+ "type": "function",
9198
+ "default": "null",
9199
+ "description": "Template function that gets the options for the source items and returns the content for it."
9200
+ },
9201
+ {
9202
+ "name": "targetItemTemplate",
9203
+ "type": "function",
9204
+ "default": "null",
9205
+ "description": "Template function that gets the options for the target items and returns the content for it."
9171
9206
  },
9172
9207
  {
9173
9208
  "name": "metaKeySelection",
@@ -9508,12 +9543,6 @@
9508
9543
  "type": "object",
9509
9544
  "default": "null",
9510
9545
  "description": "Configuration of the tooltip, refer to the tooltip documentation for more information."
9511
- },
9512
- {
9513
- "name": "ariaLabelledBy",
9514
- "type": "string",
9515
- "default": "null",
9516
- "description": "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
9517
9546
  }
9518
9547
  ],
9519
9548
  "events": [
@@ -9833,12 +9862,6 @@
9833
9862
  "default": "null",
9834
9863
  "description": "Configuration of the tooltip, refer to the tooltip documentation for more information."
9835
9864
  },
9836
- {
9837
- "name": "ariaLabelledBy",
9838
- "type": "string",
9839
- "default": "null",
9840
- "description": "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
9841
- },
9842
9865
  {
9843
9866
  "name": "itemTemplate",
9844
9867
  "type": "function",
@@ -9950,7 +9973,7 @@
9950
9973
  "name": "modal",
9951
9974
  "type": "boolean",
9952
9975
  "default": "true",
9953
- "description": "Whether to a modal layer behind the sidebar."
9976
+ "description": "Whether to add a translucent overlay behind the sidebar."
9954
9977
  },
9955
9978
  {
9956
9979
  "name": "appendTo",
@@ -10231,12 +10254,6 @@
10231
10254
  "type": "number",
10232
10255
  "default": "null",
10233
10256
  "description": "Index of the element in tabbing order."
10234
- },
10235
- {
10236
- "name": "ariaLabelledBy",
10237
- "type": "string",
10238
- "default": "null",
10239
- "description": "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
10240
10257
  }
10241
10258
  ],
10242
10259
  "events": [
@@ -10509,6 +10526,18 @@
10509
10526
  "default": "null",
10510
10527
  "description": "ClassName class of menu dropdown button."
10511
10528
  },
10529
+ {
10530
+ "name": "buttonProps",
10531
+ "type": "object",
10532
+ "default": "undefined",
10533
+ "description": "Props for the main button, any prop is passed implicity to the button element."
10534
+ },
10535
+ {
10536
+ "name": "menuButtonProps",
10537
+ "type": "object",
10538
+ "default": "undefined",
10539
+ "description": "Props for the dropdown button, any prop is passed implicity to the dropdown button element."
10540
+ },
10512
10541
  {
10513
10542
  "name": "tabIndex",
10514
10543
  "type": "number",
@@ -13043,24 +13072,12 @@
13043
13072
  "default": "null",
13044
13073
  "description": "Unique identifier of the element."
13045
13074
  },
13046
- {
13047
- "name": "inputId",
13048
- "type": "string",
13049
- "default": "null",
13050
- "description": "Unique identifier of the native checkbox element."
13051
- },
13052
13075
  {
13053
13076
  "name": "value",
13054
13077
  "type": "any",
13055
13078
  "default": "null",
13056
13079
  "description": "Value of the TriStateCheckbox."
13057
13080
  },
13058
- {
13059
- "name": "name",
13060
- "type": "string",
13061
- "default": "null",
13062
- "description": "Name of the checkbox element ."
13063
- },
13064
13081
  {
13065
13082
  "name": "style",
13066
13083
  "type": "string",
@@ -13079,6 +13096,18 @@
13079
13096
  "default": "false",
13080
13097
  "description": "When present, it specifies that the element value cannot be altered."
13081
13098
  },
13099
+ {
13100
+ "name": "readOnly",
13101
+ "type": "boolean",
13102
+ "default": "false",
13103
+ "description": "When present, it specifies that the value cannot be changed."
13104
+ },
13105
+ {
13106
+ "name": "tabIndex",
13107
+ "type": "number",
13108
+ "default": "0",
13109
+ "description": "Index of the element in tabbing order."
13110
+ },
13082
13111
  {
13083
13112
  "name": "tooltip",
13084
13113
  "type": "any",
@@ -13090,12 +13119,6 @@
13090
13119
  "type": "object",
13091
13120
  "default": "null",
13092
13121
  "description": "Configuration of the tooltip, refer to the tooltip documentation for more information."
13093
- },
13094
- {
13095
- "name": "ariaLabelledBy",
13096
- "type": "string",
13097
- "default": "null",
13098
- "description": "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
13099
13122
  }
13100
13123
  ],
13101
13124
  "events": [