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.
- package/README.md +5 -4
- package/api/api.cjs.js +22 -1
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +22 -2
- package/api/api.esm.min.js +1 -1
- package/api/api.js +22 -1
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +15 -11
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +0 -1
- package/autocomplete/autocomplete.esm.js +15 -11
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +15 -11
- package/autocomplete/autocomplete.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +22 -6
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +22 -6
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +22 -6
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +1 -1
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +1 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +1 -1
- package/button/button.min.css +1 -1
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +2 -2
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +7 -6
- package/calendar/calendar.esm.js +2 -2
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +2 -2
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +1 -0
- package/captcha/captcha.esm.js +1 -0
- package/captcha/captcha.js +1 -0
- package/carousel/carousel.cjs.js +22 -21
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +23 -22
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +23 -22
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +2 -1
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +2 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +2 -1
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/checkbox.cjs.js +0 -1
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +0 -1
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +0 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chips/chips.cjs.js +6 -2
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +6 -2
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +6 -2
- package/chips/chips.min.js +1 -1
- package/column/column.cjs.js +2 -1
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +1 -0
- package/column/column.esm.js +2 -1
- package/column/column.esm.min.js +1 -1
- package/column/column.js +2 -1
- package/column/column.min.js +1 -1
- package/core/core.js +141 -41
- package/core/core.min.js +8 -8
- package/datatable/datatable.cjs.js +14 -9
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +14 -9
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +14 -9
- package/datatable/datatable.min.css +1 -1
- package/datatable/datatable.min.js +1 -1
- package/dropdown/dropdown.cjs.js +2 -7
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +2 -7
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +2 -7
- package/dropdown/dropdown.min.js +1 -1
- package/fileupload/fileupload.cjs.js +46 -19
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +1 -0
- package/fileupload/fileupload.esm.js +46 -19
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +46 -19
- package/fileupload/fileupload.min.js +1 -1
- package/fullcalendar/fullcalendar.cjs.js +1 -0
- package/fullcalendar/fullcalendar.esm.js +1 -0
- package/fullcalendar/fullcalendar.js +1 -0
- package/hooks/hooks.cjs.js +52 -0
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +7 -5
- package/hooks/hooks.esm.js +52 -1
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +52 -0
- package/hooks/hooks.min.js +1 -1
- package/inputmask/inputmask.cjs.js +0 -2
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +0 -1
- package/inputmask/inputmask.esm.js +0 -2
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +0 -2
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +37 -4
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +38 -5
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +37 -4
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +1 -1
- package/listbox/listbox.cjs.js +18 -9
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +1 -0
- package/listbox/listbox.esm.js +18 -9
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +18 -9
- package/listbox/listbox.min.js +1 -1
- package/mention/mention.cjs.js +7 -3
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +7 -3
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +7 -3
- package/mention/mention.min.js +1 -1
- package/multiselect/multiselect.cjs.js +2 -5
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +2 -5
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +2 -5
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +30 -24
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +2 -4
- package/multistatecheckbox/multistatecheckbox.esm.js +30 -24
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +31 -26
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +1 -1
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +1 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +1 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +7 -5
- package/paginator/paginator.cjs.js +26 -24
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +26 -24
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +26 -25
- package/paginator/paginator.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +15 -0
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +16 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +15 -0
- package/panelmenu/panelmenu.min.js +1 -1
- package/picklist/picklist.cjs.js +6 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +5 -1
- package/picklist/picklist.esm.js +6 -2
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +6 -2
- package/picklist/picklist.min.js +1 -1
- package/primereact.all.cjs.js +565 -329
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +564 -330
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +565 -329
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +1 -2
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +1 -2
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +1 -2
- package/progressbar/progressbar.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +5 -5
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +0 -1
- package/radiobutton/radiobutton.esm.js +5 -5
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +5 -5
- package/radiobutton/radiobutton.min.js +1 -1
- package/resources/primereact.css +94 -94
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +10 -1
- package/resources/themes/arya-green/theme.css +10 -1
- package/resources/themes/arya-orange/theme.css +10 -1
- package/resources/themes/arya-purple/theme.css +10 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +10 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +10 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +10 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +10 -1
- package/resources/themes/fluent-light/theme.css +10 -1
- package/resources/themes/lara-dark-blue/theme.css +10 -1
- package/resources/themes/lara-dark-indigo/theme.css +10 -1
- package/resources/themes/lara-dark-purple/theme.css +10 -1
- package/resources/themes/lara-dark-teal/theme.css +10 -1
- package/resources/themes/lara-light-blue/theme.css +10 -1
- package/resources/themes/lara-light-indigo/theme.css +10 -1
- package/resources/themes/lara-light-purple/theme.css +10 -1
- package/resources/themes/lara-light-teal/theme.css +10 -1
- package/resources/themes/luna-amber/theme.css +10 -1
- package/resources/themes/luna-blue/theme.css +10 -1
- package/resources/themes/luna-green/theme.css +10 -1
- package/resources/themes/luna-pink/theme.css +10 -1
- package/resources/themes/md-dark-deeppurple/theme.css +10 -1
- package/resources/themes/md-dark-indigo/theme.css +10 -1
- package/resources/themes/md-light-deeppurple/theme.css +10 -1
- package/resources/themes/md-light-indigo/theme.css +10 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +10 -1
- package/resources/themes/mdc-dark-indigo/theme.css +10 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +10 -1
- package/resources/themes/mdc-light-indigo/theme.css +10 -1
- package/resources/themes/nova/theme.css +10 -1
- package/resources/themes/nova-accent/theme.css +10 -1
- package/resources/themes/nova-alt/theme.css +10 -1
- package/resources/themes/rhea/theme.css +10 -1
- package/resources/themes/saga-blue/theme.css +10 -1
- package/resources/themes/saga-green/theme.css +10 -1
- package/resources/themes/saga-orange/theme.css +10 -1
- package/resources/themes/saga-purple/theme.css +10 -1
- package/resources/themes/tailwind-light/theme.css +10 -1
- package/resources/themes/vela-blue/theme.css +10 -1
- package/resources/themes/vela-green/theme.css +10 -1
- package/resources/themes/vela-orange/theme.css +10 -1
- package/resources/themes/vela-purple/theme.css +10 -1
- package/selectbutton/selectbutton.cjs.js +2 -6
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +2 -6
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +2 -6
- package/selectbutton/selectbutton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +38 -7
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +38 -7
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +38 -7
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +6 -3
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +6 -3
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +6 -3
- package/slider/slider.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +12 -9
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -0
- package/splitbutton/splitbutton.esm.js +12 -9
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +12 -9
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +6 -2
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +6 -2
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +6 -2
- package/splitter/splitter.min.js +1 -1
- package/styleclass/styleclass.cjs.js +14 -4
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +14 -4
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +14 -4
- package/styleclass/styleclass.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +3 -3
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +0 -1
- package/togglebutton/togglebutton.esm.js +3 -3
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +3 -3
- package/togglebutton/togglebutton.min.js +1 -1
- package/treeselect/treeselect.d.ts +4 -5
- package/treetable/treetable.cjs.js +10 -1
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +10 -1
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +10 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +25 -23
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +2 -4
- package/tristatecheckbox/tristatecheckbox.esm.js +25 -23
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +26 -25
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- 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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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:
|
|
151
|
-
|
|
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
|
-
|
|
160
|
-
defaultChecked: props.value
|
|
161
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
162
|
-
className: boxClassName,
|
|
159
|
+
onKeyDown: onKeyDown,
|
|
163
160
|
role: "checkbox",
|
|
164
|
-
"aria-checked":
|
|
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
|
-
}))
|
|
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
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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:
|
|
171
|
-
|
|
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
|
-
|
|
180
|
-
defaultChecked: props.value
|
|
181
|
-
})), /*#__PURE__*/React__namespace.createElement("div", {
|
|
182
|
-
className: boxClassName,
|
|
178
|
+
onKeyDown: onKeyDown,
|
|
183
179
|
role: "checkbox",
|
|
184
|
-
"aria-checked":
|
|
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
|
-
}))
|
|
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,
|
|
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.
|
|
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": "
|
|
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
|
|
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": "
|
|
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": "
|
|
8317
|
+
"name": "dataKey",
|
|
8295
8318
|
"type": "string",
|
|
8296
8319
|
"default": "null",
|
|
8297
|
-
"description": "
|
|
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
|
|
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": "
|
|
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": [
|