primereact 8.0.0-rc.2 → 8.1.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 (288) hide show
  1. package/README.md +5 -4
  2. package/api/api.cjs.js +22 -1
  3. package/api/api.cjs.min.js +1 -1
  4. package/api/api.esm.js +22 -2
  5. package/api/api.esm.min.js +1 -1
  6. package/api/api.js +22 -1
  7. package/api/api.min.js +1 -1
  8. package/autocomplete/autocomplete.cjs.js +15 -11
  9. package/autocomplete/autocomplete.cjs.min.js +1 -1
  10. package/autocomplete/autocomplete.d.ts +0 -1
  11. package/autocomplete/autocomplete.esm.js +15 -11
  12. package/autocomplete/autocomplete.esm.min.js +1 -1
  13. package/autocomplete/autocomplete.js +15 -11
  14. package/autocomplete/autocomplete.min.js +1 -1
  15. package/breadcrumb/breadcrumb.cjs.js +22 -6
  16. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  17. package/breadcrumb/breadcrumb.esm.js +22 -6
  18. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  19. package/breadcrumb/breadcrumb.js +22 -6
  20. package/breadcrumb/breadcrumb.min.js +1 -1
  21. package/button/button.cjs.js +1 -1
  22. package/button/button.cjs.min.js +1 -1
  23. package/button/button.esm.js +1 -1
  24. package/button/button.esm.min.js +1 -1
  25. package/button/button.js +1 -1
  26. package/button/button.min.css +1 -1
  27. package/button/button.min.js +1 -1
  28. package/calendar/calendar.cjs.js +2 -2
  29. package/calendar/calendar.cjs.min.js +1 -1
  30. package/calendar/calendar.d.ts +7 -6
  31. package/calendar/calendar.esm.js +2 -2
  32. package/calendar/calendar.esm.min.js +1 -1
  33. package/calendar/calendar.js +2 -2
  34. package/calendar/calendar.min.js +1 -1
  35. package/captcha/captcha.cjs.js +1 -0
  36. package/captcha/captcha.esm.js +1 -0
  37. package/captcha/captcha.js +1 -0
  38. package/carousel/carousel.cjs.js +22 -21
  39. package/carousel/carousel.cjs.min.js +1 -1
  40. package/carousel/carousel.esm.js +23 -22
  41. package/carousel/carousel.esm.min.js +1 -1
  42. package/carousel/carousel.js +23 -22
  43. package/carousel/carousel.min.js +1 -1
  44. package/cascadeselect/cascadeselect.cjs.js +2 -1
  45. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  46. package/cascadeselect/cascadeselect.esm.js +2 -1
  47. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  48. package/cascadeselect/cascadeselect.js +2 -1
  49. package/cascadeselect/cascadeselect.min.js +1 -1
  50. package/checkbox/checkbox.cjs.js +0 -1
  51. package/checkbox/checkbox.cjs.min.js +1 -1
  52. package/checkbox/checkbox.esm.js +0 -1
  53. package/checkbox/checkbox.esm.min.js +1 -1
  54. package/checkbox/checkbox.js +0 -1
  55. package/checkbox/checkbox.min.js +1 -1
  56. package/chips/chips.cjs.js +6 -2
  57. package/chips/chips.cjs.min.js +1 -1
  58. package/chips/chips.esm.js +6 -2
  59. package/chips/chips.esm.min.js +1 -1
  60. package/chips/chips.js +6 -2
  61. package/chips/chips.min.js +1 -1
  62. package/column/column.cjs.js +2 -1
  63. package/column/column.cjs.min.js +1 -1
  64. package/column/column.d.ts +1 -0
  65. package/column/column.esm.js +2 -1
  66. package/column/column.esm.min.js +1 -1
  67. package/column/column.js +2 -1
  68. package/column/column.min.js +1 -1
  69. package/core/core.js +141 -41
  70. package/core/core.min.js +8 -8
  71. package/datatable/datatable.cjs.js +14 -9
  72. package/datatable/datatable.cjs.min.js +1 -1
  73. package/datatable/datatable.esm.js +14 -9
  74. package/datatable/datatable.esm.min.js +1 -1
  75. package/datatable/datatable.js +14 -9
  76. package/datatable/datatable.min.css +1 -1
  77. package/datatable/datatable.min.js +1 -1
  78. package/dropdown/dropdown.cjs.js +2 -7
  79. package/dropdown/dropdown.cjs.min.js +1 -1
  80. package/dropdown/dropdown.esm.js +2 -7
  81. package/dropdown/dropdown.esm.min.js +1 -1
  82. package/dropdown/dropdown.js +2 -7
  83. package/dropdown/dropdown.min.js +1 -1
  84. package/fileupload/fileupload.cjs.js +46 -19
  85. package/fileupload/fileupload.cjs.min.js +1 -1
  86. package/fileupload/fileupload.d.ts +1 -0
  87. package/fileupload/fileupload.esm.js +46 -19
  88. package/fileupload/fileupload.esm.min.js +1 -1
  89. package/fileupload/fileupload.js +46 -19
  90. package/fileupload/fileupload.min.js +1 -1
  91. package/fullcalendar/fullcalendar.cjs.js +1 -0
  92. package/fullcalendar/fullcalendar.esm.js +1 -0
  93. package/fullcalendar/fullcalendar.js +1 -0
  94. package/hooks/hooks.cjs.js +52 -0
  95. package/hooks/hooks.cjs.min.js +1 -1
  96. package/hooks/hooks.d.ts +7 -5
  97. package/hooks/hooks.esm.js +52 -1
  98. package/hooks/hooks.esm.min.js +1 -1
  99. package/hooks/hooks.js +52 -0
  100. package/hooks/hooks.min.js +1 -1
  101. package/inputmask/inputmask.cjs.js +0 -2
  102. package/inputmask/inputmask.cjs.min.js +1 -1
  103. package/inputmask/inputmask.d.ts +0 -1
  104. package/inputmask/inputmask.esm.js +0 -2
  105. package/inputmask/inputmask.esm.min.js +1 -1
  106. package/inputmask/inputmask.js +0 -2
  107. package/inputmask/inputmask.min.js +1 -1
  108. package/inputnumber/inputnumber.cjs.js +37 -4
  109. package/inputnumber/inputnumber.cjs.min.js +1 -1
  110. package/inputnumber/inputnumber.esm.js +38 -5
  111. package/inputnumber/inputnumber.esm.min.js +1 -1
  112. package/inputnumber/inputnumber.js +37 -4
  113. package/inputnumber/inputnumber.min.js +1 -1
  114. package/inputswitch/inputswitch.d.ts +1 -1
  115. package/listbox/listbox.cjs.js +18 -9
  116. package/listbox/listbox.cjs.min.js +1 -1
  117. package/listbox/listbox.d.ts +1 -0
  118. package/listbox/listbox.esm.js +18 -9
  119. package/listbox/listbox.esm.min.js +1 -1
  120. package/listbox/listbox.js +18 -9
  121. package/listbox/listbox.min.js +1 -1
  122. package/mention/mention.cjs.js +7 -3
  123. package/mention/mention.cjs.min.js +1 -1
  124. package/mention/mention.esm.js +7 -3
  125. package/mention/mention.esm.min.js +1 -1
  126. package/mention/mention.js +7 -3
  127. package/mention/mention.min.js +1 -1
  128. package/multiselect/multiselect.cjs.js +2 -5
  129. package/multiselect/multiselect.cjs.min.js +1 -1
  130. package/multiselect/multiselect.esm.js +2 -5
  131. package/multiselect/multiselect.esm.min.js +1 -1
  132. package/multiselect/multiselect.js +2 -5
  133. package/multiselect/multiselect.min.js +1 -1
  134. package/multistatecheckbox/multistatecheckbox.cjs.js +30 -24
  135. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  136. package/multistatecheckbox/multistatecheckbox.d.ts +2 -4
  137. package/multistatecheckbox/multistatecheckbox.esm.js +30 -24
  138. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  139. package/multistatecheckbox/multistatecheckbox.js +31 -26
  140. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  141. package/overlaypanel/overlaypanel.cjs.js +1 -1
  142. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  143. package/overlaypanel/overlaypanel.esm.js +1 -1
  144. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  145. package/overlaypanel/overlaypanel.js +1 -1
  146. package/overlaypanel/overlaypanel.min.js +1 -1
  147. package/package.json +7 -5
  148. package/paginator/paginator.cjs.js +26 -24
  149. package/paginator/paginator.cjs.min.js +1 -1
  150. package/paginator/paginator.esm.js +26 -24
  151. package/paginator/paginator.esm.min.js +1 -1
  152. package/paginator/paginator.js +26 -25
  153. package/paginator/paginator.min.js +1 -1
  154. package/panelmenu/panelmenu.cjs.js +15 -0
  155. package/panelmenu/panelmenu.cjs.min.js +1 -1
  156. package/panelmenu/panelmenu.esm.js +16 -1
  157. package/panelmenu/panelmenu.esm.min.js +1 -1
  158. package/panelmenu/panelmenu.js +15 -0
  159. package/panelmenu/panelmenu.min.js +1 -1
  160. package/picklist/picklist.cjs.js +6 -2
  161. package/picklist/picklist.cjs.min.js +1 -1
  162. package/picklist/picklist.d.ts +5 -1
  163. package/picklist/picklist.esm.js +6 -2
  164. package/picklist/picklist.esm.min.js +1 -1
  165. package/picklist/picklist.js +6 -2
  166. package/picklist/picklist.min.js +1 -1
  167. package/primereact.all.cjs.js +565 -329
  168. package/primereact.all.cjs.min.js +1 -1
  169. package/primereact.all.esm.js +564 -330
  170. package/primereact.all.esm.min.js +1 -1
  171. package/primereact.all.js +565 -329
  172. package/primereact.all.min.js +1 -1
  173. package/progressbar/progressbar.cjs.js +1 -2
  174. package/progressbar/progressbar.cjs.min.js +1 -1
  175. package/progressbar/progressbar.esm.js +1 -2
  176. package/progressbar/progressbar.esm.min.js +1 -1
  177. package/progressbar/progressbar.js +1 -2
  178. package/progressbar/progressbar.min.js +1 -1
  179. package/radiobutton/radiobutton.cjs.js +5 -5
  180. package/radiobutton/radiobutton.cjs.min.js +1 -1
  181. package/radiobutton/radiobutton.d.ts +0 -1
  182. package/radiobutton/radiobutton.esm.js +5 -5
  183. package/radiobutton/radiobutton.esm.min.js +1 -1
  184. package/radiobutton/radiobutton.js +5 -5
  185. package/radiobutton/radiobutton.min.js +1 -1
  186. package/resources/primereact.css +94 -94
  187. package/resources/primereact.min.css +1 -1
  188. package/resources/themes/arya-blue/theme.css +10 -1
  189. package/resources/themes/arya-green/theme.css +10 -1
  190. package/resources/themes/arya-orange/theme.css +10 -1
  191. package/resources/themes/arya-purple/theme.css +10 -1
  192. package/resources/themes/bootstrap4-dark-blue/theme.css +10 -1
  193. package/resources/themes/bootstrap4-dark-purple/theme.css +10 -1
  194. package/resources/themes/bootstrap4-light-blue/theme.css +10 -1
  195. package/resources/themes/bootstrap4-light-purple/theme.css +10 -1
  196. package/resources/themes/fluent-light/theme.css +10 -1
  197. package/resources/themes/lara-dark-blue/theme.css +10 -1
  198. package/resources/themes/lara-dark-indigo/theme.css +10 -1
  199. package/resources/themes/lara-dark-purple/theme.css +10 -1
  200. package/resources/themes/lara-dark-teal/theme.css +10 -1
  201. package/resources/themes/lara-light-blue/theme.css +10 -1
  202. package/resources/themes/lara-light-indigo/theme.css +10 -1
  203. package/resources/themes/lara-light-purple/theme.css +10 -1
  204. package/resources/themes/lara-light-teal/theme.css +10 -1
  205. package/resources/themes/luna-amber/theme.css +10 -1
  206. package/resources/themes/luna-blue/theme.css +10 -1
  207. package/resources/themes/luna-green/theme.css +10 -1
  208. package/resources/themes/luna-pink/theme.css +10 -1
  209. package/resources/themes/md-dark-deeppurple/theme.css +10 -1
  210. package/resources/themes/md-dark-indigo/theme.css +10 -1
  211. package/resources/themes/md-light-deeppurple/theme.css +10 -1
  212. package/resources/themes/md-light-indigo/theme.css +10 -1
  213. package/resources/themes/mdc-dark-deeppurple/theme.css +10 -1
  214. package/resources/themes/mdc-dark-indigo/theme.css +10 -1
  215. package/resources/themes/mdc-light-deeppurple/theme.css +10 -1
  216. package/resources/themes/mdc-light-indigo/theme.css +10 -1
  217. package/resources/themes/nova/theme.css +10 -1
  218. package/resources/themes/nova-accent/theme.css +10 -1
  219. package/resources/themes/nova-alt/theme.css +10 -1
  220. package/resources/themes/rhea/theme.css +10 -1
  221. package/resources/themes/saga-blue/theme.css +10 -1
  222. package/resources/themes/saga-green/theme.css +10 -1
  223. package/resources/themes/saga-orange/theme.css +10 -1
  224. package/resources/themes/saga-purple/theme.css +10 -1
  225. package/resources/themes/tailwind-light/theme.css +10 -1
  226. package/resources/themes/vela-blue/theme.css +10 -1
  227. package/resources/themes/vela-green/theme.css +10 -1
  228. package/resources/themes/vela-orange/theme.css +10 -1
  229. package/resources/themes/vela-purple/theme.css +10 -1
  230. package/selectbutton/selectbutton.cjs.js +2 -6
  231. package/selectbutton/selectbutton.cjs.min.js +1 -1
  232. package/selectbutton/selectbutton.esm.js +2 -6
  233. package/selectbutton/selectbutton.esm.min.js +1 -1
  234. package/selectbutton/selectbutton.js +2 -6
  235. package/selectbutton/selectbutton.min.js +1 -1
  236. package/slidemenu/slidemenu.cjs.js +38 -7
  237. package/slidemenu/slidemenu.cjs.min.js +1 -1
  238. package/slidemenu/slidemenu.esm.js +38 -7
  239. package/slidemenu/slidemenu.esm.min.js +1 -1
  240. package/slidemenu/slidemenu.js +38 -7
  241. package/slidemenu/slidemenu.min.js +1 -1
  242. package/slider/slider.cjs.js +6 -3
  243. package/slider/slider.cjs.min.js +1 -1
  244. package/slider/slider.esm.js +6 -3
  245. package/slider/slider.esm.min.js +1 -1
  246. package/slider/slider.js +6 -3
  247. package/slider/slider.min.js +1 -1
  248. package/splitbutton/splitbutton.cjs.js +12 -9
  249. package/splitbutton/splitbutton.cjs.min.js +1 -1
  250. package/splitbutton/splitbutton.d.ts +2 -0
  251. package/splitbutton/splitbutton.esm.js +12 -9
  252. package/splitbutton/splitbutton.esm.min.js +1 -1
  253. package/splitbutton/splitbutton.js +12 -9
  254. package/splitbutton/splitbutton.min.js +1 -1
  255. package/splitter/splitter.cjs.js +6 -2
  256. package/splitter/splitter.cjs.min.js +1 -1
  257. package/splitter/splitter.esm.js +6 -2
  258. package/splitter/splitter.esm.min.js +1 -1
  259. package/splitter/splitter.js +6 -2
  260. package/splitter/splitter.min.js +1 -1
  261. package/styleclass/styleclass.cjs.js +14 -4
  262. package/styleclass/styleclass.cjs.min.js +1 -1
  263. package/styleclass/styleclass.esm.js +14 -4
  264. package/styleclass/styleclass.esm.min.js +1 -1
  265. package/styleclass/styleclass.js +14 -4
  266. package/styleclass/styleclass.min.js +1 -1
  267. package/togglebutton/togglebutton.cjs.js +3 -3
  268. package/togglebutton/togglebutton.cjs.min.js +1 -1
  269. package/togglebutton/togglebutton.d.ts +0 -1
  270. package/togglebutton/togglebutton.esm.js +3 -3
  271. package/togglebutton/togglebutton.esm.min.js +1 -1
  272. package/togglebutton/togglebutton.js +3 -3
  273. package/togglebutton/togglebutton.min.js +1 -1
  274. package/treeselect/treeselect.d.ts +4 -5
  275. package/treetable/treetable.cjs.js +10 -1
  276. package/treetable/treetable.cjs.min.js +1 -1
  277. package/treetable/treetable.esm.js +10 -1
  278. package/treetable/treetable.esm.min.js +1 -1
  279. package/treetable/treetable.js +10 -1
  280. package/treetable/treetable.min.js +1 -1
  281. package/tristatecheckbox/tristatecheckbox.cjs.js +25 -23
  282. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  283. package/tristatecheckbox/tristatecheckbox.d.ts +2 -4
  284. package/tristatecheckbox/tristatecheckbox.esm.js +25 -23
  285. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  286. package/tristatecheckbox/tristatecheckbox.js +26 -25
  287. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  288. package/web-types.json +73 -68
@@ -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-rc.2",
4
+ "version": "8.1.0",
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": [
@@ -5755,6 +5761,17 @@
5755
5761
  }
5756
5762
  ]
5757
5763
  },
5764
+ {
5765
+ "name": "onBeforeDrop",
5766
+ "description": "Callback to invoke before files dropped. Return false from callback to prevent drop.",
5767
+ "arguments": [
5768
+ {
5769
+ "name": "event.originalEvent",
5770
+ "type": "object",
5771
+ "description": "Original browser event."
5772
+ }
5773
+ ]
5774
+ },
5758
5775
  {
5759
5776
  "name": "onUpload",
5760
5777
  "description": "Callback to invoke when file upload is complete.",
@@ -7325,6 +7342,12 @@
7325
7342
  "default": "undefined",
7326
7343
  "description": "Locale to use in filtering. The default locale is the host environment's current locale."
7327
7344
  },
7345
+ {
7346
+ "name": "filterInputProps",
7347
+ "type": "object",
7348
+ "default": "undefined",
7349
+ "description": "Props for the filter input, any prop is passed implicity to the filter input element."
7350
+ },
7328
7351
  {
7329
7352
  "name": "tabIndex",
7330
7353
  "type": "number",
@@ -8260,12 +8283,6 @@
8260
8283
  "default": "null",
8261
8284
  "description": "Unique identifier of the element."
8262
8285
  },
8263
- {
8264
- "name": "inputId",
8265
- "type": "string",
8266
- "default": "null",
8267
- "description": "Unique identifier of the native checkbox element."
8268
- },
8269
8286
  {
8270
8287
  "name": "value",
8271
8288
  "type": "any",
@@ -8284,6 +8301,12 @@
8284
8301
  "default": "null",
8285
8302
  "description": "Property name to use as the value of an option, defaults to the option itself when not defined."
8286
8303
  },
8304
+ {
8305
+ "name": "optionLabel",
8306
+ "type": "string",
8307
+ "default": "null",
8308
+ "description": "Property name to refer to the option label, used by screen readers only. Defaults to optionValue."
8309
+ },
8287
8310
  {
8288
8311
  "name": "iconTemplate",
8289
8312
  "type": "any",
@@ -8291,10 +8314,10 @@
8291
8314
  "description": "Template of icon for the selected option."
8292
8315
  },
8293
8316
  {
8294
- "name": "name",
8317
+ "name": "dataKey",
8295
8318
  "type": "string",
8296
8319
  "default": "null",
8297
- "description": "Name of the checkbox element ."
8320
+ "description": "A property to uniquely match the value in options for better performance."
8298
8321
  },
8299
8322
  {
8300
8323
  "name": "style",
@@ -8318,7 +8341,7 @@
8318
8341
  "name": "readOnly",
8319
8342
  "type": "boolean",
8320
8343
  "default": "false",
8321
- "description": "When present, it specifies that the element value cannot be altered."
8344
+ "description": "When present, it specifies that the value cannot be changed."
8322
8345
  },
8323
8346
  {
8324
8347
  "name": "empty",
@@ -8337,18 +8360,6 @@
8337
8360
  "type": "object",
8338
8361
  "default": "null",
8339
8362
  "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
8363
  }
8353
8364
  ],
8354
8365
  "events": [
@@ -9167,7 +9178,19 @@
9167
9178
  "name": "itemTemplate",
9168
9179
  "type": "function",
9169
9180
  "default": "null",
9170
- "description": "Function that gets the option and returns the content for it."
9181
+ "description": "Template function that gets the options for both source and target items and returns the content for it."
9182
+ },
9183
+ {
9184
+ "name": "sourceItemTemplate",
9185
+ "type": "function",
9186
+ "default": "null",
9187
+ "description": "Template function that gets the options for the source items and returns the content for it."
9188
+ },
9189
+ {
9190
+ "name": "targetItemTemplate",
9191
+ "type": "function",
9192
+ "default": "null",
9193
+ "description": "Template function that gets the options for the target items and returns the content for it."
9171
9194
  },
9172
9195
  {
9173
9196
  "name": "metaKeySelection",
@@ -9508,12 +9531,6 @@
9508
9531
  "type": "object",
9509
9532
  "default": "null",
9510
9533
  "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
9534
  }
9518
9535
  ],
9519
9536
  "events": [
@@ -9833,12 +9850,6 @@
9833
9850
  "default": "null",
9834
9851
  "description": "Configuration of the tooltip, refer to the tooltip documentation for more information."
9835
9852
  },
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
9853
  {
9843
9854
  "name": "itemTemplate",
9844
9855
  "type": "function",
@@ -10231,12 +10242,6 @@
10231
10242
  "type": "number",
10232
10243
  "default": "null",
10233
10244
  "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
10245
  }
10241
10246
  ],
10242
10247
  "events": [
@@ -10509,6 +10514,18 @@
10509
10514
  "default": "null",
10510
10515
  "description": "ClassName class of menu dropdown button."
10511
10516
  },
10517
+ {
10518
+ "name": "buttonProps",
10519
+ "type": "object",
10520
+ "default": "undefined",
10521
+ "description": "Props for the main button, any prop is passed implicity to the button element."
10522
+ },
10523
+ {
10524
+ "name": "menuButtonProps",
10525
+ "type": "object",
10526
+ "default": "undefined",
10527
+ "description": "Props for the dropdown button, any prop is passed implicity to the dropdown button element."
10528
+ },
10512
10529
  {
10513
10530
  "name": "tabIndex",
10514
10531
  "type": "number",
@@ -11408,12 +11425,6 @@
11408
11425
  "type": "object",
11409
11426
  "default": "null",
11410
11427
  "description": "Configuration of the tooltip, refer to the tooltip documentation for more information."
11411
- },
11412
- {
11413
- "name": "ariaLabelledBy",
11414
- "type": "string",
11415
- "default": "null",
11416
- "description": "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
11417
11428
  }
11418
11429
  ],
11419
11430
  "events": [
@@ -13049,24 +13060,12 @@
13049
13060
  "default": "null",
13050
13061
  "description": "Unique identifier of the element."
13051
13062
  },
13052
- {
13053
- "name": "inputId",
13054
- "type": "string",
13055
- "default": "null",
13056
- "description": "Unique identifier of the native checkbox element."
13057
- },
13058
13063
  {
13059
13064
  "name": "value",
13060
13065
  "type": "any",
13061
13066
  "default": "null",
13062
13067
  "description": "Value of the TriStateCheckbox."
13063
13068
  },
13064
- {
13065
- "name": "name",
13066
- "type": "string",
13067
- "default": "null",
13068
- "description": "Name of the checkbox element ."
13069
- },
13070
13069
  {
13071
13070
  "name": "style",
13072
13071
  "type": "string",
@@ -13085,6 +13084,18 @@
13085
13084
  "default": "false",
13086
13085
  "description": "When present, it specifies that the element value cannot be altered."
13087
13086
  },
13087
+ {
13088
+ "name": "readOnly",
13089
+ "type": "boolean",
13090
+ "default": "false",
13091
+ "description": "When present, it specifies that the value cannot be changed."
13092
+ },
13093
+ {
13094
+ "name": "tabIndex",
13095
+ "type": "number",
13096
+ "default": "0",
13097
+ "description": "Index of the element in tabbing order."
13098
+ },
13088
13099
  {
13089
13100
  "name": "tooltip",
13090
13101
  "type": "any",
@@ -13096,12 +13107,6 @@
13096
13107
  "type": "object",
13097
13108
  "default": "null",
13098
13109
  "description": "Configuration of the tooltip, refer to the tooltip documentation for more information."
13099
- },
13100
- {
13101
- "name": "ariaLabelledBy",
13102
- "type": "string",
13103
- "default": "null",
13104
- "description": "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
13105
13110
  }
13106
13111
  ],
13107
13112
  "events": [