primereact 9.2.0 → 9.2.1
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 +16 -0
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +16 -0
- package/api/api.esm.min.js +1 -1
- package/api/api.js +16 -0
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/button/button.cjs.js +6 -1
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +2 -2
- package/button/button.esm.js +6 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +6 -1
- package/button/button.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/core/core.js +28 -14
- package/core/core.min.js +8 -8
- package/datatable/datatable.cjs.js +11 -8
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +11 -8
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +11 -8
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.d.ts +1 -1
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +4 -3
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.min.js +1 -1
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputtext/inputtext.min.css +1 -1
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +3 -0
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +3 -0
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +3 -0
- package/megamenu/megamenu.min.js +1 -1
- package/multiselect/multiselect.cjs.js +2 -1
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +27 -1
- package/multiselect/multiselect.esm.js +2 -1
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +2 -1
- package/multiselect/multiselect.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +0 -8
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +0 -8
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +0 -8
- package/paginator/paginator.min.js +1 -1
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.min.js +1 -1
- package/primereact.all.cjs.js +60 -26
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +60 -26
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +60 -26
- package/primereact.all.min.js +1 -1
- package/resources/primereact.css +542 -541
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +4 -4
- package/resources/themes/arya-green/theme.css +4 -4
- package/resources/themes/arya-orange/theme.css +4 -4
- package/resources/themes/arya-purple/theme.css +4 -4
- package/resources/themes/bootstrap4-dark-blue/theme.css +6 -6
- package/resources/themes/bootstrap4-dark-purple/theme.css +6 -6
- package/resources/themes/bootstrap4-light-blue/theme.css +6 -6
- package/resources/themes/bootstrap4-light-purple/theme.css +6 -6
- package/resources/themes/fluent-light/theme.css +2 -2
- package/resources/themes/lara-dark-blue/theme.css +4 -4
- package/resources/themes/lara-dark-indigo/theme.css +4 -4
- package/resources/themes/lara-dark-purple/theme.css +4 -4
- package/resources/themes/lara-dark-teal/theme.css +4 -4
- package/resources/themes/lara-light-blue/theme.css +6 -6
- package/resources/themes/lara-light-indigo/theme.css +6 -6
- package/resources/themes/lara-light-purple/theme.css +6 -6
- package/resources/themes/lara-light-teal/theme.css +6 -6
- package/resources/themes/luna-amber/theme.css +6 -6
- package/resources/themes/luna-blue/theme.css +6 -6
- package/resources/themes/luna-green/theme.css +6 -6
- package/resources/themes/luna-pink/theme.css +6 -6
- package/resources/themes/md-dark-deeppurple/theme.css +6 -6
- package/resources/themes/md-dark-indigo/theme.css +6 -6
- package/resources/themes/md-light-deeppurple/theme.css +6 -6
- package/resources/themes/md-light-indigo/theme.css +6 -6
- package/resources/themes/mdc-dark-deeppurple/theme.css +6 -6
- package/resources/themes/mdc-dark-indigo/theme.css +6 -6
- package/resources/themes/mdc-light-deeppurple/theme.css +6 -6
- package/resources/themes/mdc-light-indigo/theme.css +6 -6
- package/resources/themes/mira/theme.css +6 -6
- package/resources/themes/nano/theme.css +6 -6
- package/resources/themes/nova/theme.css +6 -6
- package/resources/themes/nova-accent/theme.css +6 -6
- package/resources/themes/nova-alt/theme.css +6 -6
- package/resources/themes/rhea/theme.css +6 -6
- package/resources/themes/saga-blue/theme.css +4 -4
- package/resources/themes/saga-green/theme.css +4 -4
- package/resources/themes/saga-orange/theme.css +4 -4
- package/resources/themes/saga-purple/theme.css +4 -4
- package/resources/themes/soho-dark/theme.css +6 -6
- package/resources/themes/soho-light/theme.css +6 -6
- package/resources/themes/tailwind-light/theme.css +6 -6
- package/resources/themes/vela-blue/theme.css +4 -4
- package/resources/themes/vela-green/theme.css +4 -4
- package/resources/themes/vela-orange/theme.css +4 -4
- package/resources/themes/vela-purple/theme.css +4 -4
- package/resources/themes/viva-dark/theme.css +6 -6
- package/resources/themes/viva-light/theme.css +6 -6
- package/splitbutton/splitbutton.cjs.js +57 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +28 -0
- package/splitbutton/splitbutton.esm.js +57 -3
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +57 -3
- package/splitbutton/splitbutton.min.js +1 -1
- package/toast/toast.cjs.js +16 -0
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +16 -0
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +16 -0
- package/toast/toast.min.js +1 -1
- package/tooltip/tooltip.cjs.js +5 -4
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +5 -4
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +5 -4
- package/tooltip/tooltip.min.js +1 -1
- package/utils/utils.cjs.js +1 -1
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +1 -1
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +1 -1
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +2 -2
package/primereact.all.esm.js
CHANGED
|
@@ -725,7 +725,7 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
725
725
|
_iterator2.f();
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
if (parent.nodeType
|
|
728
|
+
if (parent.nodeType === 1 && overflowCheck(parent)) {
|
|
729
729
|
scrollableParents.push(parent);
|
|
730
730
|
}
|
|
731
731
|
}
|
|
@@ -2331,6 +2331,22 @@ _defineProperty(PrimeReact$1, "filterMatchModeOptions", {
|
|
|
2331
2331
|
numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
|
|
2332
2332
|
date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]
|
|
2333
2333
|
});
|
|
2334
|
+
_defineProperty(PrimeReact$1, "changeTheme", function (currentTheme, newTheme, linkElementId, callback) {
|
|
2335
|
+
var _linkElement$parentNo;
|
|
2336
|
+
var linkElement = document.getElementById(linkElementId);
|
|
2337
|
+
var cloneLinkElement = linkElement.cloneNode(true);
|
|
2338
|
+
var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
|
|
2339
|
+
cloneLinkElement.setAttribute('id', linkElementId + '-clone');
|
|
2340
|
+
cloneLinkElement.setAttribute('href', newThemeUrl);
|
|
2341
|
+
cloneLinkElement.addEventListener('load', function () {
|
|
2342
|
+
linkElement.remove();
|
|
2343
|
+
cloneLinkElement.setAttribute('id', linkElementId);
|
|
2344
|
+
if (callback) {
|
|
2345
|
+
callback();
|
|
2346
|
+
}
|
|
2347
|
+
});
|
|
2348
|
+
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 ? void 0 : _linkElement$parentNo.insertBefore(cloneLinkElement, linkElement.nextSibling);
|
|
2349
|
+
});
|
|
2334
2350
|
|
|
2335
2351
|
function ownKeys$A(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2336
2352
|
function _objectSpread$A(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -4236,10 +4252,10 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
4236
4252
|
hideEvents = _getEvents.hideEvents;
|
|
4237
4253
|
var currentTarget = getTarget(target);
|
|
4238
4254
|
showEvents.forEach(function (event) {
|
|
4239
|
-
return currentTarget.addEventListener(event, show);
|
|
4255
|
+
return currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.addEventListener(event, show);
|
|
4240
4256
|
});
|
|
4241
4257
|
hideEvents.forEach(function (event) {
|
|
4242
|
-
return currentTarget.addEventListener(event, hide);
|
|
4258
|
+
return currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.addEventListener(event, hide);
|
|
4243
4259
|
});
|
|
4244
4260
|
}
|
|
4245
4261
|
};
|
|
@@ -4250,10 +4266,10 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
4250
4266
|
hideEvents = _getEvents2.hideEvents;
|
|
4251
4267
|
var currentTarget = getTarget(target);
|
|
4252
4268
|
showEvents.forEach(function (event) {
|
|
4253
|
-
return currentTarget.removeEventListener(event, show);
|
|
4269
|
+
return currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.removeEventListener(event, show);
|
|
4254
4270
|
});
|
|
4255
4271
|
hideEvents.forEach(function (event) {
|
|
4256
|
-
return currentTarget.removeEventListener(event, hide);
|
|
4272
|
+
return currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.removeEventListener(event, hide);
|
|
4257
4273
|
});
|
|
4258
4274
|
}
|
|
4259
4275
|
};
|
|
@@ -4287,6 +4303,7 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
|
|
|
4287
4303
|
if (isShowOnDisabled(target)) {
|
|
4288
4304
|
if (!target.hasWrapper) {
|
|
4289
4305
|
var wrapper = document.createElement('span');
|
|
4306
|
+
DomHandler.addClass(wrapper, 'p-tooltip-target-wrapper');
|
|
4290
4307
|
target.parentNode.insertBefore(wrapper, target);
|
|
4291
4308
|
wrapper.appendChild(target);
|
|
4292
4309
|
target.hasWrapper = true;
|
|
@@ -4509,6 +4526,11 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
|
|
|
4509
4526
|
var showTooltip = !disabled || props.tooltipOptions && props.tooltipOptions.showOnDisabled;
|
|
4510
4527
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip) && showTooltip;
|
|
4511
4528
|
var otherProps = ButtonBase.getOtherProps(props);
|
|
4529
|
+
var sizeMapping = {
|
|
4530
|
+
large: 'lg',
|
|
4531
|
+
small: 'sm'
|
|
4532
|
+
};
|
|
4533
|
+
var size = sizeMapping[props.size];
|
|
4512
4534
|
var className = classNames('p-button p-component', props.className, (_classNames2 = {
|
|
4513
4535
|
'p-button-icon-only': (props.icon || props.loading && props.loadingIcon) && !props.label && !props.children,
|
|
4514
4536
|
'p-button-vertical': (props.iconPos === 'top' || props.iconPos === 'bottom') && props.label,
|
|
@@ -4520,7 +4542,7 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
|
|
|
4520
4542
|
'p-button-text': props.text,
|
|
4521
4543
|
'p-button-rounded': props.rounded,
|
|
4522
4544
|
'p-button-loading-label-only': props.loading && !props.icon && props.label
|
|
4523
|
-
}, _defineProperty(_classNames2, "p-button-loading-".concat(props.iconPos), props.loading && props.loadingIcon && props.label), _defineProperty(_classNames2, "p-button-".concat(
|
|
4545
|
+
}, _defineProperty(_classNames2, "p-button-loading-".concat(props.iconPos), props.loading && props.loadingIcon && props.label), _defineProperty(_classNames2, "p-button-".concat(size), size), _defineProperty(_classNames2, "p-button-".concat(props.severity), props.severity), _classNames2));
|
|
4524
4546
|
var icon = createIcon();
|
|
4525
4547
|
var label = createLabel();
|
|
4526
4548
|
var badge = createBadge();
|
|
@@ -16445,7 +16467,6 @@ RowsPerPageDropdown.displayName = 'RowsPerPageDropdown';
|
|
|
16445
16467
|
var Paginator = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
16446
16468
|
var props = PaginatorBase.getProps(inProps);
|
|
16447
16469
|
var elementRef = React.useRef(null);
|
|
16448
|
-
var rppChanged = React.useRef(false);
|
|
16449
16470
|
var page = Math.floor(props.first / props.rows);
|
|
16450
16471
|
var pageCount = Math.ceil(props.totalRecords / props.rows);
|
|
16451
16472
|
var isFirstPage = page === 0;
|
|
@@ -16510,7 +16531,6 @@ var Paginator = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
16510
16531
|
};
|
|
16511
16532
|
var onRowsChange = function onRowsChange(event) {
|
|
16512
16533
|
var rows = event.value;
|
|
16513
|
-
rppChanged.current = rows !== props.rows;
|
|
16514
16534
|
changePage(0, rows);
|
|
16515
16535
|
};
|
|
16516
16536
|
React.useImperativeHandle(ref, function () {
|
|
@@ -16521,12 +16541,6 @@ var Paginator = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
16521
16541
|
}
|
|
16522
16542
|
};
|
|
16523
16543
|
});
|
|
16524
|
-
useUpdateEffect(function () {
|
|
16525
|
-
if (!rppChanged.current) {
|
|
16526
|
-
changePage(props.first, props.rows);
|
|
16527
|
-
}
|
|
16528
|
-
rppChanged.current = false;
|
|
16529
|
-
}, [props.rows]);
|
|
16530
16544
|
useUpdateEffect(function () {
|
|
16531
16545
|
if (page > 0 && props.first >= props.totalRecords) {
|
|
16532
16546
|
changePage((pageCount - 1) * props.rows, props.rows);
|
|
@@ -20605,7 +20619,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
20605
20619
|
if (ObjectUtils.isNotEmpty(widths)) {
|
|
20606
20620
|
createStyleElement();
|
|
20607
20621
|
var innerHTML = '';
|
|
20608
|
-
var selector = ".p-datatable[".concat(attributeSelectorState, "] > .p-datatable-wrapper > .p-datatable-table");
|
|
20622
|
+
var selector = ".p-datatable[".concat(attributeSelectorState, "] > .p-datatable-wrapper ").concat(isVirtualScrollerDisabled() ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
20609
20623
|
widths.forEach(function (width, index) {
|
|
20610
20624
|
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
20611
20625
|
innerHTML += "\n ".concat(selector, " > .p-datatable-thead > tr > th:nth-child(").concat(index + 1, "),\n ").concat(selector, " > .p-datatable-tbody > tr > td:nth-child(").concat(index + 1, "),\n ").concat(selector, " > .p-datatable-tfoot > tr > td:nth-child(").concat(index + 1, ") {\n ").concat(style, "\n }\n ");
|
|
@@ -20776,7 +20790,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
20776
20790
|
destroyStyleElement();
|
|
20777
20791
|
createStyleElement();
|
|
20778
20792
|
var innerHTML = '';
|
|
20779
|
-
var selector = ".p-datatable[".concat(attributeSelectorState, "] > .p-datatable-wrapper > .p-datatable-table");
|
|
20793
|
+
var selector = ".p-datatable[".concat(attributeSelectorState, "] > .p-datatable-wrapper ").concat(isVirtualScrollerDisabled() ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
20780
20794
|
widths.forEach(function (width, index) {
|
|
20781
20795
|
var colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;
|
|
20782
20796
|
var style = "width: ".concat(colWidth, "px !important; max-width: ").concat(colWidth, "px !important");
|
|
@@ -20943,9 +20957,10 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
20943
20957
|
var createResponsiveStyle = function createResponsiveStyle() {
|
|
20944
20958
|
if (!responsiveStyleElement.current) {
|
|
20945
20959
|
responsiveStyleElement.current = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
20946
|
-
var
|
|
20947
|
-
var
|
|
20948
|
-
var
|
|
20960
|
+
var tableSelector = ".p-datatable-wrapper ".concat(isVirtualScrollerDisabled() ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
20961
|
+
var selector = ".p-datatable[".concat(attributeSelectorState, "] > ").concat(tableSelector);
|
|
20962
|
+
var gridLinesSelector = ".p-datatable[".concat(attributeSelectorState, "].p-datatable-gridlines > ").concat(tableSelector);
|
|
20963
|
+
var innerHTML = "\n@media screen and (max-width: ".concat(props.breakpoint, ") {\n ").concat(selector, " > .p-datatable-thead > tr > th,\n ").concat(selector, " > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n ").concat(gridLinesSelector, " > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n");
|
|
20949
20964
|
responsiveStyleElement.current.innerHTML = innerHTML;
|
|
20950
20965
|
}
|
|
20951
20966
|
};
|
|
@@ -21524,7 +21539,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
21524
21539
|
}
|
|
21525
21540
|
return null;
|
|
21526
21541
|
};
|
|
21527
|
-
var createTableHeader = function createTableHeader(options, empty) {
|
|
21542
|
+
var createTableHeader = function createTableHeader(options, empty, _isVirtualScrollerDisabled) {
|
|
21528
21543
|
var sortField = getSortField();
|
|
21529
21544
|
var sortOrder = getSortOrder();
|
|
21530
21545
|
var multiSortMeta = _toConsumableArray(getMultiSortMeta());
|
|
@@ -21532,9 +21547,11 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
21532
21547
|
var filters = d_filtersState;
|
|
21533
21548
|
var filtersStore = !props.onFilter && props.filters || getFilters();
|
|
21534
21549
|
var processedData = options.items,
|
|
21550
|
+
virtualScrollerProps = options.props,
|
|
21535
21551
|
columns = options.columns;
|
|
21552
|
+
var data = _isVirtualScrollerDisabled || virtualScrollerProps.lazy ? processedData : virtualScrollerProps.items;
|
|
21536
21553
|
return /*#__PURE__*/React.createElement(TableHeader, {
|
|
21537
|
-
value:
|
|
21554
|
+
value: data,
|
|
21538
21555
|
tableProps: props,
|
|
21539
21556
|
columns: columns,
|
|
21540
21557
|
tabIndex: props.tabIndex,
|
|
@@ -21772,7 +21789,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
21772
21789
|
'p-datatable-resizable-table': props.resizableColumns,
|
|
21773
21790
|
'p-datatable-resizable-table-fit': props.resizableColumns && props.columnResizeMode === 'fit'
|
|
21774
21791
|
}, props.tableClassName);
|
|
21775
|
-
var tableHeader = createTableHeader(options, empty);
|
|
21792
|
+
var tableHeader = createTableHeader(options, empty, _isVirtualScrollerDisabled);
|
|
21776
21793
|
var tableBody = createTableBody(options, selectionModeInColumn, empty, _isVirtualScrollerDisabled);
|
|
21777
21794
|
var tableFooter = createTableFooter(options);
|
|
21778
21795
|
return /*#__PURE__*/React.createElement("table", {
|
|
@@ -26816,6 +26833,9 @@ var MegaMenu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
26816
26833
|
}
|
|
26817
26834
|
};
|
|
26818
26835
|
var createSubmenu = function createSubmenu(submenu) {
|
|
26836
|
+
if (submenu.visible === false) {
|
|
26837
|
+
return null;
|
|
26838
|
+
}
|
|
26819
26839
|
var className = classNames('p-megamenu-submenu-header', {
|
|
26820
26840
|
'p-disabled': submenu.disabled
|
|
26821
26841
|
}, submenu.className);
|
|
@@ -28416,7 +28436,8 @@ var MultiSelectPanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fu
|
|
|
28416
28436
|
showSelectAll: props.showSelectAll,
|
|
28417
28437
|
selectAll: props.isAllSelected(),
|
|
28418
28438
|
onSelectAll: props.onSelectAll,
|
|
28419
|
-
template: props.panelHeaderTemplate
|
|
28439
|
+
template: props.panelHeaderTemplate,
|
|
28440
|
+
resetFilter: props.resetFilter
|
|
28420
28441
|
});
|
|
28421
28442
|
};
|
|
28422
28443
|
var createFooter = function createFooter() {
|
|
@@ -34263,6 +34284,12 @@ var SplitButtonBase = {
|
|
|
34263
34284
|
buttonProps: null,
|
|
34264
34285
|
menuButtonProps: null,
|
|
34265
34286
|
tabIndex: null,
|
|
34287
|
+
severity: null,
|
|
34288
|
+
rounded: false,
|
|
34289
|
+
raised: false,
|
|
34290
|
+
outlined: false,
|
|
34291
|
+
text: false,
|
|
34292
|
+
size: null,
|
|
34266
34293
|
appendTo: null,
|
|
34267
34294
|
tooltip: null,
|
|
34268
34295
|
tooltipOptions: null,
|
|
@@ -34394,6 +34421,7 @@ var SplitButtonPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
34394
34421
|
SplitButtonPanel.displayName = 'SplitButtonPanel';
|
|
34395
34422
|
|
|
34396
34423
|
var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
34424
|
+
var _classNames;
|
|
34397
34425
|
var props = SplitButtonBase.getProps(inProps);
|
|
34398
34426
|
var _React$useState = React.useState(props.id),
|
|
34399
34427
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -34490,9 +34518,15 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
34490
34518
|
}
|
|
34491
34519
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
34492
34520
|
var otherProps = SplitButtonBase.getOtherProps(props);
|
|
34493
|
-
var
|
|
34494
|
-
'
|
|
34495
|
-
|
|
34521
|
+
var sizeMapping = {
|
|
34522
|
+
large: 'lg',
|
|
34523
|
+
small: 'sm'
|
|
34524
|
+
};
|
|
34525
|
+
var size = sizeMapping[props.size];
|
|
34526
|
+
var className = classNames('p-splitbutton p-component', props.className, (_classNames = {
|
|
34527
|
+
'p-disabled': props.disabled,
|
|
34528
|
+
'p-button-loading-label-only': props.loading && !props.icon && props.label
|
|
34529
|
+
}, _defineProperty(_classNames, "p-button-".concat(props.severity), props.severity), _defineProperty(_classNames, 'p-button-raised', props.raised), _defineProperty(_classNames, 'p-button-rounded', props.rounded), _defineProperty(_classNames, 'p-button-text', props.text), _defineProperty(_classNames, 'p-button-outlined', props.outlined), _defineProperty(_classNames, "p-button-".concat(size), size), _classNames));
|
|
34496
34530
|
var buttonClassName = classNames('p-splitbutton-defaultbutton', props.buttonClassName);
|
|
34497
34531
|
var menuButtonClassName = classNames('p-splitbutton-menubutton', props.menuButtonClassName);
|
|
34498
34532
|
var buttonContent = props.buttonTemplate ? ObjectUtils.getJSXElement(props.buttonTemplate, props) : null;
|