primereact 10.7.0 → 10.8.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 +1 -0
- package/api/api.cjs.js +18 -14
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +3 -3
- package/api/api.esm.js +18 -14
- package/api/api.esm.min.js +1 -1
- package/api/api.js +18 -14
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +2 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +4 -3
- package/autocomplete/autocomplete.esm.js +2 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +2 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/button/button.d.ts +2 -2
- package/calendar/calendar.cjs.js +6 -4
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +4 -3
- package/calendar/calendar.esm.js +6 -4
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +6 -4
- package/calendar/calendar.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +4 -3
- package/column/column.d.ts +8 -14
- package/core/core.js +56 -63
- package/core/core.min.js +9 -9
- package/datatable/datatable.cjs.js +50 -44
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +37 -1
- package/datatable/datatable.esm.js +50 -44
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +50 -44
- package/datatable/datatable.min.js +1 -1
- package/dialog/dialog.cjs.js +1 -1
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +1 -1
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +1 -1
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.cjs.js +13 -7
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +13 -7
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +13 -7
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +12 -2
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +12 -2
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +12 -2
- package/editor/editor.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +1 -16
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +1 -16
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +1 -16
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +1 -16
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +1 -16
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +1 -16
- package/icons/sortamountupalt/index.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +3 -1
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +3 -1
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +3 -1
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.d.ts +2 -3
- package/listbox/listbox.cjs.js +4 -0
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +4 -0
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +4 -0
- package/listbox/listbox.min.js +1 -1
- package/mention/mention.cjs.js +1 -0
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +1 -0
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +1 -0
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +3 -3
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +3 -3
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +3 -3
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +1 -1
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +1 -1
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +1 -1
- package/menubar/menubar.min.js +1 -1
- package/messages/messages.d.ts +21 -0
- package/multiselect/multiselect.cjs.js +8 -5
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +1 -9
- package/multiselect/multiselect.esm.js +8 -5
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +8 -5
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/orderlist.cjs.js +3 -2
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +3 -2
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +3 -2
- package/orderlist/orderlist.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +9 -7
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +9 -7
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +9 -7
- package/paginator/paginator.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +2 -2
- package/password/password.cjs.js +1 -0
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +1 -0
- package/password/password.esm.min.js +1 -1
- package/password/password.js +1 -0
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +9 -7
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +9 -7
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +9 -7
- package/picklist/picklist.min.js +1 -1
- package/primereact.all.cjs.js +306 -283
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +306 -283
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +306 -283
- package/primereact.all.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +9 -9
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +9 -9
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +9 -9
- package/radiobutton/radiobutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +1 -1
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +1 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/stepper/stepper.cjs.js +5 -0
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +6 -1
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +5 -0
- package/stepper/stepper.min.js +1 -1
- package/toast/toast.cjs.js +9 -7
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +1 -1
- package/toast/toast.esm.js +9 -7
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +9 -7
- package/toast/toast.min.js +1 -1
- package/tree/tree.cjs.js +5 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +5 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +5 -1
- package/tree/tree.min.js +1 -1
- package/treetable/treetable.d.ts +6 -6
- package/utils/utils.cjs.js +5 -0
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -0
- package/utils/utils.esm.js +5 -0
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +5 -0
- package/utils/utils.min.js +1 -1
- package/web-types.json +16 -7
package/core/core.js
CHANGED
|
@@ -1852,6 +1852,11 @@ this.primereact.utils = (function (exports, React) {
|
|
|
1852
1852
|
value: function isLetter(_char2) {
|
|
1853
1853
|
return /^[a-zA-Z\u00C0-\u017F]$/.test(_char2);
|
|
1854
1854
|
}
|
|
1855
|
+
}, {
|
|
1856
|
+
key: "isScalar",
|
|
1857
|
+
value: function isScalar(value) {
|
|
1858
|
+
return value != null && (typeof value === 'string' || typeof value === 'number' || typeof value === 'bigint' || typeof value === 'boolean');
|
|
1859
|
+
}
|
|
1855
1860
|
|
|
1856
1861
|
/**
|
|
1857
1862
|
* Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
|
|
@@ -2988,18 +2993,20 @@ this.primereact.api = (function (exports, utils, React) {
|
|
|
2988
2993
|
_defineProperty(PrimeReact$1, "changeTheme", function (currentTheme, newTheme, linkElementId, callback) {
|
|
2989
2994
|
var _linkElement$parentNo;
|
|
2990
2995
|
var linkElement = document.getElementById(linkElementId);
|
|
2991
|
-
|
|
2996
|
+
if (!linkElement) {
|
|
2997
|
+
throw Error("Element with id ".concat(linkElementId, " not found."));
|
|
2998
|
+
}
|
|
2992
2999
|
var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
3000
|
+
var newLinkElement = document.createElement('link');
|
|
3001
|
+
newLinkElement.setAttribute('rel', 'stylesheet');
|
|
3002
|
+
newLinkElement.setAttribute('id', linkElementId);
|
|
3003
|
+
newLinkElement.setAttribute('href', newThemeUrl);
|
|
3004
|
+
newLinkElement.addEventListener('load', function () {
|
|
2998
3005
|
if (callback) {
|
|
2999
3006
|
callback();
|
|
3000
3007
|
}
|
|
3001
3008
|
});
|
|
3002
|
-
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.
|
|
3009
|
+
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.replaceChild(newLinkElement, linkElement);
|
|
3003
3010
|
});
|
|
3004
3011
|
|
|
3005
3012
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -3673,18 +3680,20 @@ this.primereact.api = (function (exports, utils, React) {
|
|
|
3673
3680
|
var changeTheme = function changeTheme(currentTheme, newTheme, linkElementId, callback) {
|
|
3674
3681
|
var _linkElement$parentNo;
|
|
3675
3682
|
var linkElement = document.getElementById(linkElementId);
|
|
3676
|
-
|
|
3683
|
+
if (!linkElement) {
|
|
3684
|
+
throw Error("Element with id ".concat(linkElementId, " not found."));
|
|
3685
|
+
}
|
|
3677
3686
|
var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3687
|
+
var newLinkElement = document.createElement('link');
|
|
3688
|
+
newLinkElement.setAttribute('rel', 'stylesheet');
|
|
3689
|
+
newLinkElement.setAttribute('id', linkElementId);
|
|
3690
|
+
newLinkElement.setAttribute('href', newThemeUrl);
|
|
3691
|
+
newLinkElement.addEventListener('load', function () {
|
|
3683
3692
|
if (callback) {
|
|
3684
3693
|
callback();
|
|
3685
3694
|
}
|
|
3686
3695
|
});
|
|
3687
|
-
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.
|
|
3696
|
+
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.replaceChild(newLinkElement, linkElement);
|
|
3688
3697
|
};
|
|
3689
3698
|
|
|
3690
3699
|
/**
|
|
@@ -8319,22 +8328,7 @@ this.primereact.icons.sortamountdown = (function (exports, React, iconbase) {
|
|
|
8319
8328
|
fill: "none",
|
|
8320
8329
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8321
8330
|
}, pti), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8322
|
-
d: "
|
|
8323
|
-
fill: "currentColor"
|
|
8324
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8325
|
-
d: "M2.59836 13.2009C2.27032 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92641 13.2009 2.59836 13.2009Z",
|
|
8326
|
-
fill: "currentColor"
|
|
8327
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8328
|
-
d: "M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z",
|
|
8329
|
-
fill: "currentColor"
|
|
8330
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8331
|
-
d: "M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z",
|
|
8332
|
-
fill: "currentColor"
|
|
8333
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8334
|
-
d: "M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z",
|
|
8335
|
-
fill: "currentColor"
|
|
8336
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8337
|
-
d: "M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z",
|
|
8331
|
+
d: "M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z",
|
|
8338
8332
|
fill: "currentColor"
|
|
8339
8333
|
}));
|
|
8340
8334
|
}));
|
|
@@ -8398,22 +8392,7 @@ this.primereact.icons.sortamountupalt = (function (exports, React, iconbase) {
|
|
|
8398
8392
|
fill: "none",
|
|
8399
8393
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8400
8394
|
}, pti), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8401
|
-
d: "
|
|
8402
|
-
fill: "currentColor"
|
|
8403
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8404
|
-
d: "M2.59841 13.2009C2.27036 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92646 13.2009 2.59841 13.2009Z",
|
|
8405
|
-
fill: "currentColor"
|
|
8406
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8407
|
-
d: "M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z",
|
|
8408
|
-
fill: "currentColor"
|
|
8409
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8410
|
-
d: "M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z",
|
|
8411
|
-
fill: "currentColor"
|
|
8412
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8413
|
-
d: "M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z",
|
|
8414
|
-
fill: "currentColor"
|
|
8415
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
8416
|
-
d: "M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z",
|
|
8395
|
+
d: "M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z",
|
|
8417
8396
|
fill: "currentColor"
|
|
8418
8397
|
}));
|
|
8419
8398
|
}));
|
|
@@ -12094,7 +12073,8 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
12094
12073
|
cx = _InputNumberBase$setM.cx,
|
|
12095
12074
|
isUnstyled = _InputNumberBase$setM.isUnstyled;
|
|
12096
12075
|
componentbase.useHandleStyle(InputNumberBase.css.styles, isUnstyled, {
|
|
12097
|
-
name: 'inputnumber'
|
|
12076
|
+
name: 'inputnumber',
|
|
12077
|
+
styled: true
|
|
12098
12078
|
});
|
|
12099
12079
|
var elementRef = React__namespace.useRef(null);
|
|
12100
12080
|
var inputRef = React__namespace.useRef(null);
|
|
@@ -13076,6 +13056,7 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
13076
13056
|
"aria-valuenow": props.value
|
|
13077
13057
|
}, ariaProps, dataProps, {
|
|
13078
13058
|
pt: ptm('input'),
|
|
13059
|
+
unstyled: props.unstyled,
|
|
13079
13060
|
__parentMetadata: {
|
|
13080
13061
|
parent: metaData
|
|
13081
13062
|
}
|
|
@@ -13999,6 +13980,8 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
13999
13980
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
|
14000
13981
|
}
|
|
14001
13982
|
|
|
13983
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13984
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14002
13985
|
var classes = {
|
|
14003
13986
|
root: function root(_ref) {
|
|
14004
13987
|
var props = _ref.props,
|
|
@@ -14083,7 +14066,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14083
14066
|
footer: 'p-dropdown-footer',
|
|
14084
14067
|
transition: 'p-connected-overlay'
|
|
14085
14068
|
};
|
|
14086
|
-
var styles = "\n@layer primereact {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n \n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n \n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n \n .p-dropdown-label-empty {\n overflow: hidden;\n visibility: hidden;\n }\n \n input.p-dropdown-label {\n cursor: default;\n }\n \n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n \n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n \n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n \n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n \n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n \n .p-dropdown-filter {\n width: 100%;\n }\n \n .p-dropdown-filter-container {\n position: relative;\n }\n \n .p-dropdown-clear-icon,\n .p-dropdown-filter-icon,\n .p-dropdown-filter-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n }\n \n .p-fluid .p-dropdown {\n display: flex;\n }\n \n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n";
|
|
14069
|
+
var styles = "\n@layer primereact {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n \n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n \n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n \n .p-dropdown-label-empty {\n overflow: hidden;\n visibility: hidden;\n }\n \n input.p-dropdown-label {\n cursor: default;\n }\n \n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n \n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n \n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n \n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n \n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n \n .p-dropdown-filter {\n width: 100%;\n }\n \n .p-dropdown-filter-container {\n position: relative;\n }\n \n .p-dropdown-clear-icon,\n .p-dropdown-filter-icon,\n .p-dropdown-filter-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n right: 2rem;\n }\n \n .p-fluid .p-dropdown {\n display: flex;\n }\n \n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n";
|
|
14087
14070
|
var inlineStyles = {
|
|
14088
14071
|
wrapper: function wrapper(_ref9) {
|
|
14089
14072
|
var props = _ref9.props;
|
|
@@ -14093,7 +14076,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14093
14076
|
},
|
|
14094
14077
|
panel: function panel(_ref10) {
|
|
14095
14078
|
var props = _ref10.props;
|
|
14096
|
-
props.panelStyle;
|
|
14079
|
+
return _objectSpread$2({}, props.panelStyle);
|
|
14097
14080
|
}
|
|
14098
14081
|
};
|
|
14099
14082
|
var DropdownBase = componentbase.ComponentBase.extend({
|
|
@@ -14725,9 +14708,10 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14725
14708
|
};
|
|
14726
14709
|
var onOptionSelect = function onOptionSelect(event, option) {
|
|
14727
14710
|
var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
14711
|
+
var value = getOptionValue(option);
|
|
14728
14712
|
selectItem({
|
|
14729
14713
|
originalEvent: event,
|
|
14730
|
-
option:
|
|
14714
|
+
option: value
|
|
14731
14715
|
});
|
|
14732
14716
|
isHide && hide();
|
|
14733
14717
|
};
|
|
@@ -15218,11 +15202,14 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
15218
15202
|
}
|
|
15219
15203
|
};
|
|
15220
15204
|
var getOptionLabel = function getOptionLabel(option) {
|
|
15221
|
-
|
|
15222
|
-
|
|
15205
|
+
if (utils.ObjectUtils.isScalar(option)) {
|
|
15206
|
+
return "".concat(option);
|
|
15207
|
+
}
|
|
15208
|
+
var optionLabel = props.optionLabel ? utils.ObjectUtils.resolveFieldData(option, props.optionLabel) : option['label'];
|
|
15209
|
+
return "".concat(optionLabel);
|
|
15223
15210
|
};
|
|
15224
15211
|
var getOptionValue = function getOptionValue(option) {
|
|
15225
|
-
var optionValue = props.
|
|
15212
|
+
var optionValue = props.optionValue ? utils.ObjectUtils.resolveFieldData(option, props.optionValue) : option ? option['value'] : utils.ObjectUtils.resolveFieldData(option, 'value');
|
|
15226
15213
|
return utils.ObjectUtils.isNotEmpty(optionValue) ? optionValue : option;
|
|
15227
15214
|
};
|
|
15228
15215
|
var getOptionRenderKey = function getOptionRenderKey(option) {
|
|
@@ -15413,7 +15400,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
15413
15400
|
}
|
|
15414
15401
|
};
|
|
15415
15402
|
var createClearIcon = function createClearIcon() {
|
|
15416
|
-
if (props.value != null && props.showClear && !props.disabled) {
|
|
15403
|
+
if (props.value != null && props.showClear && !props.disabled && !utils.ObjectUtils.isEmpty(props.options)) {
|
|
15417
15404
|
var clearIconProps = mergeProps({
|
|
15418
15405
|
className: cx('clearIcon'),
|
|
15419
15406
|
onPointerUp: clear,
|
|
@@ -16575,7 +16562,7 @@ this.primereact.dialog = (function (exports, React, PrimeReact, componentbase, c
|
|
|
16575
16562
|
var rootElement = /*#__PURE__*/React__namespace.createElement("div", maskProps, /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, _extends({
|
|
16576
16563
|
nodeRef: dialogRef
|
|
16577
16564
|
}, transitionProps), /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement(FocusTrap$1, {
|
|
16578
|
-
autoFocus:
|
|
16565
|
+
autoFocus: props.focusOnShow
|
|
16579
16566
|
}, contentElement))));
|
|
16580
16567
|
return /*#__PURE__*/React__namespace.createElement(portal.Portal, {
|
|
16581
16568
|
element: rootElement,
|
|
@@ -17043,18 +17030,20 @@ this.primereact.paginator = (function (exports, React, api, componentbase, hooks
|
|
|
17043
17030
|
_defineProperty(PrimeReact, "changeTheme", function (currentTheme, newTheme, linkElementId, callback) {
|
|
17044
17031
|
var _linkElement$parentNo;
|
|
17045
17032
|
var linkElement = document.getElementById(linkElementId);
|
|
17046
|
-
|
|
17033
|
+
if (!linkElement) {
|
|
17034
|
+
throw Error("Element with id ".concat(linkElementId, " not found."));
|
|
17035
|
+
}
|
|
17047
17036
|
var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
|
|
17048
|
-
|
|
17049
|
-
|
|
17050
|
-
|
|
17051
|
-
|
|
17052
|
-
|
|
17037
|
+
var newLinkElement = document.createElement('link');
|
|
17038
|
+
newLinkElement.setAttribute('rel', 'stylesheet');
|
|
17039
|
+
newLinkElement.setAttribute('id', linkElementId);
|
|
17040
|
+
newLinkElement.setAttribute('href', newThemeUrl);
|
|
17041
|
+
newLinkElement.addEventListener('load', function () {
|
|
17053
17042
|
if (callback) {
|
|
17054
17043
|
callback();
|
|
17055
17044
|
}
|
|
17056
17045
|
});
|
|
17057
|
-
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.
|
|
17046
|
+
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.replaceChild(newLinkElement, linkElement);
|
|
17058
17047
|
});
|
|
17059
17048
|
|
|
17060
17049
|
var locales = {
|
|
@@ -18621,9 +18610,13 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18621
18610
|
break;
|
|
18622
18611
|
case 'Enter':
|
|
18623
18612
|
case 'NumpadEnter':
|
|
18624
|
-
case 'Space':
|
|
18625
18613
|
onEnterKey(event);
|
|
18626
18614
|
break;
|
|
18615
|
+
case 'Space':
|
|
18616
|
+
if (!['INPUT'].includes(event.target.nodeName)) {
|
|
18617
|
+
onEnterKey(event);
|
|
18618
|
+
}
|
|
18619
|
+
break;
|
|
18627
18620
|
}
|
|
18628
18621
|
};
|
|
18629
18622
|
var onArrowDown = function onArrowDown(event) {
|