primereact 10.9.2 → 10.9.3
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/api/api.cjs.js +2 -1
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +5 -1
- package/api/api.esm.js +2 -1
- package/api/api.esm.min.js +1 -1
- package/api/api.js +2 -1
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +21 -0
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +21 -0
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +21 -0
- package/autocomplete/autocomplete.min.js +1 -1
- package/buttongroup/buttongroup.cjs.js +4 -1
- package/buttongroup/buttongroup.cjs.min.js +1 -1
- package/buttongroup/buttongroup.esm.js +4 -1
- package/buttongroup/buttongroup.esm.min.js +1 -1
- package/buttongroup/buttongroup.js +4 -1
- package/buttongroup/buttongroup.min.js +1 -1
- package/calendar/calendar.cjs.js +6 -1
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.esm.js +6 -1
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +6 -1
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +1 -1
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +1 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +1 -1
- package/carousel/carousel.min.js +1 -1
- package/chip/chip.cjs.js +11 -2
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +13 -2
- package/chip/chip.esm.js +11 -2
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +11 -2
- package/chip/chip.min.js +1 -1
- package/componentbase/componentbase.cjs.js +14 -5
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +14 -5
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +14 -5
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +4 -3
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +4 -3
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +4 -3
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/core/core.js +74 -29
- package/core/core.min.js +10 -10
- package/datascroller/datascroller.cjs.js +2 -0
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +2 -0
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +2 -0
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +70 -51
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +70 -51
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +70 -51
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +1 -1
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +1 -1
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +1 -1
- package/dataview/dataview.min.js +1 -1
- package/dialog/dialog.cjs.js +0 -1
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +0 -1
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +0 -1
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +2 -2
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +2 -2
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +2 -2
- package/divider/divider.min.js +1 -1
- package/dropdown/dropdown.cjs.js +12 -8
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +13 -9
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +12 -8
- package/dropdown/dropdown.min.js +1 -1
- package/fileupload/fileupload.cjs.js +2 -1
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +4 -0
- package/fileupload/fileupload.esm.js +2 -1
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +2 -1
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +1 -1
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +1 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +1 -1
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.d.ts +3 -2
- package/inputmask/inputmask.cjs.js +4 -2
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +4 -2
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +4 -2
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +7 -1
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +7 -1
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +7 -1
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/megamenu/megamenu.cjs.js +4 -8
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +4 -8
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +4 -8
- package/megamenu/megamenu.min.js +1 -1
- package/menu/menu.cjs.js +6 -0
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +6 -0
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +6 -0
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +2 -2
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +2 -2
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +2 -2
- package/menubar/menubar.min.js +1 -1
- package/multiselect/multiselect.cjs.js +7 -9
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +7 -9
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +7 -9
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/orderlist.cjs.js +24 -23
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +24 -23
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +24 -23
- package/orderlist/orderlist.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +3 -2
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +3 -2
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +3 -2
- package/paginator/paginator.min.js +1 -1
- package/picklist/picklist.cjs.js +3 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +3 -2
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +3 -2
- package/picklist/picklist.min.js +1 -1
- package/primereact.all.cjs.js +479 -366
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +479 -366
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +479 -366
- package/primereact.all.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/speeddial/speeddial.cjs.js +1 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +1 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +1 -1
- package/speeddial/speeddial.min.js +1 -1
- package/stepper/stepper.d.ts +27 -13
- package/tabview/tabview.cjs.js +1 -1
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +1 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +1 -1
- package/tabview/tabview.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +2 -2
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +2 -2
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +2 -2
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/tooltip.cjs.js +8 -7
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +8 -7
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +8 -7
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +4 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +4 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +4 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +2 -7
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +2 -7
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +2 -7
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +41 -31
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +41 -31
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +41 -31
- package/treetable/treetable.min.js +1 -1
- package/utils/utils.cjs.js +22 -1
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +22 -1
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +22 -1
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +2 -2
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +2 -2
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +2 -2
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +12 -3
package/core/core.js
CHANGED
|
@@ -1736,13 +1736,34 @@ this.primereact.utils = (function (exports, React) {
|
|
|
1736
1736
|
value: function getDiffProps(props, defaultProps) {
|
|
1737
1737
|
return this.findDiffKeys(props, defaultProps);
|
|
1738
1738
|
}
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Gets the value of a property which can be a function or a direct value.
|
|
1742
|
+
* If the property is a function, it will be invoked with the provided parameters.
|
|
1743
|
+
* @param {*} obj - The object to get the value from
|
|
1744
|
+
* @param {...*} params - Parameters to pass to the function if obj is a function
|
|
1745
|
+
* @returns {*} The resolved value
|
|
1746
|
+
*/
|
|
1739
1747
|
}, {
|
|
1740
1748
|
key: "getPropValue",
|
|
1741
1749
|
value: function getPropValue(obj) {
|
|
1750
|
+
// If obj is not a function, return it directly
|
|
1751
|
+
if (!this.isFunction(obj)) {
|
|
1752
|
+
return obj;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
// Handle function invocation
|
|
1742
1756
|
for (var _len3 = arguments.length, params = new Array(_len3 > 1 ? _len3 - 1 : 0), _key4 = 1; _key4 < _len3; _key4++) {
|
|
1743
1757
|
params[_key4 - 1] = arguments[_key4];
|
|
1744
1758
|
}
|
|
1745
|
-
|
|
1759
|
+
if (params.length === 1) {
|
|
1760
|
+
// For single parameter, unwrap array if needed
|
|
1761
|
+
var param = params[0];
|
|
1762
|
+
return obj(Array.isArray(param) ? param[0] : param);
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
// Pass all parameters to function
|
|
1766
|
+
return obj(params);
|
|
1746
1767
|
}
|
|
1747
1768
|
}, {
|
|
1748
1769
|
key: "getComponentProp",
|
|
@@ -3122,6 +3143,7 @@ this.primereact.api = (function (exports, utils, React) {
|
|
|
3122
3143
|
jumpToPageDropdownLabel: 'Jump to Page Dropdown',
|
|
3123
3144
|
jumpToPageInputLabel: 'Jump to Page Input',
|
|
3124
3145
|
lastPageLabel: 'Last Page',
|
|
3146
|
+
listLabel: 'Option List',
|
|
3125
3147
|
listView: 'List View',
|
|
3126
3148
|
moveAllToSource: 'Move All to Source',
|
|
3127
3149
|
moveAllToTarget: 'Move All to Target',
|
|
@@ -3140,7 +3162,7 @@ this.primereact.api = (function (exports, utils, React) {
|
|
|
3140
3162
|
passwordHide: 'Hide Password',
|
|
3141
3163
|
passwordShow: 'Show Password',
|
|
3142
3164
|
previous: 'Previous',
|
|
3143
|
-
|
|
3165
|
+
prevPageLabel: 'Previous Page',
|
|
3144
3166
|
rotateLeft: 'Rotate Left',
|
|
3145
3167
|
rotateRight: 'Rotate Right',
|
|
3146
3168
|
rowsPerPageLabel: 'Rows per page',
|
|
@@ -3888,7 +3910,7 @@ this.primereact.componentbase = (function (exports, PrimeReact, hooks, utils) {
|
|
|
3888
3910
|
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; }
|
|
3889
3911
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3890
3912
|
var baseStyle = "\n.p-hidden-accessible {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n opacity: 0;\n overflow: hidden;\n padding: 0;\n pointer-events: none;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: var(--scrollbar-width);\n}\n";
|
|
3891
|
-
var buttonStyles = "\n.p-button {\n margin: 0;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-group .p-button {\n margin: 0;\n}\n\n.p-button-group .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-button-group .p-button:focus {\n position: relative;\n z-index: 1;\n}\n";
|
|
3913
|
+
var buttonStyles = "\n.p-button {\n margin: 0;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-group .p-button {\n margin: 0;\n}\n\n.p-button-group .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-button-group .p-button:focus {\n position: relative;\n z-index: 1;\n}\n\n.p-button-group-single .p-button:first-of-type {\n border-top-right-radius: var(--border-radius) !important;\n border-bottom-right-radius: var(--border-radius) !important;\n}\n\n.p-button-group-single .p-button:last-of-type {\n border-top-left-radius: var(--border-radius) !important;\n border-bottom-left-radius: var(--border-radius) !important;\n}\n";
|
|
3892
3914
|
var inputTextStyles = "\n.p-inputtext {\n margin: 0;\n}\n\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -0.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label,\n.p-float-label .p-mention ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input:-webkit-autofill ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label,\n.p-float-label .p-tooltip-target-wrapper ~ label {\n top: -0.75rem;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-right > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > svg,\n.p-input-icon-left > .p-input-prefix,\n.p-input-icon-right > .p-input-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n";
|
|
3893
3915
|
var iconStyles = "\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\nsvg.p-icon {\n pointer-events: auto;\n}\n\nsvg.p-icon g,\n.p-disabled svg.p-icon {\n pointer-events: none;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n";
|
|
3894
3916
|
var commonStyle = "\n@layer primereact {\n .p-component, .p-component * {\n box-sizing: border-box;\n }\n\n .p-hidden {\n display: none;\n }\n\n .p-hidden-space {\n visibility: hidden;\n }\n\n .p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n }\n\n .p-disabled, .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-unselectable-text {\n user-select: none;\n }\n\n .p-scrollbar-measure {\n width: 100px;\n height: 100px;\n overflow: scroll;\n position: absolute;\n top: -9999px;\n }\n\n @-webkit-keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n @keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n\n .p-link {\n text-align: left;\n background-color: transparent;\n margin: 0;\n padding: 0;\n border: none;\n cursor: pointer;\n user-select: none;\n }\n\n .p-link:disabled {\n cursor: default;\n }\n\n /* Non react overlay animations */\n .p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n }\n\n .p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n }\n\n /* React based overlay animations */\n .p-connected-overlay-enter {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-connected-overlay-enter-active {\n opacity: 1;\n transform: scaleY(1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-enter-done {\n transform: none;\n }\n\n .p-connected-overlay-exit {\n opacity: 1;\n }\n\n .p-connected-overlay-exit-active {\n opacity: 0;\n transition: opacity .1s linear;\n }\n\n /* Toggleable Content */\n .p-toggleable-content-enter {\n max-height: 0;\n }\n\n .p-toggleable-content-enter-active {\n overflow: hidden;\n max-height: 1000px;\n transition: max-height 1s ease-in-out;\n }\n\n .p-toggleable-content-enter-done {\n transform: none;\n }\n\n .p-toggleable-content-exit {\n max-height: 1000px;\n }\n\n .p-toggleable-content-exit-active {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n }\n\n /* @todo Refactor */\n .p-menu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n ".concat(buttonStyles, "\n ").concat(inputTextStyles, "\n ").concat(iconStyles, "\n}\n");
|
|
@@ -4109,6 +4131,7 @@ this.primereact.componentbase = (function (exports, PrimeReact, hooks, utils) {
|
|
|
4109
4131
|
return _usePT(getDefaultPT(), callback, key, params);
|
|
4110
4132
|
};
|
|
4111
4133
|
var useHandleStyle = function useHandleStyle(styles) {
|
|
4134
|
+
var _isUnstyled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
4112
4135
|
var config = arguments.length > 2 ? arguments[2] : undefined;
|
|
4113
4136
|
var name = config.name,
|
|
4114
4137
|
_config$styled = config.styled,
|
|
@@ -4136,7 +4159,7 @@ this.primereact.componentbase = (function (exports, PrimeReact, hooks, utils) {
|
|
|
4136
4159
|
name: name,
|
|
4137
4160
|
manual: true
|
|
4138
4161
|
}),
|
|
4139
|
-
|
|
4162
|
+
loadComponentStyle = _useStyle4.load;
|
|
4140
4163
|
var hook = function hook(hookName) {
|
|
4141
4164
|
if (!hostName) {
|
|
4142
4165
|
var selfHook = _usePT(_getPT((ComponentBase.cProps || {}).pt, componentName), _getOptionValue, "hooks.".concat(hookName));
|
|
@@ -4147,11 +4170,19 @@ this.primereact.componentbase = (function (exports, PrimeReact, hooks, utils) {
|
|
|
4147
4170
|
};
|
|
4148
4171
|
hook('useMountEffect');
|
|
4149
4172
|
hooks.useMountEffect(function () {
|
|
4173
|
+
// Load base and global styles first as they are always needed
|
|
4150
4174
|
loadBaseStyle();
|
|
4151
4175
|
loadGlobalStyle();
|
|
4152
|
-
|
|
4153
|
-
if
|
|
4154
|
-
|
|
4176
|
+
|
|
4177
|
+
// Only load additional styles if component is styled
|
|
4178
|
+
if (!_isUnstyled()) {
|
|
4179
|
+
// Load common styles shared across components
|
|
4180
|
+
loadCommonStyle();
|
|
4181
|
+
|
|
4182
|
+
// Load component-specific styles if not explicitly styled
|
|
4183
|
+
if (!styled) {
|
|
4184
|
+
loadComponentStyle();
|
|
4185
|
+
}
|
|
4155
4186
|
}
|
|
4156
4187
|
});
|
|
4157
4188
|
hooks.useUpdateEffect(function () {
|
|
@@ -9569,9 +9600,8 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9569
9600
|
var hide = function hide(e) {
|
|
9570
9601
|
if (e && e.type === 'blur') setMultipleFocusEvents(false);
|
|
9571
9602
|
clearTimeouts();
|
|
9572
|
-
var success = true;
|
|
9573
9603
|
if (visibleState) {
|
|
9574
|
-
success = sendCallback(props.onBeforeHide, {
|
|
9604
|
+
var success = sendCallback(props.onBeforeHide, {
|
|
9575
9605
|
originalEvent: e,
|
|
9576
9606
|
target: currentTargetRef.current
|
|
9577
9607
|
});
|
|
@@ -9582,16 +9612,15 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9582
9612
|
}
|
|
9583
9613
|
utils.ZIndexUtils.clear(elementRef.current);
|
|
9584
9614
|
utils.DomHandler.removeClass(elementRef.current, 'p-tooltip-active');
|
|
9615
|
+
setVisibleState(false);
|
|
9585
9616
|
sendCallback(props.onHide, {
|
|
9586
9617
|
originalEvent: e,
|
|
9587
9618
|
target: currentTargetRef.current
|
|
9588
9619
|
});
|
|
9589
9620
|
});
|
|
9590
9621
|
}
|
|
9591
|
-
}
|
|
9592
|
-
|
|
9593
|
-
// handles the case when visibleState change from mouseenter was queued and mouseleave handler was called earlier than queued re-render
|
|
9594
|
-
if (success) {
|
|
9622
|
+
} else if (!props.onBeforeHide && !getDelay('hideDelay')) {
|
|
9623
|
+
// handles the case when visibleState change from mouseenter was queued and mouseleave handler was called earlier than queued re-render
|
|
9595
9624
|
setVisibleState(false);
|
|
9596
9625
|
}
|
|
9597
9626
|
};
|
|
@@ -9704,9 +9733,12 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
9704
9733
|
});
|
|
9705
9734
|
}
|
|
9706
9735
|
};
|
|
9736
|
+
var getDelay = function getDelay(delayProp) {
|
|
9737
|
+
return getTargetOption(currentTargetRef.current, delayProp.toLowerCase()) || props[delayProp];
|
|
9738
|
+
};
|
|
9707
9739
|
var applyDelay = function applyDelay(delayProp, callback) {
|
|
9708
9740
|
clearTimeouts();
|
|
9709
|
-
var delay =
|
|
9741
|
+
var delay = getDelay(delayProp);
|
|
9710
9742
|
delay ? timeouts.current["".concat(delayProp)] = setTimeout(function () {
|
|
9711
9743
|
return callback();
|
|
9712
9744
|
}, delay) : callback();
|
|
@@ -10687,7 +10719,7 @@ this.primereact.virtualscroller = (function (exports, React, api, hooks, spinner
|
|
|
10687
10719
|
return [];
|
|
10688
10720
|
};
|
|
10689
10721
|
var viewInit = function viewInit() {
|
|
10690
|
-
if (elementRef.current &&
|
|
10722
|
+
if (elementRef.current && isVisible()) {
|
|
10691
10723
|
setContentElement(_contentRef.current);
|
|
10692
10724
|
init();
|
|
10693
10725
|
bindWindowResizeListener();
|
|
@@ -10699,7 +10731,7 @@ this.primereact.virtualscroller = (function (exports, React, api, hooks, spinner
|
|
|
10699
10731
|
}
|
|
10700
10732
|
};
|
|
10701
10733
|
var init = function init() {
|
|
10702
|
-
if (!props.disabled &&
|
|
10734
|
+
if (!props.disabled && isVisible()) {
|
|
10703
10735
|
setSize();
|
|
10704
10736
|
calculateOptions();
|
|
10705
10737
|
setSpacerSize();
|
|
@@ -12611,7 +12643,13 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
12611
12643
|
if (data) {
|
|
12612
12644
|
var filteredData = parseValue(data);
|
|
12613
12645
|
if (filteredData != null) {
|
|
12614
|
-
|
|
12646
|
+
if (isFloat(data)) {
|
|
12647
|
+
var _formattedValue2 = formatValue(filteredData);
|
|
12648
|
+
inputRef.current.value = _formattedValue2;
|
|
12649
|
+
updateModel(event, filteredData);
|
|
12650
|
+
} else {
|
|
12651
|
+
insert(event, filteredData.toString());
|
|
12652
|
+
}
|
|
12615
12653
|
}
|
|
12616
12654
|
}
|
|
12617
12655
|
};
|
|
@@ -14063,7 +14101,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14063
14101
|
'p-focus': focusedState,
|
|
14064
14102
|
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled',
|
|
14065
14103
|
'p-dropdown-clearable': props.showClear && !props.disabled,
|
|
14066
|
-
'p-inputwrapper-filled': props.value
|
|
14104
|
+
'p-inputwrapper-filled': utils.ObjectUtils.isNotEmpty(props.value),
|
|
14067
14105
|
'p-inputwrapper-focus': focusedState || overlayVisibleState
|
|
14068
14106
|
});
|
|
14069
14107
|
},
|
|
@@ -14461,10 +14499,10 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14461
14499
|
};
|
|
14462
14500
|
var createFilterClearIcon = function createFilterClearIcon() {
|
|
14463
14501
|
if (props.showFilterClear && props.filterValue) {
|
|
14464
|
-
var
|
|
14502
|
+
var ariaLabelFilterClear = PrimeReact.localeOption('clear');
|
|
14465
14503
|
var clearIconProps = mergeProps({
|
|
14466
14504
|
className: cx('filterClearIcon'),
|
|
14467
|
-
'aria-label':
|
|
14505
|
+
'aria-label': ariaLabelFilterClear,
|
|
14468
14506
|
onClick: function onClick() {
|
|
14469
14507
|
return props.onFilterClearIconClick(function () {
|
|
14470
14508
|
return utils.DomHandler.focus(filterInputRef.current);
|
|
@@ -14557,7 +14595,8 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14557
14595
|
className: utils.classNames(options.className, cx('list', {
|
|
14558
14596
|
virtualScrollerProps: props.virtualScrollerOptions
|
|
14559
14597
|
})),
|
|
14560
|
-
role: 'listbox'
|
|
14598
|
+
role: 'listbox',
|
|
14599
|
+
'aria-label': PrimeReact.ariaLabel('listLabel')
|
|
14561
14600
|
}, getPTOptions('list'));
|
|
14562
14601
|
return /*#__PURE__*/React__namespace.createElement("ul", listProps, content);
|
|
14563
14602
|
}
|
|
@@ -14575,7 +14614,8 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14575
14614
|
}, getPTOptions('wrapper'));
|
|
14576
14615
|
var listProps = mergeProps({
|
|
14577
14616
|
className: cx('list'),
|
|
14578
|
-
role: 'listbox'
|
|
14617
|
+
role: 'listbox',
|
|
14618
|
+
'aria-label': PrimeReact.ariaLabel('listLabel')
|
|
14579
14619
|
}, getPTOptions('list'));
|
|
14580
14620
|
return /*#__PURE__*/React__namespace.createElement("div", wrapperProps, /*#__PURE__*/React__namespace.createElement("ul", listProps, items));
|
|
14581
14621
|
};
|
|
@@ -14795,7 +14835,10 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
14795
14835
|
originalEvent: event,
|
|
14796
14836
|
option: option
|
|
14797
14837
|
});
|
|
14798
|
-
|
|
14838
|
+
if (isHide) {
|
|
14839
|
+
hide();
|
|
14840
|
+
utils.DomHandler.focus(focusInputRef.current);
|
|
14841
|
+
}
|
|
14799
14842
|
};
|
|
14800
14843
|
var onPanelClick = function onPanelClick(event) {
|
|
14801
14844
|
overlayservice.OverlayService.emit('overlay-click', {
|
|
@@ -15055,7 +15098,6 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
15055
15098
|
if (focusedOptionIndex !== -1) {
|
|
15056
15099
|
onOptionSelect(event, visibleOptions[focusedOptionIndex]);
|
|
15057
15100
|
}
|
|
15058
|
-
hide();
|
|
15059
15101
|
}
|
|
15060
15102
|
event.preventDefault();
|
|
15061
15103
|
};
|
|
@@ -15509,7 +15551,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
15509
15551
|
var clearIconProps = mergeProps({
|
|
15510
15552
|
className: cx('clearIcon'),
|
|
15511
15553
|
onPointerUp: clear,
|
|
15512
|
-
tabIndex: props.tabIndex || '0',
|
|
15554
|
+
tabIndex: props.editable ? -1 : props.tabIndex || '0',
|
|
15513
15555
|
onKeyDown: onClearIconKeyDown,
|
|
15514
15556
|
'aria-label': PrimeReact.localeOption('clear')
|
|
15515
15557
|
}, ptm('clearIcon'));
|
|
@@ -16220,7 +16262,6 @@ this.primereact.dialog = (function (exports, React, PrimeReact, componentbase, c
|
|
|
16220
16262
|
dragging.current = true;
|
|
16221
16263
|
lastPageX.current = event.pageX;
|
|
16222
16264
|
lastPageY.current = event.pageY;
|
|
16223
|
-
dialogRef.current.style.margin = '0';
|
|
16224
16265
|
utils.DomHandler.addClass(document.body, 'p-unselectable-text');
|
|
16225
16266
|
props.onDragStart && props.onDragStart(event);
|
|
16226
16267
|
}
|
|
@@ -17237,6 +17278,7 @@ this.primereact.paginator = (function (exports, React, api, componentbase, hooks
|
|
|
17237
17278
|
jumpToPageDropdownLabel: 'Jump to Page Dropdown',
|
|
17238
17279
|
jumpToPageInputLabel: 'Jump to Page Input',
|
|
17239
17280
|
lastPageLabel: 'Last Page',
|
|
17281
|
+
listLabel: 'Option List',
|
|
17240
17282
|
listView: 'List View',
|
|
17241
17283
|
moveAllToSource: 'Move All to Source',
|
|
17242
17284
|
moveAllToTarget: 'Move All to Target',
|
|
@@ -17255,7 +17297,7 @@ this.primereact.paginator = (function (exports, React, api, componentbase, hooks
|
|
|
17255
17297
|
passwordHide: 'Hide Password',
|
|
17256
17298
|
passwordShow: 'Show Password',
|
|
17257
17299
|
previous: 'Previous',
|
|
17258
|
-
|
|
17300
|
+
prevPageLabel: 'Previous Page',
|
|
17259
17301
|
rotateLeft: 'Rotate Left',
|
|
17260
17302
|
rotateRight: 'Rotate Right',
|
|
17261
17303
|
rowsPerPageLabel: 'Rows per page',
|
|
@@ -17582,7 +17624,7 @@ this.primereact.paginator = (function (exports, React, api, componentbase, hooks
|
|
|
17582
17624
|
}),
|
|
17583
17625
|
onClick: props.onClick,
|
|
17584
17626
|
disabled: props.disabled,
|
|
17585
|
-
'aria-label': api.ariaLabel('
|
|
17627
|
+
'aria-label': api.ariaLabel('prevPageLabel')
|
|
17586
17628
|
}, getPTOptions('prevPageButton'));
|
|
17587
17629
|
var element = /*#__PURE__*/React__namespace.createElement("button", prevPageButtonProps, prevPageLinkIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
17588
17630
|
if (props.template) {
|
|
@@ -18424,7 +18466,8 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
18424
18466
|
var mergeProps = hooks.useMergeProps();
|
|
18425
18467
|
var isLeaf = props.isNodeLeaf(props.node);
|
|
18426
18468
|
var label = props.node.label;
|
|
18427
|
-
var
|
|
18469
|
+
var isFiltering = props.isFiltering;
|
|
18470
|
+
var expanded = (props.expandedKeys ? props.expandedKeys[props.node.key] !== undefined : false) || !isFiltering && props.node.expanded;
|
|
18428
18471
|
var ptm = props.ptm,
|
|
18429
18472
|
cx = props.cx;
|
|
18430
18473
|
var getPTOptions = function getPTOptions(key) {
|
|
@@ -19150,6 +19193,7 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
19150
19193
|
dragdropScope: props.dragdropScope,
|
|
19151
19194
|
expandIcon: props.expandIcon,
|
|
19152
19195
|
expandedKeys: props.expandedKeys,
|
|
19196
|
+
isFiltering: props.isFiltering,
|
|
19153
19197
|
index: index,
|
|
19154
19198
|
isNodeLeaf: props.isNodeLeaf,
|
|
19155
19199
|
last: index === props.node.children.length - 1,
|
|
@@ -19621,6 +19665,7 @@ this.primereact.tree = (function (exports, React, api, componentbase, hooks, sea
|
|
|
19621
19665
|
dragdropScope: props.dragdropScope,
|
|
19622
19666
|
expandIcon: props.expandIcon,
|
|
19623
19667
|
expandedKeys: expandedKeys,
|
|
19668
|
+
isFiltering: isFiltering,
|
|
19624
19669
|
isNodeLeaf: isNodeLeaf,
|
|
19625
19670
|
metaKeySelection: props.metaKeySelection,
|
|
19626
19671
|
nodeTemplate: props.nodeTemplate,
|