primereact 10.6.4 → 10.6.5
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/accordion/accordion.cjs.js +2 -2
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +2 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +2 -2
- package/accordion/accordion.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +1 -1
- package/autocomplete/autocomplete.esm.js +1 -1
- package/autocomplete/autocomplete.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +1 -1
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +1 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +1 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/calendar/calendar.cjs.js +3 -3
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +3 -3
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +3 -3
- package/calendar/calendar.min.js +1 -1
- package/chips/chips.cjs.js +1 -1
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +1 -1
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +1 -1
- package/chips/chips.min.js +1 -1
- package/core/core.js +2 -2
- package/core/core.min.js +1 -1
- package/datatable/datatable.cjs.js +12 -0
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +22 -0
- package/datatable/datatable.esm.js +12 -0
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +12 -0
- package/datatable/datatable.min.js +1 -1
- package/dropdown/dropdown.cjs.js +2 -2
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +2 -2
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +2 -2
- package/dropdown/dropdown.min.js +1 -1
- package/inputotp/inputotp.cjs.js +4 -0
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +4 -0
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +4 -0
- package/inputotp/inputotp.min.js +1 -1
- package/menubar/menubar.d.ts +4 -0
- package/metergroup/metergroup.cjs.js +1 -1
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +1 -1
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +1 -1
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +1 -1
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +1 -1
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +1 -1
- package/multiselect/multiselect.min.js +1 -1
- package/package.json +1 -1
- package/panelmenu/panelmenu.d.ts +4 -0
- package/password/password.cjs.js +7 -1
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +4 -0
- package/password/password.esm.js +7 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +7 -1
- package/password/password.min.js +1 -1
- package/primereact.all.cjs.js +30 -12
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +30 -12
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +30 -12
- package/primereact.all.min.js +1 -1
- package/stepper/stepper.d.ts +1 -1
- package/web-types.json +2 -2
package/primereact.all.esm.js
CHANGED
|
@@ -5265,10 +5265,10 @@ var Accordion = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5265
5265
|
disabled: getTabProp(tab, 'disabled')
|
|
5266
5266
|
}
|
|
5267
5267
|
};
|
|
5268
|
-
return mergeProps(ptm("
|
|
5268
|
+
return mergeProps(ptm("tab.".concat(key), {
|
|
5269
5269
|
tab: tabMetaData
|
|
5270
5270
|
}), ptm("accordiontab.".concat(key), {
|
|
5271
|
-
|
|
5271
|
+
accordiontab: tabMetaData
|
|
5272
5272
|
}), ptm("accordiontab.".concat(key), tabMetaData), ptmo(getTabProp(tab, 'pt'), key, tabMetaData));
|
|
5273
5273
|
};
|
|
5274
5274
|
var onTabHeaderClick = function onTabHeaderClick(event, tab, index) {
|
|
@@ -8516,7 +8516,7 @@ var AutoCompletePanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(f
|
|
|
8516
8516
|
key: key
|
|
8517
8517
|
}, itemProps), content, /*#__PURE__*/React.createElement(Ripple, null));
|
|
8518
8518
|
};
|
|
8519
|
-
var createGroupChildren = function createGroupChildren(optionGroup, i
|
|
8519
|
+
var createGroupChildren = function createGroupChildren(optionGroup, i) {
|
|
8520
8520
|
var groupChildren = props.getOptionGroupChildren(optionGroup);
|
|
8521
8521
|
return groupChildren.map(function (item, j) {
|
|
8522
8522
|
var key = i + '_' + j;
|
|
@@ -9743,7 +9743,7 @@ var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
9743
9743
|
var lastPath = typeof window !== 'undefined' ? window.location.pathname : '';
|
|
9744
9744
|
return url === lastPath ? 'page' : undefined;
|
|
9745
9745
|
};
|
|
9746
|
-
var createHome = function createHome(
|
|
9746
|
+
var createHome = function createHome() {
|
|
9747
9747
|
var home = props.home;
|
|
9748
9748
|
if (home) {
|
|
9749
9749
|
if (home.visible === false) {
|
|
@@ -10907,7 +10907,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
10907
10907
|
return date instanceof Date && !isNaN(date);
|
|
10908
10908
|
};
|
|
10909
10909
|
var convertTo24Hour = function convertTo24Hour(hour, pm) {
|
|
10910
|
-
if (props.hourFormat
|
|
10910
|
+
if (props.hourFormat === '12') {
|
|
10911
10911
|
return hour === 12 ? pm ? 12 : 0 : pm ? hour + 12 : hour;
|
|
10912
10912
|
}
|
|
10913
10913
|
return hour;
|
|
@@ -11051,7 +11051,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
11051
11051
|
if (!value) {
|
|
11052
11052
|
onClearButtonClick(event);
|
|
11053
11053
|
}
|
|
11054
|
-
if (value
|
|
11054
|
+
if (value && props.onSelect) {
|
|
11055
11055
|
var day = value.getDate();
|
|
11056
11056
|
var month = value.getMonth();
|
|
11057
11057
|
var year = value.getFullYear();
|
|
@@ -11543,7 +11543,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
11543
11543
|
event.currentTarget.focus();
|
|
11544
11544
|
if (isMultipleSelection()) {
|
|
11545
11545
|
if (isSelected(dateMeta)) {
|
|
11546
|
-
var value = props.value.filter(function (date
|
|
11546
|
+
var value = props.value.filter(function (date) {
|
|
11547
11547
|
return !isDateEquals(date, dateMeta);
|
|
11548
11548
|
});
|
|
11549
11549
|
updateModel(event, value);
|
|
@@ -16126,7 +16126,7 @@ var Chips = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inP
|
|
|
16126
16126
|
}
|
|
16127
16127
|
}
|
|
16128
16128
|
};
|
|
16129
|
-
var onContainerFocus = function onContainerFocus(
|
|
16129
|
+
var onContainerFocus = function onContainerFocus() {
|
|
16130
16130
|
setFocusedState(true);
|
|
16131
16131
|
};
|
|
16132
16132
|
var onContainerBlur = function onContainerBlur() {
|
|
@@ -22904,10 +22904,10 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
22904
22904
|
}
|
|
22905
22905
|
};
|
|
22906
22906
|
var getOptionLabel = function getOptionLabel(option) {
|
|
22907
|
-
return props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : option;
|
|
22907
|
+
return props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : ObjectUtils.resolveFieldData(option, 'label');
|
|
22908
22908
|
};
|
|
22909
22909
|
var getOptionValue = function getOptionValue(option) {
|
|
22910
|
-
return props.optionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : option;
|
|
22910
|
+
return props.optionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : ObjectUtils.resolveFieldData(option, 'value') || option;
|
|
22911
22911
|
};
|
|
22912
22912
|
var getOptionRenderKey = function getOptionRenderKey(option) {
|
|
22913
22913
|
return props.dataKey ? ObjectUtils.resolveFieldData(option, props.dataKey) : getOptionLabel(option);
|
|
@@ -29716,6 +29716,18 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
29716
29716
|
restoreState: restoreState,
|
|
29717
29717
|
restoreTableState: restoreTableState,
|
|
29718
29718
|
saveState: saveState,
|
|
29719
|
+
getFilterMeta: function getFilterMeta() {
|
|
29720
|
+
return filtersState;
|
|
29721
|
+
},
|
|
29722
|
+
setFilterMeta: function setFilterMeta(filters) {
|
|
29723
|
+
return setFiltersState(filters);
|
|
29724
|
+
},
|
|
29725
|
+
getSortMeta: function getSortMeta() {
|
|
29726
|
+
return multiSortMetaState;
|
|
29727
|
+
},
|
|
29728
|
+
setSortMeta: function setSortMeta(sorts) {
|
|
29729
|
+
return setMultiSortMetaState(sorts);
|
|
29730
|
+
},
|
|
29719
29731
|
getElement: function getElement() {
|
|
29720
29732
|
return elementRef.current;
|
|
29721
29733
|
},
|
|
@@ -40343,7 +40355,7 @@ var classes$w = {
|
|
|
40343
40355
|
'p-focus': props.focusedOptionIndex === props.index
|
|
40344
40356
|
});
|
|
40345
40357
|
},
|
|
40346
|
-
checkboxContainer: 'p-checkbox
|
|
40358
|
+
checkboxContainer: 'p-multiselect-checkbox',
|
|
40347
40359
|
checkboxIcon: 'p-checkbox-icon p-c',
|
|
40348
40360
|
transition: 'p-connected-overlay'
|
|
40349
40361
|
};
|
|
@@ -45730,7 +45742,13 @@ var Password = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
45730
45742
|
}), ptm('input'));
|
|
45731
45743
|
var input = /*#__PURE__*/React.createElement(InputText, inputTextProps);
|
|
45732
45744
|
if (icon) {
|
|
45733
|
-
input = /*#__PURE__*/React.createElement(IconField,
|
|
45745
|
+
input = /*#__PURE__*/React.createElement(IconField, {
|
|
45746
|
+
className: cx('iconField'),
|
|
45747
|
+
pt: ptm('iconField'),
|
|
45748
|
+
__parentMetadata: {
|
|
45749
|
+
parent: metaData
|
|
45750
|
+
}
|
|
45751
|
+
}, /*#__PURE__*/React.createElement(InputIcon, null, icon), input);
|
|
45734
45752
|
}
|
|
45735
45753
|
return /*#__PURE__*/React.createElement("div", rootProps, input, panel);
|
|
45736
45754
|
}));
|