primereact 10.3.3 → 10.5.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/accordion/accordion.cjs.js +1 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +1 -1
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -1
- package/accordion/accordion.min.js +1 -1
- package/calendar/calendar.cjs.js +29 -14
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +29 -14
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +29 -14
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +1 -0
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +1 -0
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +1 -0
- package/carousel/carousel.min.js +1 -1
- package/checkbox/checkbox.cjs.js +2 -0
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +2 -0
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +2 -0
- package/checkbox/checkbox.min.js +1 -1
- package/chips/chips.cjs.js +111 -21
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +111 -21
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +111 -21
- package/chips/chips.min.js +1 -1
- package/core/core.js +696 -505
- package/core/core.min.js +5 -5
- package/datatable/datatable.cjs.js +577 -153
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +573 -149
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +577 -153
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.d.ts +2 -2
- 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 +327 -160
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +9 -0
- package/dropdown/dropdown.esm.js +327 -160
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +327 -160
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +1 -1
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +1 -1
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +1 -1
- package/editor/editor.min.js +1 -1
- package/focustrap/focustrap.cjs.js +168 -0
- package/focustrap/focustrap.cjs.min.js +1 -0
- package/focustrap/focustrap.esm.js +159 -0
- package/focustrap/focustrap.esm.min.js +1 -0
- package/focustrap/focustrap.js +167 -0
- package/focustrap/focustrap.min.js +1 -0
- package/focustrap/package.json +7 -0
- package/galleria/galleria.cjs.js +26 -24
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +26 -24
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +26 -24
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.d.ts +1 -1
- package/inputnumber/inputnumber.cjs.js +21 -17
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +21 -17
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +21 -17
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +3 -1
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +3 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +3 -1
- package/inputswitch/inputswitch.min.js +1 -1
- package/knob/knob.cjs.js +62 -0
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +62 -0
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +62 -0
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +362 -92
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +363 -93
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +362 -92
- package/listbox/listbox.min.js +1 -1
- package/menu/menu.cjs.js +4 -2
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +4 -2
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +5 -4
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +3 -0
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +3 -0
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +3 -0
- package/menubar/menubar.min.js +1 -1
- package/multiselect/multiselect.cjs.js +377 -107
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +377 -107
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +377 -107
- package/multiselect/multiselect.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +251 -251
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +258 -258
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +251 -251
- package/paginator/paginator.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +34 -22
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +34 -22
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +35 -24
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +3 -2
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +3 -2
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +3 -2
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +22 -20
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +22 -20
- package/password/password.esm.min.js +1 -1
- package/password/password.js +22 -20
- package/password/password.min.js +1 -1
- package/primereact.all.cjs.js +2199 -951
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2199 -951
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +2199 -951
- package/primereact.all.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +1 -0
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +1 -0
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +1 -0
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +103 -4
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +103 -4
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +103 -4
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +328 -67
- package/resources/themes/arya-green/theme.css +328 -67
- package/resources/themes/arya-orange/theme.css +328 -67
- package/resources/themes/arya-purple/theme.css +26 -6
- package/resources/themes/bootstrap4-dark-blue/theme.css +328 -67
- package/resources/themes/bootstrap4-dark-purple/theme.css +26 -6
- package/resources/themes/bootstrap4-light-blue/theme.css +328 -67
- package/resources/themes/bootstrap4-light-purple/theme.css +26 -6
- package/resources/themes/fluent-light/theme.css +327 -66
- package/resources/themes/lara-dark-amber/theme.css +328 -67
- package/resources/themes/lara-dark-blue/theme.css +328 -67
- package/resources/themes/lara-dark-cyan/theme.css +328 -67
- package/resources/themes/lara-dark-green/theme.css +328 -67
- package/resources/themes/lara-dark-indigo/theme.css +328 -67
- package/resources/themes/lara-dark-pink/theme.css +328 -67
- package/resources/themes/lara-dark-purple/theme.css +26 -6
- package/resources/themes/lara-dark-teal/theme.css +328 -67
- package/resources/themes/lara-light-amber/theme.css +328 -67
- package/resources/themes/lara-light-blue/theme.css +328 -67
- package/resources/themes/lara-light-cyan/theme.css +328 -67
- package/resources/themes/lara-light-green/theme.css +328 -67
- package/resources/themes/lara-light-indigo/theme.css +328 -67
- package/resources/themes/lara-light-pink/theme.css +328 -67
- package/resources/themes/lara-light-purple/theme.css +26 -6
- package/resources/themes/lara-light-teal/theme.css +328 -67
- package/resources/themes/luna-amber/theme.css +328 -67
- package/resources/themes/luna-blue/theme.css +328 -67
- package/resources/themes/luna-green/theme.css +328 -67
- package/resources/themes/luna-pink/theme.css +328 -67
- package/resources/themes/md-dark-deeppurple/theme.css +158 -138
- package/resources/themes/md-dark-indigo/theme.css +454 -193
- package/resources/themes/md-light-deeppurple/theme.css +26 -6
- package/resources/themes/md-light-indigo/theme.css +328 -67
- package/resources/themes/mdc-dark-deeppurple/theme.css +158 -138
- package/resources/themes/mdc-dark-indigo/theme.css +454 -193
- package/resources/themes/mdc-light-deeppurple/theme.css +26 -6
- package/resources/themes/mdc-light-indigo/theme.css +328 -67
- package/resources/themes/mira/theme.css +328 -67
- package/resources/themes/nano/theme.css +328 -67
- package/resources/themes/nova/theme.css +328 -67
- package/resources/themes/nova-accent/theme.css +328 -67
- package/resources/themes/nova-alt/theme.css +328 -67
- package/resources/themes/rhea/theme.css +328 -67
- package/resources/themes/saga-blue/theme.css +328 -67
- package/resources/themes/saga-green/theme.css +328 -67
- package/resources/themes/saga-orange/theme.css +328 -67
- package/resources/themes/saga-purple/theme.css +26 -6
- package/resources/themes/soho-dark/theme.css +353 -92
- package/resources/themes/soho-light/theme.css +328 -67
- package/resources/themes/tailwind-light/theme.css +329 -71
- package/resources/themes/vela-blue/theme.css +328 -67
- package/resources/themes/vela-green/theme.css +328 -67
- package/resources/themes/vela-orange/theme.css +328 -67
- package/resources/themes/vela-purple/theme.css +26 -6
- package/resources/themes/viva-dark/theme.css +328 -67
- package/resources/themes/viva-light/theme.css +328 -67
- package/selectbutton/selectbutton.cjs.js +96 -50
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +96 -50
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +96 -50
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +18 -16
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +18 -16
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +18 -16
- package/sidebar/sidebar.min.js +1 -1
- package/slider/slider.cjs.js +25 -4
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +25 -4
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +25 -4
- package/slider/slider.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +4 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +4 -3
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +4 -3
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +71 -25
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +13 -1
- package/splitter/splitter.esm.js +73 -27
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +71 -25
- package/splitter/splitter.min.js +1 -1
- package/tabview/tabview.cjs.js +6 -5
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +39 -34
- package/tabview/tabview.esm.js +6 -5
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +6 -5
- package/tabview/tabview.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +4 -3
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +4 -3
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +4 -3
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +15 -14
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +14 -13
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +15 -14
- package/togglebutton/togglebutton.min.js +1 -1
- package/tree/tree.cjs.js +33 -15
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +34 -16
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +33 -15
- package/tree/tree.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +3 -2
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +3 -2
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +3 -2
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/web-types.json +19 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { PrimeReactContext, ariaLabel as ariaLabel$
|
|
3
|
+
import { PrimeReactContext, ariaLabel as ariaLabel$1, localeOption } from 'primereact/api';
|
|
4
4
|
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
5
5
|
import { useMergeProps, useUpdateEffect } from 'primereact/hooks';
|
|
6
6
|
import { classNames, ObjectUtils, IconUtils } from 'primereact/utils';
|
|
@@ -343,7 +343,7 @@ var FirstPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
343
343
|
}),
|
|
344
344
|
onClick: props.onClick,
|
|
345
345
|
disabled: props.disabled,
|
|
346
|
-
'aria-label': ariaLabel$
|
|
346
|
+
'aria-label': ariaLabel$1('firstPageLabel')
|
|
347
347
|
}, getPTOptions('firstPageButton'));
|
|
348
348
|
var element = /*#__PURE__*/React.createElement("button", firstPageButtonProps, firstPageLinkIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
349
349
|
if (props.template) {
|
|
@@ -361,6 +361,255 @@ var FirstPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
361
361
|
});
|
|
362
362
|
FirstPageLink.displayName = 'FirstPageLink';
|
|
363
363
|
|
|
364
|
+
function _defineProperties(target, props) {
|
|
365
|
+
for (var i = 0; i < props.length; i++) {
|
|
366
|
+
var descriptor = props[i];
|
|
367
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
368
|
+
descriptor.configurable = true;
|
|
369
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
370
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
374
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
375
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
376
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
377
|
+
writable: false
|
|
378
|
+
});
|
|
379
|
+
return Constructor;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
function _classCallCheck(instance, Constructor) {
|
|
383
|
+
if (!(instance instanceof Constructor)) {
|
|
384
|
+
throw new TypeError("Cannot call a class as a function");
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
var FilterMatchMode = Object.freeze({
|
|
389
|
+
STARTS_WITH: 'startsWith',
|
|
390
|
+
CONTAINS: 'contains',
|
|
391
|
+
NOT_CONTAINS: 'notContains',
|
|
392
|
+
ENDS_WITH: 'endsWith',
|
|
393
|
+
EQUALS: 'equals',
|
|
394
|
+
NOT_EQUALS: 'notEquals',
|
|
395
|
+
IN: 'in',
|
|
396
|
+
LESS_THAN: 'lt',
|
|
397
|
+
LESS_THAN_OR_EQUAL_TO: 'lte',
|
|
398
|
+
GREATER_THAN: 'gt',
|
|
399
|
+
GREATER_THAN_OR_EQUAL_TO: 'gte',
|
|
400
|
+
BETWEEN: 'between',
|
|
401
|
+
DATE_IS: 'dateIs',
|
|
402
|
+
DATE_IS_NOT: 'dateIsNot',
|
|
403
|
+
DATE_BEFORE: 'dateBefore',
|
|
404
|
+
DATE_AFTER: 'dateAfter',
|
|
405
|
+
CUSTOM: 'custom'
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* @deprecated please use PrimeReactContext
|
|
410
|
+
*/
|
|
411
|
+
var PrimeReact = /*#__PURE__*/_createClass(function PrimeReact() {
|
|
412
|
+
_classCallCheck(this, PrimeReact);
|
|
413
|
+
});
|
|
414
|
+
_defineProperty(PrimeReact, "ripple", false);
|
|
415
|
+
_defineProperty(PrimeReact, "inputStyle", 'outlined');
|
|
416
|
+
_defineProperty(PrimeReact, "locale", 'en');
|
|
417
|
+
_defineProperty(PrimeReact, "appendTo", null);
|
|
418
|
+
_defineProperty(PrimeReact, "cssTransition", true);
|
|
419
|
+
_defineProperty(PrimeReact, "autoZIndex", true);
|
|
420
|
+
_defineProperty(PrimeReact, "hideOverlaysOnDocumentScrolling", false);
|
|
421
|
+
_defineProperty(PrimeReact, "nonce", null);
|
|
422
|
+
_defineProperty(PrimeReact, "nullSortOrder", 1);
|
|
423
|
+
_defineProperty(PrimeReact, "zIndex", {
|
|
424
|
+
modal: 1100,
|
|
425
|
+
overlay: 1000,
|
|
426
|
+
menu: 1000,
|
|
427
|
+
tooltip: 1100,
|
|
428
|
+
toast: 1200
|
|
429
|
+
});
|
|
430
|
+
_defineProperty(PrimeReact, "pt", undefined);
|
|
431
|
+
_defineProperty(PrimeReact, "filterMatchModeOptions", {
|
|
432
|
+
text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],
|
|
433
|
+
numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
|
|
434
|
+
date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]
|
|
435
|
+
});
|
|
436
|
+
_defineProperty(PrimeReact, "changeTheme", function (currentTheme, newTheme, linkElementId, callback) {
|
|
437
|
+
var _linkElement$parentNo;
|
|
438
|
+
var linkElement = document.getElementById(linkElementId);
|
|
439
|
+
var cloneLinkElement = linkElement.cloneNode(true);
|
|
440
|
+
var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
|
|
441
|
+
cloneLinkElement.setAttribute('id', linkElementId + '-clone');
|
|
442
|
+
cloneLinkElement.setAttribute('href', newThemeUrl);
|
|
443
|
+
cloneLinkElement.addEventListener('load', function () {
|
|
444
|
+
linkElement.remove();
|
|
445
|
+
cloneLinkElement.setAttribute('id', linkElementId);
|
|
446
|
+
if (callback) {
|
|
447
|
+
callback();
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.insertBefore(cloneLinkElement, linkElement.nextSibling);
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
var locales = {
|
|
454
|
+
en: {
|
|
455
|
+
startsWith: 'Starts with',
|
|
456
|
+
contains: 'Contains',
|
|
457
|
+
notContains: 'Not contains',
|
|
458
|
+
endsWith: 'Ends with',
|
|
459
|
+
equals: 'Equals',
|
|
460
|
+
notEquals: 'Not equals',
|
|
461
|
+
noFilter: 'No Filter',
|
|
462
|
+
filter: 'Filter',
|
|
463
|
+
lt: 'Less than',
|
|
464
|
+
lte: 'Less than or equal to',
|
|
465
|
+
gt: 'Greater than',
|
|
466
|
+
gte: 'Greater than or equal to',
|
|
467
|
+
dateIs: 'Date is',
|
|
468
|
+
dateIsNot: 'Date is not',
|
|
469
|
+
dateBefore: 'Date is before',
|
|
470
|
+
dateAfter: 'Date is after',
|
|
471
|
+
custom: 'Custom',
|
|
472
|
+
clear: 'Clear',
|
|
473
|
+
close: 'Close',
|
|
474
|
+
apply: 'Apply',
|
|
475
|
+
matchAll: 'Match All',
|
|
476
|
+
matchAny: 'Match Any',
|
|
477
|
+
addRule: 'Add Rule',
|
|
478
|
+
removeRule: 'Remove Rule',
|
|
479
|
+
accept: 'Yes',
|
|
480
|
+
reject: 'No',
|
|
481
|
+
choose: 'Choose',
|
|
482
|
+
upload: 'Upload',
|
|
483
|
+
cancel: 'Cancel',
|
|
484
|
+
completed: 'Completed',
|
|
485
|
+
pending: 'Pending',
|
|
486
|
+
fileSizeTypes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
|
|
487
|
+
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
488
|
+
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
489
|
+
dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
490
|
+
monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
|
|
491
|
+
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
492
|
+
chooseYear: 'Choose Year',
|
|
493
|
+
chooseMonth: 'Choose Month',
|
|
494
|
+
chooseDate: 'Choose Date',
|
|
495
|
+
prevDecade: 'Previous Decade',
|
|
496
|
+
nextDecade: 'Next Decade',
|
|
497
|
+
prevYear: 'Previous Year',
|
|
498
|
+
nextYear: 'Next Year',
|
|
499
|
+
prevMonth: 'Previous Month',
|
|
500
|
+
nextMonth: 'Next Month',
|
|
501
|
+
prevHour: 'Previous Hour',
|
|
502
|
+
nextHour: 'Next Hour',
|
|
503
|
+
prevMinute: 'Previous Minute',
|
|
504
|
+
nextMinute: 'Next Minute',
|
|
505
|
+
prevSecond: 'Previous Second',
|
|
506
|
+
nextSecond: 'Next Second',
|
|
507
|
+
prevMilliSecond: 'Previous Second',
|
|
508
|
+
nextMilliSecond: 'Next Second',
|
|
509
|
+
am: 'am',
|
|
510
|
+
pm: 'pm',
|
|
511
|
+
today: 'Today',
|
|
512
|
+
now: 'Now',
|
|
513
|
+
weekHeader: 'Wk',
|
|
514
|
+
firstDayOfWeek: 0,
|
|
515
|
+
showMonthAfterYear: false,
|
|
516
|
+
dateFormat: 'mm/dd/yy',
|
|
517
|
+
weak: 'Weak',
|
|
518
|
+
medium: 'Medium',
|
|
519
|
+
strong: 'Strong',
|
|
520
|
+
passwordPrompt: 'Enter a password',
|
|
521
|
+
emptyFilterMessage: 'No available options',
|
|
522
|
+
emptyMessage: 'No results found',
|
|
523
|
+
aria: {
|
|
524
|
+
trueLabel: 'True',
|
|
525
|
+
falseLabel: 'False',
|
|
526
|
+
nullLabel: 'Not Selected',
|
|
527
|
+
star: '1 star',
|
|
528
|
+
stars: '{star} stars',
|
|
529
|
+
selectAll: 'All items selected',
|
|
530
|
+
unselectAll: 'All items unselected',
|
|
531
|
+
close: 'Close',
|
|
532
|
+
previous: 'Previous',
|
|
533
|
+
next: 'Next',
|
|
534
|
+
navigation: 'Navigation',
|
|
535
|
+
scrollTop: 'Scroll Top',
|
|
536
|
+
moveTop: 'Move Top',
|
|
537
|
+
moveUp: 'Move Up',
|
|
538
|
+
moveDown: 'Move Down',
|
|
539
|
+
moveBottom: 'Move Bottom',
|
|
540
|
+
moveToTarget: 'Move to Target',
|
|
541
|
+
moveToSource: 'Move to Source',
|
|
542
|
+
moveAllToTarget: 'Move All to Target',
|
|
543
|
+
moveAllToSource: 'Move All to Source',
|
|
544
|
+
pageLabel: 'Page {page}',
|
|
545
|
+
firstPageLabel: 'First Page',
|
|
546
|
+
lastPageLabel: 'Last Page',
|
|
547
|
+
nextPageLabel: 'Next Page',
|
|
548
|
+
previousPageLabel: 'Previous Page',
|
|
549
|
+
rowsPerPageLabel: 'Rows per page',
|
|
550
|
+
jumpToPageDropdownLabel: 'Jump to Page Dropdown',
|
|
551
|
+
jumpToPageInputLabel: 'Jump to Page Input',
|
|
552
|
+
selectRow: 'Row Selected',
|
|
553
|
+
unselectRow: 'Row Unselected',
|
|
554
|
+
expandRow: 'Row Expanded',
|
|
555
|
+
collapseRow: 'Row Collapsed',
|
|
556
|
+
showFilterMenu: 'Show Filter Menu',
|
|
557
|
+
hideFilterMenu: 'Hide Filter Menu',
|
|
558
|
+
filterOperator: 'Filter Operator',
|
|
559
|
+
filterConstraint: 'Filter Constraint',
|
|
560
|
+
editRow: 'Row Edit',
|
|
561
|
+
saveEdit: 'Save Edit',
|
|
562
|
+
cancelEdit: 'Cancel Edit',
|
|
563
|
+
listView: 'List View',
|
|
564
|
+
gridView: 'Grid View',
|
|
565
|
+
slide: 'Slide',
|
|
566
|
+
slideNumber: '{slideNumber}',
|
|
567
|
+
zoomImage: 'Zoom Image',
|
|
568
|
+
zoomIn: 'Zoom In',
|
|
569
|
+
zoomOut: 'Zoom Out',
|
|
570
|
+
rotateRight: 'Rotate Right',
|
|
571
|
+
rotateLeft: 'Rotate Left',
|
|
572
|
+
selectLabel: 'Select',
|
|
573
|
+
unselectLabel: 'Unselect',
|
|
574
|
+
expandLabel: 'Expand',
|
|
575
|
+
collapseLabel: 'Collapse'
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Find an ARIA label in the locale by key. If options are passed it will replace all options:
|
|
582
|
+
* ```ts
|
|
583
|
+
* const ariaValue = "Page {page}, User {user}, Role {role}";
|
|
584
|
+
* const options = { page: 2, user: "John", role: "Admin" };
|
|
585
|
+
* const result = ariaLabel('yourLabel', { page: 2, user: "John", role: "Admin" })
|
|
586
|
+
* console.log(result); // Output: Page 2, User John, Role Admin
|
|
587
|
+
* ```
|
|
588
|
+
* @param {string} ariaKey key of the ARIA label to look up in locale.
|
|
589
|
+
* @param {any} options JSON options like { page: 2, user: "John", role: "Admin" }
|
|
590
|
+
* @returns the ARIA label with replaced values
|
|
591
|
+
*/
|
|
592
|
+
function ariaLabel(ariaKey, options) {
|
|
593
|
+
var _locale = PrimeReact.locale;
|
|
594
|
+
try {
|
|
595
|
+
var _ariaLabel = localeOptions(_locale)['aria'][ariaKey];
|
|
596
|
+
if (_ariaLabel) {
|
|
597
|
+
for (var key in options) {
|
|
598
|
+
if (options.hasOwnProperty(key)) {
|
|
599
|
+
_ariaLabel = _ariaLabel.replace("{".concat(key, "}"), options[key]);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
return _ariaLabel;
|
|
604
|
+
} catch (error) {
|
|
605
|
+
throw new Error("The ".concat(ariaKey, " option is not found in the current locale('").concat(_locale, "')."));
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
function localeOptions(locale) {
|
|
609
|
+
var _locale = locale || PrimeReact.locale;
|
|
610
|
+
return locales[_locale];
|
|
611
|
+
}
|
|
612
|
+
|
|
364
613
|
var JumpToPageInput = /*#__PURE__*/React.memo(function (inProps) {
|
|
365
614
|
useMergeProps();
|
|
366
615
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -390,7 +639,7 @@ var JumpToPageInput = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
390
639
|
onChange: onChange,
|
|
391
640
|
disabled: props.disabled,
|
|
392
641
|
className: 'p-paginator-page-input',
|
|
393
|
-
|
|
642
|
+
'aria-label': ariaLabelValue,
|
|
394
643
|
element: element,
|
|
395
644
|
props: props
|
|
396
645
|
};
|
|
@@ -434,7 +683,7 @@ var LastPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
434
683
|
}),
|
|
435
684
|
onClick: props.onClick,
|
|
436
685
|
disabled: props.disabled,
|
|
437
|
-
'aria-label': ariaLabel$
|
|
686
|
+
'aria-label': ariaLabel$1('lastPageLabel')
|
|
438
687
|
}, getPTOptions('lastPageButton'));
|
|
439
688
|
var element = /*#__PURE__*/React.createElement("button", lastPageButtonProps, lastPageLinkIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
440
689
|
if (props.template) {
|
|
@@ -486,7 +735,7 @@ var NextPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
486
735
|
}),
|
|
487
736
|
onClick: props.onClick,
|
|
488
737
|
disabled: props.disabled,
|
|
489
|
-
'aria-label': ariaLabel$
|
|
738
|
+
'aria-label': ariaLabel$1('nextPageLabel')
|
|
490
739
|
}, getPTOptions('nextPageButton'));
|
|
491
740
|
var element = /*#__PURE__*/React.createElement("button", nextPageButtonProps, nextPageLinkIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
492
741
|
if (props.template) {
|
|
@@ -550,7 +799,7 @@ var PageLinks = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
550
799
|
page: props.page
|
|
551
800
|
}),
|
|
552
801
|
disabled: props.disabled,
|
|
553
|
-
'aria-label': ariaLabel$
|
|
802
|
+
'aria-label': ariaLabel$1('pageLabel', {
|
|
554
803
|
page: pageLink
|
|
555
804
|
}),
|
|
556
805
|
'aria-current': pageLink - 1 === props.page ? 'true' : undefined
|
|
@@ -569,7 +818,7 @@ var PageLinks = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
569
818
|
page: pageLink - 1,
|
|
570
819
|
currentPage: props.page,
|
|
571
820
|
totalPages: props.pageCount,
|
|
572
|
-
ariaLabel: ariaLabel$
|
|
821
|
+
ariaLabel: ariaLabel$1('pageLabel', {
|
|
573
822
|
page: pageLink
|
|
574
823
|
}),
|
|
575
824
|
ariaCurrent: pageLink - 1 === props.page ? 'true' : undefined,
|
|
@@ -626,7 +875,7 @@ var PrevPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
626
875
|
}),
|
|
627
876
|
onClick: props.onClick,
|
|
628
877
|
disabled: props.disabled,
|
|
629
|
-
'aria-label': ariaLabel$
|
|
878
|
+
'aria-label': ariaLabel$1('previousPageLabel')
|
|
630
879
|
}, getPTOptions('prevPageButton'));
|
|
631
880
|
var element = /*#__PURE__*/React.createElement("button", prevPageButtonProps, prevPageLinkIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
632
881
|
if (props.template) {
|
|
@@ -644,255 +893,6 @@ var PrevPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
644
893
|
});
|
|
645
894
|
PrevPageLink.displayName = 'PrevPageLink';
|
|
646
895
|
|
|
647
|
-
function _defineProperties(target, props) {
|
|
648
|
-
for (var i = 0; i < props.length; i++) {
|
|
649
|
-
var descriptor = props[i];
|
|
650
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
651
|
-
descriptor.configurable = true;
|
|
652
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
653
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
657
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
658
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
659
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
660
|
-
writable: false
|
|
661
|
-
});
|
|
662
|
-
return Constructor;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
function _classCallCheck(instance, Constructor) {
|
|
666
|
-
if (!(instance instanceof Constructor)) {
|
|
667
|
-
throw new TypeError("Cannot call a class as a function");
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
var FilterMatchMode = Object.freeze({
|
|
672
|
-
STARTS_WITH: 'startsWith',
|
|
673
|
-
CONTAINS: 'contains',
|
|
674
|
-
NOT_CONTAINS: 'notContains',
|
|
675
|
-
ENDS_WITH: 'endsWith',
|
|
676
|
-
EQUALS: 'equals',
|
|
677
|
-
NOT_EQUALS: 'notEquals',
|
|
678
|
-
IN: 'in',
|
|
679
|
-
LESS_THAN: 'lt',
|
|
680
|
-
LESS_THAN_OR_EQUAL_TO: 'lte',
|
|
681
|
-
GREATER_THAN: 'gt',
|
|
682
|
-
GREATER_THAN_OR_EQUAL_TO: 'gte',
|
|
683
|
-
BETWEEN: 'between',
|
|
684
|
-
DATE_IS: 'dateIs',
|
|
685
|
-
DATE_IS_NOT: 'dateIsNot',
|
|
686
|
-
DATE_BEFORE: 'dateBefore',
|
|
687
|
-
DATE_AFTER: 'dateAfter',
|
|
688
|
-
CUSTOM: 'custom'
|
|
689
|
-
});
|
|
690
|
-
|
|
691
|
-
/**
|
|
692
|
-
* @deprecated please use PrimeReactContext
|
|
693
|
-
*/
|
|
694
|
-
var PrimeReact = /*#__PURE__*/_createClass(function PrimeReact() {
|
|
695
|
-
_classCallCheck(this, PrimeReact);
|
|
696
|
-
});
|
|
697
|
-
_defineProperty(PrimeReact, "ripple", false);
|
|
698
|
-
_defineProperty(PrimeReact, "inputStyle", 'outlined');
|
|
699
|
-
_defineProperty(PrimeReact, "locale", 'en');
|
|
700
|
-
_defineProperty(PrimeReact, "appendTo", null);
|
|
701
|
-
_defineProperty(PrimeReact, "cssTransition", true);
|
|
702
|
-
_defineProperty(PrimeReact, "autoZIndex", true);
|
|
703
|
-
_defineProperty(PrimeReact, "hideOverlaysOnDocumentScrolling", false);
|
|
704
|
-
_defineProperty(PrimeReact, "nonce", null);
|
|
705
|
-
_defineProperty(PrimeReact, "nullSortOrder", 1);
|
|
706
|
-
_defineProperty(PrimeReact, "zIndex", {
|
|
707
|
-
modal: 1100,
|
|
708
|
-
overlay: 1000,
|
|
709
|
-
menu: 1000,
|
|
710
|
-
tooltip: 1100,
|
|
711
|
-
toast: 1200
|
|
712
|
-
});
|
|
713
|
-
_defineProperty(PrimeReact, "pt", undefined);
|
|
714
|
-
_defineProperty(PrimeReact, "filterMatchModeOptions", {
|
|
715
|
-
text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],
|
|
716
|
-
numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
|
|
717
|
-
date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]
|
|
718
|
-
});
|
|
719
|
-
_defineProperty(PrimeReact, "changeTheme", function (currentTheme, newTheme, linkElementId, callback) {
|
|
720
|
-
var _linkElement$parentNo;
|
|
721
|
-
var linkElement = document.getElementById(linkElementId);
|
|
722
|
-
var cloneLinkElement = linkElement.cloneNode(true);
|
|
723
|
-
var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
|
|
724
|
-
cloneLinkElement.setAttribute('id', linkElementId + '-clone');
|
|
725
|
-
cloneLinkElement.setAttribute('href', newThemeUrl);
|
|
726
|
-
cloneLinkElement.addEventListener('load', function () {
|
|
727
|
-
linkElement.remove();
|
|
728
|
-
cloneLinkElement.setAttribute('id', linkElementId);
|
|
729
|
-
if (callback) {
|
|
730
|
-
callback();
|
|
731
|
-
}
|
|
732
|
-
});
|
|
733
|
-
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.insertBefore(cloneLinkElement, linkElement.nextSibling);
|
|
734
|
-
});
|
|
735
|
-
|
|
736
|
-
var locales = {
|
|
737
|
-
en: {
|
|
738
|
-
startsWith: 'Starts with',
|
|
739
|
-
contains: 'Contains',
|
|
740
|
-
notContains: 'Not contains',
|
|
741
|
-
endsWith: 'Ends with',
|
|
742
|
-
equals: 'Equals',
|
|
743
|
-
notEquals: 'Not equals',
|
|
744
|
-
noFilter: 'No Filter',
|
|
745
|
-
filter: 'Filter',
|
|
746
|
-
lt: 'Less than',
|
|
747
|
-
lte: 'Less than or equal to',
|
|
748
|
-
gt: 'Greater than',
|
|
749
|
-
gte: 'Greater than or equal to',
|
|
750
|
-
dateIs: 'Date is',
|
|
751
|
-
dateIsNot: 'Date is not',
|
|
752
|
-
dateBefore: 'Date is before',
|
|
753
|
-
dateAfter: 'Date is after',
|
|
754
|
-
custom: 'Custom',
|
|
755
|
-
clear: 'Clear',
|
|
756
|
-
close: 'Close',
|
|
757
|
-
apply: 'Apply',
|
|
758
|
-
matchAll: 'Match All',
|
|
759
|
-
matchAny: 'Match Any',
|
|
760
|
-
addRule: 'Add Rule',
|
|
761
|
-
removeRule: 'Remove Rule',
|
|
762
|
-
accept: 'Yes',
|
|
763
|
-
reject: 'No',
|
|
764
|
-
choose: 'Choose',
|
|
765
|
-
upload: 'Upload',
|
|
766
|
-
cancel: 'Cancel',
|
|
767
|
-
completed: 'Completed',
|
|
768
|
-
pending: 'Pending',
|
|
769
|
-
fileSizeTypes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
|
|
770
|
-
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
771
|
-
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
772
|
-
dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
773
|
-
monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
|
|
774
|
-
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
775
|
-
chooseYear: 'Choose Year',
|
|
776
|
-
chooseMonth: 'Choose Month',
|
|
777
|
-
chooseDate: 'Choose Date',
|
|
778
|
-
prevDecade: 'Previous Decade',
|
|
779
|
-
nextDecade: 'Next Decade',
|
|
780
|
-
prevYear: 'Previous Year',
|
|
781
|
-
nextYear: 'Next Year',
|
|
782
|
-
prevMonth: 'Previous Month',
|
|
783
|
-
nextMonth: 'Next Month',
|
|
784
|
-
prevHour: 'Previous Hour',
|
|
785
|
-
nextHour: 'Next Hour',
|
|
786
|
-
prevMinute: 'Previous Minute',
|
|
787
|
-
nextMinute: 'Next Minute',
|
|
788
|
-
prevSecond: 'Previous Second',
|
|
789
|
-
nextSecond: 'Next Second',
|
|
790
|
-
prevMilliSecond: 'Previous Second',
|
|
791
|
-
nextMilliSecond: 'Next Second',
|
|
792
|
-
am: 'am',
|
|
793
|
-
pm: 'pm',
|
|
794
|
-
today: 'Today',
|
|
795
|
-
now: 'Now',
|
|
796
|
-
weekHeader: 'Wk',
|
|
797
|
-
firstDayOfWeek: 0,
|
|
798
|
-
showMonthAfterYear: false,
|
|
799
|
-
dateFormat: 'mm/dd/yy',
|
|
800
|
-
weak: 'Weak',
|
|
801
|
-
medium: 'Medium',
|
|
802
|
-
strong: 'Strong',
|
|
803
|
-
passwordPrompt: 'Enter a password',
|
|
804
|
-
emptyFilterMessage: 'No available options',
|
|
805
|
-
emptyMessage: 'No results found',
|
|
806
|
-
aria: {
|
|
807
|
-
trueLabel: 'True',
|
|
808
|
-
falseLabel: 'False',
|
|
809
|
-
nullLabel: 'Not Selected',
|
|
810
|
-
star: '1 star',
|
|
811
|
-
stars: '{star} stars',
|
|
812
|
-
selectAll: 'All items selected',
|
|
813
|
-
unselectAll: 'All items unselected',
|
|
814
|
-
close: 'Close',
|
|
815
|
-
previous: 'Previous',
|
|
816
|
-
next: 'Next',
|
|
817
|
-
navigation: 'Navigation',
|
|
818
|
-
scrollTop: 'Scroll Top',
|
|
819
|
-
moveTop: 'Move Top',
|
|
820
|
-
moveUp: 'Move Up',
|
|
821
|
-
moveDown: 'Move Down',
|
|
822
|
-
moveBottom: 'Move Bottom',
|
|
823
|
-
moveToTarget: 'Move to Target',
|
|
824
|
-
moveToSource: 'Move to Source',
|
|
825
|
-
moveAllToTarget: 'Move All to Target',
|
|
826
|
-
moveAllToSource: 'Move All to Source',
|
|
827
|
-
pageLabel: 'Page {page}',
|
|
828
|
-
firstPageLabel: 'First Page',
|
|
829
|
-
lastPageLabel: 'Last Page',
|
|
830
|
-
nextPageLabel: 'Next Page',
|
|
831
|
-
previousPageLabel: 'Previous Page',
|
|
832
|
-
rowsPerPageLabel: 'Rows per page',
|
|
833
|
-
jumpToPageDropdownLabel: 'Jump to Page Dropdown',
|
|
834
|
-
jumpToPageInputLabel: 'Jump to Page Input',
|
|
835
|
-
selectRow: 'Row Selected',
|
|
836
|
-
unselectRow: 'Row Unselected',
|
|
837
|
-
expandRow: 'Row Expanded',
|
|
838
|
-
collapseRow: 'Row Collapsed',
|
|
839
|
-
showFilterMenu: 'Show Filter Menu',
|
|
840
|
-
hideFilterMenu: 'Hide Filter Menu',
|
|
841
|
-
filterOperator: 'Filter Operator',
|
|
842
|
-
filterConstraint: 'Filter Constraint',
|
|
843
|
-
editRow: 'Row Edit',
|
|
844
|
-
saveEdit: 'Save Edit',
|
|
845
|
-
cancelEdit: 'Cancel Edit',
|
|
846
|
-
listView: 'List View',
|
|
847
|
-
gridView: 'Grid View',
|
|
848
|
-
slide: 'Slide',
|
|
849
|
-
slideNumber: '{slideNumber}',
|
|
850
|
-
zoomImage: 'Zoom Image',
|
|
851
|
-
zoomIn: 'Zoom In',
|
|
852
|
-
zoomOut: 'Zoom Out',
|
|
853
|
-
rotateRight: 'Rotate Right',
|
|
854
|
-
rotateLeft: 'Rotate Left',
|
|
855
|
-
selectLabel: 'Select',
|
|
856
|
-
unselectLabel: 'Unselect',
|
|
857
|
-
expandLabel: 'Expand',
|
|
858
|
-
collapseLabel: 'Collapse'
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
|
-
|
|
863
|
-
/**
|
|
864
|
-
* Find an ARIA label in the locale by key. If options are passed it will replace all options:
|
|
865
|
-
* ```ts
|
|
866
|
-
* const ariaValue = "Page {page}, User {user}, Role {role}";
|
|
867
|
-
* const options = { page: 2, user: "John", role: "Admin" };
|
|
868
|
-
* const result = ariaLabel('yourLabel', { page: 2, user: "John", role: "Admin" })
|
|
869
|
-
* console.log(result); // Output: Page 2, User John, Role Admin
|
|
870
|
-
* ```
|
|
871
|
-
* @param {string} ariaKey key of the ARIA label to look up in locale.
|
|
872
|
-
* @param {any} options JSON options like { page: 2, user: "John", role: "Admin" }
|
|
873
|
-
* @returns the ARIA label with replaced values
|
|
874
|
-
*/
|
|
875
|
-
function ariaLabel$1(ariaKey, options) {
|
|
876
|
-
var _locale = PrimeReact.locale;
|
|
877
|
-
try {
|
|
878
|
-
var _ariaLabel = localeOptions(_locale)['aria'][ariaKey];
|
|
879
|
-
if (_ariaLabel) {
|
|
880
|
-
for (var key in options) {
|
|
881
|
-
if (options.hasOwnProperty(key)) {
|
|
882
|
-
_ariaLabel = _ariaLabel.replace("{".concat(key, "}"), options[key]);
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
return _ariaLabel;
|
|
887
|
-
} catch (error) {
|
|
888
|
-
throw new Error("The ".concat(ariaKey, " option is not found in the current locale('").concat(_locale, "')."));
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
function localeOptions(locale) {
|
|
892
|
-
var _locale = locale || PrimeReact.locale;
|
|
893
|
-
return locales[_locale];
|
|
894
|
-
}
|
|
895
|
-
|
|
896
896
|
var RowsPerPageDropdown = /*#__PURE__*/React.memo(function (inProps) {
|
|
897
897
|
useMergeProps();
|
|
898
898
|
var context = React.useContext(PrimeReactContext);
|
|
@@ -905,7 +905,7 @@ var RowsPerPageDropdown = /*#__PURE__*/React.memo(function (inProps) {
|
|
|
905
905
|
};
|
|
906
906
|
}) : [];
|
|
907
907
|
var placeholderValue = localeOption('choose');
|
|
908
|
-
var ariaLabelValue = ariaLabel
|
|
908
|
+
var ariaLabelValue = ariaLabel('jumpToPageDropdownLabel');
|
|
909
909
|
var element = hasOptions ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Dropdown, {
|
|
910
910
|
value: props.value,
|
|
911
911
|
options: options,
|