primereact 10.4.0 → 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/calendar/calendar.cjs.js +12 -4
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +12 -4
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +12 -4
- package/calendar/calendar.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 +109 -20
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +109 -20
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +109 -20
- package/chips/chips.min.js +1 -1
- package/core/core.js +643 -465
- package/core/core.min.js +4 -4
- package/dropdown/dropdown.cjs.js +313 -141
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +313 -141
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +313 -141
- package/dropdown/dropdown.min.js +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/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 +2 -1
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +2 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +3 -3
- 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 +1473 -485
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +1473 -485
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +1473 -485
- 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/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/splitter/splitter.cjs.js +16 -15
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +16 -15
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +16 -15
- 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/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/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 +1 -1
package/core/core.js
CHANGED
|
@@ -28209,6 +28209,8 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
28209
28209
|
onClick: function onClick(e) {
|
|
28210
28210
|
return _onClick(e);
|
|
28211
28211
|
},
|
|
28212
|
+
'data-p-highlight': checked,
|
|
28213
|
+
'data-p-disabled': props.disabled,
|
|
28212
28214
|
onContextMenu: props.onContextMenu,
|
|
28213
28215
|
onMouseDown: props.onMouseDown
|
|
28214
28216
|
}, otherProps, ptm('root'));
|
|
@@ -29322,36 +29324,36 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
29322
29324
|
if (event.altKey) {
|
|
29323
29325
|
event.preventDefault();
|
|
29324
29326
|
}
|
|
29325
|
-
switch (event.
|
|
29327
|
+
switch (event.code) {
|
|
29326
29328
|
//up
|
|
29327
|
-
case
|
|
29329
|
+
case 'ArrowUp':
|
|
29328
29330
|
spin(event, 1);
|
|
29329
29331
|
event.preventDefault();
|
|
29330
29332
|
break;
|
|
29331
29333
|
|
|
29332
29334
|
//down
|
|
29333
|
-
case
|
|
29335
|
+
case 'ArrowDown':
|
|
29334
29336
|
spin(event, -1);
|
|
29335
29337
|
event.preventDefault();
|
|
29336
29338
|
break;
|
|
29337
29339
|
|
|
29338
29340
|
//left
|
|
29339
|
-
case
|
|
29341
|
+
case 'ArrowLeft':
|
|
29340
29342
|
if (!isNumeralChar(inputValue.charAt(selectionStart - 1))) {
|
|
29341
29343
|
event.preventDefault();
|
|
29342
29344
|
}
|
|
29343
29345
|
break;
|
|
29344
29346
|
|
|
29345
29347
|
//right
|
|
29346
|
-
case
|
|
29348
|
+
case 'ArrowRight':
|
|
29347
29349
|
if (!isNumeralChar(inputValue.charAt(selectionStart))) {
|
|
29348
29350
|
event.preventDefault();
|
|
29349
29351
|
}
|
|
29350
29352
|
break;
|
|
29351
29353
|
|
|
29352
29354
|
//enter and tab
|
|
29353
|
-
case
|
|
29354
|
-
case
|
|
29355
|
+
case 'Tab':
|
|
29356
|
+
case 'Enter':
|
|
29355
29357
|
newValueStr = validateValue(parseValue(inputValue));
|
|
29356
29358
|
inputRef.current.value = formatValue(newValueStr);
|
|
29357
29359
|
inputRef.current.setAttribute('aria-valuenow', newValueStr);
|
|
@@ -29359,7 +29361,7 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
29359
29361
|
break;
|
|
29360
29362
|
|
|
29361
29363
|
//backspace
|
|
29362
|
-
case
|
|
29364
|
+
case 'Backspace':
|
|
29363
29365
|
event.preventDefault();
|
|
29364
29366
|
if (selectionStart === selectionEnd) {
|
|
29365
29367
|
var deleteChar = inputValue.charAt(selectionStart - 1);
|
|
@@ -29403,7 +29405,7 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
29403
29405
|
break;
|
|
29404
29406
|
|
|
29405
29407
|
// del
|
|
29406
|
-
case
|
|
29408
|
+
case 'Delete':
|
|
29407
29409
|
event.preventDefault();
|
|
29408
29410
|
if (selectionStart === selectionEnd) {
|
|
29409
29411
|
var _deleteChar = inputValue.charAt(selectionStart);
|
|
@@ -29438,14 +29440,18 @@ this.primereact.inputnumber = (function (exports, React, PrimeReact, componentba
|
|
|
29438
29440
|
updateValue(event, newValueStr, null, 'delete-range');
|
|
29439
29441
|
}
|
|
29440
29442
|
break;
|
|
29441
|
-
|
|
29442
|
-
|
|
29443
|
-
|
|
29444
|
-
|
|
29445
|
-
|
|
29446
|
-
|
|
29447
|
-
|
|
29448
|
-
|
|
29443
|
+
case 'End':
|
|
29444
|
+
event.preventDefault();
|
|
29445
|
+
if (!utils.ObjectUtils.isEmpty(props.max)) {
|
|
29446
|
+
updateModel(event, props.max);
|
|
29447
|
+
}
|
|
29448
|
+
break;
|
|
29449
|
+
case 'Home':
|
|
29450
|
+
event.preventDefault();
|
|
29451
|
+
if (!utils.ObjectUtils.isEmpty(props.min)) {
|
|
29452
|
+
updateModel(event, props.min);
|
|
29453
|
+
}
|
|
29454
|
+
break;
|
|
29449
29455
|
}
|
|
29450
29456
|
};
|
|
29451
29457
|
var onInputKeyUp = function onInputKeyUp(event) {
|
|
@@ -30955,10 +30961,13 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
30955
30961
|
item: function item(_ref7) {
|
|
30956
30962
|
var selected = _ref7.selected,
|
|
30957
30963
|
disabled = _ref7.disabled,
|
|
30958
|
-
label = _ref7.label
|
|
30964
|
+
label = _ref7.label,
|
|
30965
|
+
index = _ref7.index,
|
|
30966
|
+
focusedOptionIndex = _ref7.focusedOptionIndex;
|
|
30959
30967
|
return utils.classNames('p-dropdown-item', {
|
|
30960
30968
|
'p-highlight': selected,
|
|
30961
30969
|
'p-disabled': disabled,
|
|
30970
|
+
'p-focus': index === focusedOptionIndex,
|
|
30962
30971
|
'p-dropdown-item-empty': !label || label.length === 0
|
|
30963
30972
|
});
|
|
30964
30973
|
},
|
|
@@ -31025,6 +31034,8 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31025
31034
|
onShow: null,
|
|
31026
31035
|
optionDisabled: null,
|
|
31027
31036
|
optionGroupChildren: 'items',
|
|
31037
|
+
selectOnFocus: false,
|
|
31038
|
+
autoOptionFocus: false,
|
|
31028
31039
|
optionGroupLabel: null,
|
|
31029
31040
|
optionGroupTemplate: null,
|
|
31030
31041
|
optionLabel: null,
|
|
@@ -31063,7 +31074,9 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31063
31074
|
selected = props.selected,
|
|
31064
31075
|
disabled = props.disabled,
|
|
31065
31076
|
option = props.option,
|
|
31066
|
-
label = props.label
|
|
31077
|
+
label = props.label,
|
|
31078
|
+
index = props.index,
|
|
31079
|
+
focusedOptionIndex = props.focusedOptionIndex;
|
|
31067
31080
|
var getPTOptions = function getPTOptions(key) {
|
|
31068
31081
|
return ptm(key, {
|
|
31069
31082
|
context: {
|
|
@@ -31072,7 +31085,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31072
31085
|
}
|
|
31073
31086
|
});
|
|
31074
31087
|
};
|
|
31075
|
-
var _onClick = function onClick(event) {
|
|
31088
|
+
var _onClick = function onClick(event, i) {
|
|
31076
31089
|
if (props.onClick) {
|
|
31077
31090
|
props.onClick({
|
|
31078
31091
|
originalEvent: event,
|
|
@@ -31087,7 +31100,9 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31087
31100
|
className: utils.classNames(option.className, cx('item', {
|
|
31088
31101
|
selected: selected,
|
|
31089
31102
|
disabled: disabled,
|
|
31090
|
-
label: label
|
|
31103
|
+
label: label,
|
|
31104
|
+
index: index,
|
|
31105
|
+
focusedOptionIndex: focusedOptionIndex
|
|
31091
31106
|
})),
|
|
31092
31107
|
style: props.style,
|
|
31093
31108
|
onClick: function onClick(e) {
|
|
@@ -31096,6 +31111,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31096
31111
|
'aria-label': label,
|
|
31097
31112
|
'aria-selected': selected,
|
|
31098
31113
|
'data-p-highlight': selected,
|
|
31114
|
+
'data-p-focused': focusedOptionIndex === index,
|
|
31099
31115
|
'data-p-disabled': disabled
|
|
31100
31116
|
}, getPTOptions('item'));
|
|
31101
31117
|
return /*#__PURE__*/React__namespace.createElement("li", itemProps, content, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
@@ -31167,6 +31183,8 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31167
31183
|
var disabled = props.isOptionDisabled(option);
|
|
31168
31184
|
return /*#__PURE__*/React__namespace.createElement(DropdownItem, {
|
|
31169
31185
|
key: optionKey,
|
|
31186
|
+
index: j,
|
|
31187
|
+
focusedOptionIndex: props.focusedOptionIndex,
|
|
31170
31188
|
label: optionLabel,
|
|
31171
31189
|
option: option,
|
|
31172
31190
|
style: style,
|
|
@@ -31214,6 +31232,8 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31214
31232
|
return /*#__PURE__*/React__namespace.createElement(DropdownItem, {
|
|
31215
31233
|
key: optionKey,
|
|
31216
31234
|
label: optionLabel,
|
|
31235
|
+
index: index,
|
|
31236
|
+
focusedOptionIndex: props.focusedOptionIndex,
|
|
31217
31237
|
option: option,
|
|
31218
31238
|
style: style,
|
|
31219
31239
|
template: props.itemTemplate,
|
|
@@ -31406,20 +31426,30 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31406
31426
|
setFilterState = _React$useState2[1];
|
|
31407
31427
|
var _React$useState3 = React__namespace.useState(false),
|
|
31408
31428
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
31409
|
-
|
|
31410
|
-
|
|
31429
|
+
clicked = _React$useState4[0],
|
|
31430
|
+
setClicked = _React$useState4[1];
|
|
31411
31431
|
var _React$useState5 = React__namespace.useState(false),
|
|
31412
31432
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
31413
|
-
|
|
31414
|
-
|
|
31433
|
+
focusedState = _React$useState6[0],
|
|
31434
|
+
setFocusedState = _React$useState6[1];
|
|
31435
|
+
var _React$useState7 = React__namespace.useState(null),
|
|
31436
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
31437
|
+
focusedOptionIndex = _React$useState8[0],
|
|
31438
|
+
setFocusedOptionIndex = _React$useState8[1];
|
|
31439
|
+
var _React$useState9 = React__namespace.useState(false),
|
|
31440
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
31441
|
+
overlayVisibleState = _React$useState10[0],
|
|
31442
|
+
setOverlayVisibleState = _React$useState10[1];
|
|
31415
31443
|
var elementRef = React__namespace.useRef(null);
|
|
31416
31444
|
var overlayRef = React__namespace.useRef(null);
|
|
31445
|
+
var firstHiddenFocusableElementOnOverlay = React__namespace.useRef(null);
|
|
31446
|
+
var lastHiddenFocusableElementOnOverlay = React__namespace.useRef(null);
|
|
31417
31447
|
var inputRef = React__namespace.useRef(props.inputRef);
|
|
31418
31448
|
var focusInputRef = React__namespace.useRef(props.focusInputRef);
|
|
31419
31449
|
var virtualScrollerRef = React__namespace.useRef(null);
|
|
31420
31450
|
var searchTimeout = React__namespace.useRef(null);
|
|
31421
31451
|
var searchValue = React__namespace.useRef(null);
|
|
31422
|
-
|
|
31452
|
+
React__namespace.useRef(null);
|
|
31423
31453
|
var isLazy = props.virtualScrollerOptions && props.virtualScrollerOptions.lazy;
|
|
31424
31454
|
var hasFilter = utils.ObjectUtils.isNotEmpty(filterState);
|
|
31425
31455
|
var appendTo = props.appendTo || context && context.appendTo || PrimeReact__default["default"].appendTo;
|
|
@@ -31483,6 +31513,14 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31483
31513
|
return props.options;
|
|
31484
31514
|
}
|
|
31485
31515
|
};
|
|
31516
|
+
var onFirstHiddenFocus = function onFirstHiddenFocus(event) {
|
|
31517
|
+
var focusableEl = event.relatedTarget === focusInputRef.current ? utils.DomHandler.getFirstFocusableElement(overlayRef.current, ':not([data-p-hidden-focusable="true"])') : focusInputRef.current;
|
|
31518
|
+
utils.DomHandler.focus(focusableEl);
|
|
31519
|
+
};
|
|
31520
|
+
var onLastHiddenFocus = function onLastHiddenFocus(event) {
|
|
31521
|
+
var focusableEl = event.relatedTarget === focusInputRef.current ? utils.DomHandler.getLastFocusableElement(overlayRef.current, ':not([data-p-hidden-focusable="true"])') : focusInputRef.current;
|
|
31522
|
+
utils.DomHandler.focus(focusableEl);
|
|
31523
|
+
};
|
|
31486
31524
|
var isClearClicked = function isClearClicked(event) {
|
|
31487
31525
|
return utils.DomHandler.isAttributeEquals(event.target, 'data-pc-section', 'clearicon') || utils.DomHandler.isAttributeEquals(event.target.parentElement || event.target, 'data-pc-section', 'filterclearicon');
|
|
31488
31526
|
};
|
|
@@ -31502,6 +31540,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31502
31540
|
utils.DomHandler.focus(focusInputRef.current);
|
|
31503
31541
|
overlayVisibleState ? hide() : show();
|
|
31504
31542
|
}
|
|
31543
|
+
setClicked(true);
|
|
31505
31544
|
};
|
|
31506
31545
|
var onInputFocus = function onInputFocus(event) {
|
|
31507
31546
|
if (props.showOnFocus && !overlayVisibleState) {
|
|
@@ -31533,6 +31572,15 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31533
31572
|
}, 200);
|
|
31534
31573
|
}
|
|
31535
31574
|
};
|
|
31575
|
+
var onOptionSelect = function onOptionSelect(event, option) {
|
|
31576
|
+
var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
31577
|
+
var value = getOptionValue(option);
|
|
31578
|
+
selectItem({
|
|
31579
|
+
originalEvent: event,
|
|
31580
|
+
option: value
|
|
31581
|
+
});
|
|
31582
|
+
isHide && hide();
|
|
31583
|
+
};
|
|
31536
31584
|
var onPanelClick = function onPanelClick(event) {
|
|
31537
31585
|
overlayservice.OverlayService.emit('overlay-click', {
|
|
31538
31586
|
originalEvent: event,
|
|
@@ -31540,189 +31588,285 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31540
31588
|
});
|
|
31541
31589
|
};
|
|
31542
31590
|
var onInputKeyDown = function onInputKeyDown(event) {
|
|
31591
|
+
if (props.disabled || utils.DomHandler.isAndroid()) {
|
|
31592
|
+
event.preventDefault();
|
|
31593
|
+
return;
|
|
31594
|
+
}
|
|
31595
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
31543
31596
|
switch (event.code) {
|
|
31544
31597
|
case 'ArrowDown':
|
|
31545
|
-
|
|
31598
|
+
onArrowDownKey(event);
|
|
31546
31599
|
break;
|
|
31547
31600
|
case 'ArrowUp':
|
|
31548
|
-
|
|
31601
|
+
onArrowUpKey(event);
|
|
31602
|
+
break;
|
|
31603
|
+
case 'ArrowLeft':
|
|
31604
|
+
case 'ArrowRight':
|
|
31605
|
+
onArrowLeftKey(event, props.editable);
|
|
31606
|
+
break;
|
|
31607
|
+
case 'Home':
|
|
31608
|
+
onHomeKey(event);
|
|
31609
|
+
break;
|
|
31610
|
+
case 'End':
|
|
31611
|
+
onEndKey(event);
|
|
31612
|
+
break;
|
|
31613
|
+
case 'PageDown':
|
|
31614
|
+
onPageDownKey(event);
|
|
31615
|
+
break;
|
|
31616
|
+
case 'PageUp':
|
|
31617
|
+
onPageUpKey(event);
|
|
31549
31618
|
break;
|
|
31550
31619
|
case 'Space':
|
|
31620
|
+
onSpaceKey(event, props.editable);
|
|
31621
|
+
break;
|
|
31622
|
+
case 'NumpadEnter':
|
|
31551
31623
|
case 'Enter':
|
|
31552
|
-
|
|
31553
|
-
event.preventDefault();
|
|
31624
|
+
onEnterKey(event);
|
|
31554
31625
|
break;
|
|
31555
31626
|
case 'Escape':
|
|
31627
|
+
onEscapeKey(event);
|
|
31628
|
+
break;
|
|
31556
31629
|
case 'Tab':
|
|
31557
|
-
|
|
31630
|
+
onTabKey(event);
|
|
31631
|
+
break;
|
|
31632
|
+
case 'Backspace':
|
|
31633
|
+
onBackspaceKey(event, props.editable);
|
|
31634
|
+
break;
|
|
31635
|
+
case 'ShiftLeft':
|
|
31636
|
+
case 'ShiftRight':
|
|
31637
|
+
//NOOP
|
|
31558
31638
|
break;
|
|
31559
31639
|
default:
|
|
31560
|
-
|
|
31640
|
+
if (!metaKey && utils.ObjectUtils.isPrintableCharacter(event.key)) {
|
|
31641
|
+
!overlayVisibleState && show();
|
|
31642
|
+
!props.editable && searchOptions(event, event.key);
|
|
31643
|
+
}
|
|
31561
31644
|
break;
|
|
31562
31645
|
}
|
|
31646
|
+
setClicked(false);
|
|
31563
31647
|
};
|
|
31564
31648
|
var onFilterInputKeyDown = function onFilterInputKeyDown(event) {
|
|
31565
31649
|
switch (event.code) {
|
|
31566
31650
|
case 'ArrowDown':
|
|
31567
|
-
|
|
31651
|
+
onArrowDownKey(event);
|
|
31568
31652
|
break;
|
|
31569
31653
|
case 'ArrowUp':
|
|
31570
|
-
|
|
31654
|
+
onArrowUpKey(event);
|
|
31655
|
+
break;
|
|
31656
|
+
case 'ArrowLeft':
|
|
31657
|
+
case 'ArrowRight':
|
|
31658
|
+
onArrowLeftKey(event, true);
|
|
31571
31659
|
break;
|
|
31572
31660
|
case 'Escape':
|
|
31573
31661
|
case 'Enter':
|
|
31574
|
-
|
|
31662
|
+
onEnterKey(event);
|
|
31575
31663
|
event.preventDefault();
|
|
31576
31664
|
break;
|
|
31577
31665
|
}
|
|
31578
31666
|
};
|
|
31579
|
-
var
|
|
31580
|
-
|
|
31581
|
-
var prevOption = findPrevOption(getSelectedOptionIndex());
|
|
31582
|
-
if (prevOption) {
|
|
31583
|
-
selectItem({
|
|
31584
|
-
originalEvent: event,
|
|
31585
|
-
option: prevOption
|
|
31586
|
-
});
|
|
31587
|
-
}
|
|
31588
|
-
}
|
|
31589
|
-
event.preventDefault();
|
|
31667
|
+
var hasFocusableElements = function hasFocusableElements() {
|
|
31668
|
+
return utils.DomHandler.getFocusableElements(overlayRef.current, ':not([data-p-hidden-focusable="true"])').length > 0;
|
|
31590
31669
|
};
|
|
31591
|
-
var
|
|
31592
|
-
|
|
31593
|
-
|
|
31594
|
-
show();
|
|
31595
|
-
} else {
|
|
31596
|
-
var nextOption = findNextOption(getSelectedOptionIndex());
|
|
31597
|
-
if (nextOption) {
|
|
31598
|
-
selectItem({
|
|
31599
|
-
originalEvent: event,
|
|
31600
|
-
option: nextOption
|
|
31601
|
-
});
|
|
31602
|
-
}
|
|
31603
|
-
}
|
|
31604
|
-
}
|
|
31605
|
-
event.preventDefault();
|
|
31670
|
+
var isOptionMatched = function isOptionMatched(option) {
|
|
31671
|
+
var _getOptionLabel;
|
|
31672
|
+
return isValidOption(option) && ((_getOptionLabel = getOptionLabel(option)) === null || _getOptionLabel === void 0 ? void 0 : _getOptionLabel.toLocaleLowerCase(props.filterLocale).startsWith(searchValue.current.toLocaleLowerCase(props.filterLocale)));
|
|
31606
31673
|
};
|
|
31607
|
-
var
|
|
31608
|
-
|
|
31609
|
-
var groupIndex = index === -1 ? 0 : index.group;
|
|
31610
|
-
var optionIndex = index === -1 ? -1 : index.option;
|
|
31611
|
-
var option = findNextOptionInList(getOptionGroupChildren(visibleOptions[groupIndex]), optionIndex);
|
|
31612
|
-
if (option) return option;else if (groupIndex + 1 !== visibleOptions.length) return findNextOption({
|
|
31613
|
-
group: groupIndex + 1,
|
|
31614
|
-
option: -1
|
|
31615
|
-
});else return null;
|
|
31616
|
-
}
|
|
31617
|
-
return findNextOptionInList(visibleOptions, index);
|
|
31618
|
-
};
|
|
31619
|
-
var findNextOptionInList = function findNextOptionInList(list, index) {
|
|
31620
|
-
var i = index + 1;
|
|
31621
|
-
if (i === list.length) {
|
|
31622
|
-
return null;
|
|
31623
|
-
}
|
|
31624
|
-
var option = list[i];
|
|
31625
|
-
return isOptionDisabled(option) ? findNextOptionInList(i) : option;
|
|
31674
|
+
var isValidOption = function isValidOption(option) {
|
|
31675
|
+
return utils.ObjectUtils.isNotEmpty(option) && !(isOptionDisabled(option) || isOptionGroup(option));
|
|
31626
31676
|
};
|
|
31627
|
-
var
|
|
31628
|
-
|
|
31629
|
-
return null;
|
|
31630
|
-
}
|
|
31631
|
-
if (props.optionGroupLabel) {
|
|
31632
|
-
var groupIndex = index.group;
|
|
31633
|
-
var optionIndex = index.option;
|
|
31634
|
-
var option = findPrevOptionInList(getOptionGroupChildren(visibleOptions[groupIndex]), optionIndex);
|
|
31635
|
-
if (option) return option;else if (groupIndex > 0) return findPrevOption({
|
|
31636
|
-
group: groupIndex - 1,
|
|
31637
|
-
option: getOptionGroupChildren(visibleOptions[groupIndex - 1]).length
|
|
31638
|
-
});else return null;
|
|
31639
|
-
}
|
|
31640
|
-
return findPrevOptionInList(visibleOptions, index);
|
|
31641
|
-
};
|
|
31642
|
-
var findPrevOptionInList = function findPrevOptionInList(list, index) {
|
|
31643
|
-
var i = index - 1;
|
|
31644
|
-
if (i < 0) {
|
|
31645
|
-
return null;
|
|
31646
|
-
}
|
|
31647
|
-
var option = list[i];
|
|
31648
|
-
return isOptionDisabled(option) ? findPrevOption(i) : option;
|
|
31677
|
+
var hasSelectedOption = function hasSelectedOption() {
|
|
31678
|
+
return utils.ObjectUtils.isNotEmpty(props.value);
|
|
31649
31679
|
};
|
|
31650
|
-
var
|
|
31680
|
+
var isValidSelectedOption = function isValidSelectedOption(option) {
|
|
31681
|
+
return isValidOption(option) && isSelected(option);
|
|
31682
|
+
};
|
|
31683
|
+
var findSelectedOptionIndex = function findSelectedOptionIndex() {
|
|
31684
|
+
return hasSelectedOption ? visibleOptions.findIndex(function (option) {
|
|
31685
|
+
return isValidSelectedOption(option);
|
|
31686
|
+
}) : -1;
|
|
31687
|
+
};
|
|
31688
|
+
var findFirstFocusedOptionIndex = function findFirstFocusedOptionIndex() {
|
|
31689
|
+
var selectedIndex = findSelectedOptionIndex();
|
|
31690
|
+
return selectedIndex < 0 ? findFirstOptionIndex() : selectedIndex;
|
|
31691
|
+
};
|
|
31692
|
+
var searchOptions = function searchOptions(event, _char) {
|
|
31693
|
+
searchValue.current = (searchValue.current || '') + _char;
|
|
31694
|
+
var optionIndex = -1;
|
|
31695
|
+
var matched = false;
|
|
31696
|
+
if (utils.ObjectUtils.isNotEmpty(searchValue.current)) {
|
|
31697
|
+
if (focusedOptionIndex !== -1) {
|
|
31698
|
+
optionIndex = visibleOptions.slice(focusedOptionIndex).findIndex(function (option) {
|
|
31699
|
+
return isOptionMatched(option);
|
|
31700
|
+
});
|
|
31701
|
+
optionIndex = optionIndex === -1 ? visibleOptions.slice(0, focusedOptionIndex).findIndex(function (option) {
|
|
31702
|
+
return isOptionMatched(option);
|
|
31703
|
+
}) : optionIndex + focusedOptionIndex;
|
|
31704
|
+
} else {
|
|
31705
|
+
optionIndex = visibleOptions.findIndex(function (option) {
|
|
31706
|
+
return isOptionMatched(option);
|
|
31707
|
+
});
|
|
31708
|
+
}
|
|
31709
|
+
if (optionIndex !== -1) {
|
|
31710
|
+
matched = true;
|
|
31711
|
+
}
|
|
31712
|
+
if (optionIndex === -1 && focusedOptionIndex === -1) {
|
|
31713
|
+
optionIndex = findFirstFocusedOptionIndex();
|
|
31714
|
+
}
|
|
31715
|
+
if (optionIndex !== -1) {
|
|
31716
|
+
changeFocusedOptionIndex(event, optionIndex);
|
|
31717
|
+
}
|
|
31718
|
+
}
|
|
31651
31719
|
if (searchTimeout.current) {
|
|
31652
31720
|
clearTimeout(searchTimeout.current);
|
|
31653
31721
|
}
|
|
31654
|
-
|
|
31655
|
-
|
|
31656
|
-
|
|
31722
|
+
searchTimeout.current = setTimeout(function () {
|
|
31723
|
+
searchValue.current = '';
|
|
31724
|
+
searchTimeout.current = null;
|
|
31725
|
+
}, 500);
|
|
31726
|
+
return matched;
|
|
31727
|
+
};
|
|
31728
|
+
var findLastFocusedOptionIndex = function findLastFocusedOptionIndex() {
|
|
31729
|
+
var selectedIndex = findSelectedOptionIndex();
|
|
31730
|
+
return selectedIndex < 0 ? findLastOptionIndex() : selectedIndex;
|
|
31731
|
+
};
|
|
31732
|
+
var findFirstOptionIndex = function findFirstOptionIndex() {
|
|
31733
|
+
return visibleOptions.findIndex(function (option) {
|
|
31734
|
+
return isValidOption(option);
|
|
31735
|
+
});
|
|
31736
|
+
};
|
|
31737
|
+
var findLastOptionIndex = function findLastOptionIndex() {
|
|
31738
|
+
return utils.ObjectUtils.findLastIndex(visibleOptions, function (option) {
|
|
31739
|
+
return isValidOption(option);
|
|
31740
|
+
});
|
|
31741
|
+
};
|
|
31742
|
+
var findNextOptionIndex = function findNextOptionIndex(index) {
|
|
31743
|
+
var matchedOptionIndex = index < visibleOptions.length - 1 ? visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
31744
|
+
return isValidOption(option);
|
|
31745
|
+
}) : -1;
|
|
31746
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
31747
|
+
};
|
|
31748
|
+
var findPrevOptionIndex = function findPrevOptionIndex(index) {
|
|
31749
|
+
var matchedOptionIndex = index > 0 ? utils.ObjectUtils.findLastIndex(visibleOptions.slice(0, index), function (option) {
|
|
31750
|
+
return isValidOption(option);
|
|
31751
|
+
}) : -1;
|
|
31752
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
31753
|
+
};
|
|
31754
|
+
var changeFocusedOptionIndex = function changeFocusedOptionIndex(event, index) {
|
|
31755
|
+
if (focusedOptionIndex !== index) {
|
|
31756
|
+
setFocusedOptionIndex(index);
|
|
31757
|
+
if (props.selectOnFocus) {
|
|
31758
|
+
onOptionSelect(event, visibleOptions[index], false);
|
|
31759
|
+
}
|
|
31657
31760
|
}
|
|
31658
|
-
|
|
31659
|
-
|
|
31660
|
-
|
|
31661
|
-
|
|
31761
|
+
};
|
|
31762
|
+
var onArrowDownKey = function onArrowDownKey(event) {
|
|
31763
|
+
if (!overlayVisibleState) {
|
|
31764
|
+
show();
|
|
31765
|
+
props.editable && changeFocusedOptionIndex(event, findSelectedOptionIndex());
|
|
31766
|
+
} else {
|
|
31767
|
+
var optionIndex = focusedOptionIndex !== -1 ? findNextOptionIndex(focusedOptionIndex) : clicked ? findFirstOptionIndex() : findFirstFocusedOptionIndex();
|
|
31768
|
+
changeFocusedOptionIndex(event, optionIndex);
|
|
31662
31769
|
}
|
|
31663
|
-
|
|
31664
|
-
|
|
31665
|
-
|
|
31666
|
-
|
|
31667
|
-
|
|
31668
|
-
if (
|
|
31669
|
-
|
|
31670
|
-
originalEvent: event,
|
|
31671
|
-
option: newOption
|
|
31672
|
-
});
|
|
31770
|
+
event.preventDefault();
|
|
31771
|
+
};
|
|
31772
|
+
var onArrowUpKey = function onArrowUpKey(event) {
|
|
31773
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
31774
|
+
if (event.altKey && !pressedInInputText) {
|
|
31775
|
+
if (focusedOptionIndex !== -1) {
|
|
31776
|
+
onOptionSelect(event, visibleOptions[focusedOptionIndex]);
|
|
31673
31777
|
}
|
|
31778
|
+
state.overlayVisible && hide();
|
|
31779
|
+
event.preventDefault();
|
|
31780
|
+
} else {
|
|
31781
|
+
var optionIndex = focusedOptionIndex !== -1 ? findPrevOptionIndex(focusedOptionIndex) : clicked ? findLastOptionIndex() : findLastFocusedOptionIndex();
|
|
31782
|
+
changeFocusedOptionIndex(event, optionIndex);
|
|
31783
|
+
!overlayVisibleState && show();
|
|
31784
|
+
event.preventDefault();
|
|
31674
31785
|
}
|
|
31675
|
-
searchTimeout.current = setTimeout(function () {
|
|
31676
|
-
searchValue.current = null;
|
|
31677
|
-
}, 250);
|
|
31678
31786
|
};
|
|
31679
|
-
var
|
|
31680
|
-
|
|
31681
|
-
|
|
31787
|
+
var onArrowLeftKey = function onArrowLeftKey(event) {
|
|
31788
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
31789
|
+
pressedInInputText && setFocusedOptionIndex(-1);
|
|
31790
|
+
};
|
|
31791
|
+
var onHomeKey = function onHomeKey(event) {
|
|
31792
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
31793
|
+
if (pressedInInputText) {
|
|
31794
|
+
event.currentTarget.setSelectionRange(0, 0);
|
|
31795
|
+
setFocusedOptionIndex(-1);
|
|
31796
|
+
} else {
|
|
31797
|
+
changeFocusedOptionIndex(event, findFirstOptionIndex());
|
|
31798
|
+
!overlayVisibleState && show();
|
|
31682
31799
|
}
|
|
31683
|
-
|
|
31800
|
+
event.preventDefault();
|
|
31684
31801
|
};
|
|
31685
|
-
var
|
|
31686
|
-
|
|
31687
|
-
|
|
31688
|
-
|
|
31689
|
-
|
|
31690
|
-
|
|
31802
|
+
var onEndKey = function onEndKey(event) {
|
|
31803
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
31804
|
+
if (pressedInInputText) {
|
|
31805
|
+
var target = event.currentTarget;
|
|
31806
|
+
var len = target.value.length;
|
|
31807
|
+
target.setSelectionRange(len, len);
|
|
31808
|
+
setFocusedOptionIndex(-1);
|
|
31809
|
+
} else {
|
|
31810
|
+
changeFocusedOptionIndex(event, findLastOptionIndex());
|
|
31811
|
+
!overlayVisibleState && show();
|
|
31691
31812
|
}
|
|
31692
|
-
|
|
31813
|
+
event.preventDefault();
|
|
31693
31814
|
};
|
|
31694
|
-
var
|
|
31695
|
-
|
|
31696
|
-
|
|
31697
|
-
|
|
31698
|
-
|
|
31699
|
-
|
|
31700
|
-
|
|
31701
|
-
|
|
31702
|
-
|
|
31703
|
-
|
|
31704
|
-
|
|
31815
|
+
var onPageUpKey = function onPageUpKey(event) {
|
|
31816
|
+
event.preventDefault();
|
|
31817
|
+
};
|
|
31818
|
+
var onPageDownKey = function onPageDownKey(event) {
|
|
31819
|
+
event.preventDefault();
|
|
31820
|
+
};
|
|
31821
|
+
var onSpaceKey = function onSpaceKey(event) {
|
|
31822
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
31823
|
+
!pressedInInputText && onEnterKey(event);
|
|
31824
|
+
};
|
|
31825
|
+
var onEnterKey = function onEnterKey(event) {
|
|
31826
|
+
if (!overlayVisibleState) {
|
|
31827
|
+
setFocusedOptionIndex(-1);
|
|
31828
|
+
onArrowDownKey(event);
|
|
31829
|
+
} else {
|
|
31830
|
+
if (focusedOptionIndex !== -1) {
|
|
31831
|
+
onOptionSelect(event, visibleOptions[focusedOptionIndex]);
|
|
31705
31832
|
}
|
|
31833
|
+
hide();
|
|
31706
31834
|
}
|
|
31707
|
-
|
|
31708
|
-
|
|
31709
|
-
|
|
31710
|
-
|
|
31711
|
-
|
|
31835
|
+
event.preventDefault();
|
|
31836
|
+
};
|
|
31837
|
+
var onEscapeKey = function onEscapeKey(event) {
|
|
31838
|
+
overlayVisibleState && hide();
|
|
31839
|
+
event.preventDefault();
|
|
31840
|
+
};
|
|
31841
|
+
var onTabKey = function onTabKey(event) {
|
|
31842
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
31843
|
+
if (!pressedInInputText) {
|
|
31844
|
+
if (overlayVisibleState && hasFocusableElements()) {
|
|
31845
|
+
utils.DomHandler.focus($refs.firstHiddenFocusableElementOnOverlay);
|
|
31846
|
+
event.preventDefault();
|
|
31847
|
+
} else {
|
|
31848
|
+
if (focusedOptionIndex !== -1) {
|
|
31849
|
+
onOptionSelect(event, visibleOptions[focusedOptionIndex]);
|
|
31712
31850
|
}
|
|
31851
|
+
overlayVisibleState && hide();
|
|
31713
31852
|
}
|
|
31714
31853
|
}
|
|
31715
|
-
return null;
|
|
31716
31854
|
};
|
|
31717
|
-
var
|
|
31718
|
-
var
|
|
31719
|
-
if (
|
|
31720
|
-
|
|
31855
|
+
var onBackspaceKey = function onBackspaceKey(event) {
|
|
31856
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
31857
|
+
if (pressedInInputText) {
|
|
31858
|
+
!overlayVisibleState && show();
|
|
31721
31859
|
}
|
|
31722
|
-
label = label.toLocaleLowerCase(props.filterLocale);
|
|
31723
|
-
return label.startsWith(searchValue.current.toLocaleLowerCase(props.filterLocale));
|
|
31724
31860
|
};
|
|
31725
31861
|
var onEditableInputChange = function onEditableInputChange(event) {
|
|
31862
|
+
!overlayVisibleState && show();
|
|
31863
|
+
var searchIndex = null;
|
|
31864
|
+
if (event.target.value) {
|
|
31865
|
+
searchIndex = visibleOptions.findIndex(function (item) {
|
|
31866
|
+
return item.name.toLocaleLowerCase().startsWith(event.target.value.toLocaleLowerCase());
|
|
31867
|
+
});
|
|
31868
|
+
}
|
|
31869
|
+
setFocusedOptionIndex(searchIndex);
|
|
31726
31870
|
if (props.onChange) {
|
|
31727
31871
|
props.onChange({
|
|
31728
31872
|
originalEvent: event.originalEvent,
|
|
@@ -31852,10 +31996,17 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31852
31996
|
return utils.ObjectUtils.equals(props.value, getOptionValue(option), equalityKey());
|
|
31853
31997
|
};
|
|
31854
31998
|
var show = function show() {
|
|
31999
|
+
setFocusedOptionIndex(focusedOptionIndex !== -1 ? focusedOptionIndex : props.autoOptionFocus ? findFirstFocusedOptionIndex() : props.editable ? -1 : findSelectedOptionIndex());
|
|
31855
32000
|
setOverlayVisibleState(true);
|
|
31856
32001
|
};
|
|
31857
32002
|
var hide = function hide() {
|
|
31858
32003
|
setOverlayVisibleState(false);
|
|
32004
|
+
setClicked(false);
|
|
32005
|
+
};
|
|
32006
|
+
var onFocus = function onFocus() {
|
|
32007
|
+
if (props.editable) {
|
|
32008
|
+
utils.DomHandler.focus(inputRef.current);
|
|
32009
|
+
}
|
|
31859
32010
|
};
|
|
31860
32011
|
var onOverlayEnter = function onOverlayEnter(callback) {
|
|
31861
32012
|
utils.ZIndexUtils.set('overlay', overlayRef.current, context && context.autoZIndex || PrimeReact__default["default"].autoZIndex, context && context.zIndex['overlay'] || PrimeReact__default["default"].zIndex['overlay']);
|
|
@@ -31908,6 +32059,9 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
31908
32059
|
var getOptionRenderKey = function getOptionRenderKey(option) {
|
|
31909
32060
|
return props.dataKey ? utils.ObjectUtils.resolveFieldData(option, props.dataKey) : getOptionLabel(option);
|
|
31910
32061
|
};
|
|
32062
|
+
var isOptionGroup = function isOptionGroup(option) {
|
|
32063
|
+
return props.optionGroupLabel && option.optionGroup && option.group;
|
|
32064
|
+
};
|
|
31911
32065
|
var isOptionDisabled = function isOptionDisabled(option) {
|
|
31912
32066
|
if (props.optionDisabled) {
|
|
31913
32067
|
return utils.ObjectUtils.isFunction(props.optionDisabled) ? props.optionDisabled(option) : utils.ObjectUtils.resolveFieldData(option, props.optionDisabled);
|
|
@@ -32056,8 +32210,9 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
32056
32210
|
maxLength: props.maxLength,
|
|
32057
32211
|
onInput: onEditableInputChange,
|
|
32058
32212
|
onFocus: onEditableInputFocus,
|
|
32213
|
+
onKeyDown: onInputKeyDown,
|
|
32059
32214
|
onBlur: onInputBlur,
|
|
32060
|
-
tabIndex: props.tabIndex
|
|
32215
|
+
tabIndex: !props.disabled ? props.tabIndex : -1,
|
|
32061
32216
|
'aria-haspopup': 'listbox'
|
|
32062
32217
|
}, ariaProps), ptm('input'));
|
|
32063
32218
|
return /*#__PURE__*/React__namespace.createElement("input", inputProps);
|
|
@@ -32149,10 +32304,31 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
32149
32304
|
},
|
|
32150
32305
|
onMouseDown: props.onMouseDown,
|
|
32151
32306
|
onContextMenu: props.onContextMenu,
|
|
32307
|
+
onFocus: onFocus,
|
|
32152
32308
|
'data-p-disabled': props.disabled,
|
|
32153
32309
|
'data-p-focus': focusedState
|
|
32154
32310
|
}, otherProps, ptm('root'));
|
|
32155
|
-
|
|
32311
|
+
var firstHiddenFocusableElementProps = mergeProps({
|
|
32312
|
+
ref: firstHiddenFocusableElementOnOverlay,
|
|
32313
|
+
role: 'presentation',
|
|
32314
|
+
'aria-hidden': 'true',
|
|
32315
|
+
className: 'p-hidden-accessible p-hidden-focusable',
|
|
32316
|
+
tabIndex: '0',
|
|
32317
|
+
onFocus: onFirstHiddenFocus,
|
|
32318
|
+
'data-p-hidden-accessible': true,
|
|
32319
|
+
'data-p-hidden-focusable': true
|
|
32320
|
+
}, ptm('hiddenFirstFocusableEl'));
|
|
32321
|
+
var lastHiddenFocusableElementProps = mergeProps({
|
|
32322
|
+
ref: lastHiddenFocusableElementOnOverlay,
|
|
32323
|
+
role: 'presentation',
|
|
32324
|
+
'aria-hidden': 'true',
|
|
32325
|
+
className: 'p-hidden-accessible p-hidden-focusable',
|
|
32326
|
+
tabIndex: '0',
|
|
32327
|
+
onFocus: onLastHiddenFocus,
|
|
32328
|
+
'data-p-hidden-accessible': true,
|
|
32329
|
+
'data-p-hidden-focusable': true
|
|
32330
|
+
}, ptm('hiddenLastFocusableEl'));
|
|
32331
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", rootProps, keyboardHelper, hiddenSelect, labelElement, clearIcon, dropdownIcon, /*#__PURE__*/React__namespace.createElement("span", firstHiddenFocusableElementProps), /*#__PURE__*/React__namespace.createElement(DropdownPanel, _extends({
|
|
32156
32332
|
hostName: "Dropdown",
|
|
32157
32333
|
ref: overlayRef,
|
|
32158
32334
|
visibleOptions: visibleOptions,
|
|
@@ -32161,6 +32337,8 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
32161
32337
|
appendTo: appendTo,
|
|
32162
32338
|
onClick: onPanelClick,
|
|
32163
32339
|
onOptionClick: onOptionClick,
|
|
32340
|
+
focusedOptionIndex: focusedOptionIndex,
|
|
32341
|
+
setFocusedOptionIndex: setFocusedOptionIndex,
|
|
32164
32342
|
filterValue: filterState,
|
|
32165
32343
|
hasFilter: hasFilter,
|
|
32166
32344
|
onFilterClearIconClick: onFilterClearIconClick,
|
|
@@ -32183,7 +32361,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, componentbase,
|
|
|
32183
32361
|
ptm: ptm,
|
|
32184
32362
|
cx: cx,
|
|
32185
32363
|
sx: sx
|
|
32186
|
-
}))), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
32364
|
+
})), /*#__PURE__*/React__namespace.createElement("span", lastHiddenFocusableElementProps)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
32187
32365
|
target: elementRef,
|
|
32188
32366
|
content: props.tooltip
|
|
32189
32367
|
}, props.tooltipOptions, {
|
|
@@ -33530,312 +33708,29 @@ this.primereact.paginator = (function (exports, React, api, componentbase, hooks
|
|
|
33530
33708
|
});
|
|
33531
33709
|
FirstPageLink.displayName = 'FirstPageLink';
|
|
33532
33710
|
|
|
33533
|
-
|
|
33534
|
-
|
|
33535
|
-
|
|
33536
|
-
|
|
33537
|
-
|
|
33538
|
-
|
|
33539
|
-
|
|
33540
|
-
props.onChange(props.rows * (event.value - 1), props.rows);
|
|
33541
|
-
}
|
|
33542
|
-
};
|
|
33543
|
-
var value = props.pageCount > 0 ? props.page + 1 : 0;
|
|
33544
|
-
var element = /*#__PURE__*/React__namespace.createElement(inputnumber.InputNumber, {
|
|
33545
|
-
value: value,
|
|
33546
|
-
onChange: onChange,
|
|
33547
|
-
className: "p-paginator-page-input",
|
|
33548
|
-
disabled: props.disabled,
|
|
33549
|
-
pt: props.ptm('JTPInput'),
|
|
33550
|
-
unstyled: props.unstyled,
|
|
33551
|
-
__parentMetadata: {
|
|
33552
|
-
parent: props.metaData
|
|
33553
|
-
},
|
|
33554
|
-
"aria-label": ariaLabelValue
|
|
33555
|
-
});
|
|
33556
|
-
if (props.template) {
|
|
33557
|
-
var defaultOptions = {
|
|
33558
|
-
value: value,
|
|
33559
|
-
onChange: onChange,
|
|
33560
|
-
disabled: props.disabled,
|
|
33561
|
-
className: 'p-paginator-page-input',
|
|
33562
|
-
ariaLabel: ariaLabelValue,
|
|
33563
|
-
element: element,
|
|
33564
|
-
props: props
|
|
33565
|
-
};
|
|
33566
|
-
return utils.ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
33711
|
+
function _defineProperties(target, props) {
|
|
33712
|
+
for (var i = 0; i < props.length; i++) {
|
|
33713
|
+
var descriptor = props[i];
|
|
33714
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
33715
|
+
descriptor.configurable = true;
|
|
33716
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
33717
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
33567
33718
|
}
|
|
33568
|
-
|
|
33569
|
-
|
|
33570
|
-
|
|
33571
|
-
|
|
33572
|
-
|
|
33573
|
-
|
|
33574
|
-
var LastPageLink = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
33575
|
-
var mergeProps = hooks.useMergeProps();
|
|
33576
|
-
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
33577
|
-
var props = LastPageLinkBase.getProps(inProps, context);
|
|
33578
|
-
var ptm = props.ptm,
|
|
33579
|
-
cx = props.cx;
|
|
33580
|
-
var getPTOptions = function getPTOptions(key) {
|
|
33581
|
-
return ptm(key, {
|
|
33582
|
-
hostName: props.hostName,
|
|
33583
|
-
context: {
|
|
33584
|
-
disabled: props.disabled
|
|
33585
|
-
}
|
|
33586
|
-
});
|
|
33587
|
-
};
|
|
33588
|
-
var className = utils.classNames('p-paginator-last p-paginator-element p-link', {
|
|
33589
|
-
'p-disabled': props.disabled
|
|
33590
|
-
});
|
|
33591
|
-
var iconClassName = 'p-paginator-icon';
|
|
33592
|
-
var lastPageIconProps = mergeProps({
|
|
33593
|
-
className: cx('lastPageIcon')
|
|
33594
|
-
}, getPTOptions('lastPageIcon'));
|
|
33595
|
-
var icon = props.lastPageLinkIcon || /*#__PURE__*/React__namespace.createElement(angledoubleright.AngleDoubleRightIcon, lastPageIconProps);
|
|
33596
|
-
var lastPageLinkIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread$3({}, lastPageIconProps), {
|
|
33597
|
-
props: props
|
|
33719
|
+
}
|
|
33720
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
33721
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
33722
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
33723
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
33724
|
+
writable: false
|
|
33598
33725
|
});
|
|
33599
|
-
|
|
33600
|
-
|
|
33601
|
-
|
|
33602
|
-
|
|
33603
|
-
|
|
33604
|
-
|
|
33605
|
-
disabled: props.disabled,
|
|
33606
|
-
'aria-label': api.ariaLabel('lastPageLabel')
|
|
33607
|
-
}, getPTOptions('lastPageButton'));
|
|
33608
|
-
var element = /*#__PURE__*/React__namespace.createElement("button", lastPageButtonProps, lastPageLinkIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
33609
|
-
if (props.template) {
|
|
33610
|
-
var defaultOptions = {
|
|
33611
|
-
onClick: props.onClick,
|
|
33612
|
-
className: className,
|
|
33613
|
-
iconClassName: iconClassName,
|
|
33614
|
-
disabled: props.disabled,
|
|
33615
|
-
element: element,
|
|
33616
|
-
props: props
|
|
33617
|
-
};
|
|
33618
|
-
return utils.ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
33726
|
+
return Constructor;
|
|
33727
|
+
}
|
|
33728
|
+
|
|
33729
|
+
function _classCallCheck(instance, Constructor) {
|
|
33730
|
+
if (!(instance instanceof Constructor)) {
|
|
33731
|
+
throw new TypeError("Cannot call a class as a function");
|
|
33619
33732
|
}
|
|
33620
|
-
|
|
33621
|
-
});
|
|
33622
|
-
LastPageLink.displayName = 'LastPageLink';
|
|
33623
|
-
|
|
33624
|
-
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33625
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33626
|
-
var NextPageLink = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
33627
|
-
var mergeProps = hooks.useMergeProps();
|
|
33628
|
-
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
33629
|
-
var props = NextPageLinkBase.getProps(inProps, context);
|
|
33630
|
-
var ptm = props.ptm,
|
|
33631
|
-
cx = props.cx;
|
|
33632
|
-
var getPTOptions = function getPTOptions(key) {
|
|
33633
|
-
return ptm(key, {
|
|
33634
|
-
hostName: props.hostName,
|
|
33635
|
-
context: {
|
|
33636
|
-
disabled: props.disabled
|
|
33637
|
-
}
|
|
33638
|
-
});
|
|
33639
|
-
};
|
|
33640
|
-
var className = utils.classNames('p-paginator-next p-paginator-element p-link', {
|
|
33641
|
-
'p-disabled': props.disabled
|
|
33642
|
-
});
|
|
33643
|
-
var iconClassName = 'p-paginator-icon';
|
|
33644
|
-
var nextPageIconProps = mergeProps({
|
|
33645
|
-
className: cx('nextPageIcon')
|
|
33646
|
-
}, getPTOptions('nextPageIcon'));
|
|
33647
|
-
var icon = props.nextPageLinkIcon || /*#__PURE__*/React__namespace.createElement(angleright.AngleRightIcon, nextPageIconProps);
|
|
33648
|
-
var nextPageLinkIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread$2({}, nextPageIconProps), {
|
|
33649
|
-
props: props
|
|
33650
|
-
});
|
|
33651
|
-
var nextPageButtonProps = mergeProps({
|
|
33652
|
-
type: 'button',
|
|
33653
|
-
className: cx('nextPageButton', {
|
|
33654
|
-
disabled: props.disabled
|
|
33655
|
-
}),
|
|
33656
|
-
onClick: props.onClick,
|
|
33657
|
-
disabled: props.disabled,
|
|
33658
|
-
'aria-label': api.ariaLabel('nextPageLabel')
|
|
33659
|
-
}, getPTOptions('nextPageButton'));
|
|
33660
|
-
var element = /*#__PURE__*/React__namespace.createElement("button", nextPageButtonProps, nextPageLinkIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
33661
|
-
if (props.template) {
|
|
33662
|
-
var defaultOptions = {
|
|
33663
|
-
onClick: props.onClick,
|
|
33664
|
-
className: className,
|
|
33665
|
-
iconClassName: iconClassName,
|
|
33666
|
-
disabled: props.disabled,
|
|
33667
|
-
element: element,
|
|
33668
|
-
nextPageLinkIcon: nextPageLinkIcon,
|
|
33669
|
-
props: props
|
|
33670
|
-
};
|
|
33671
|
-
return utils.ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
33672
|
-
}
|
|
33673
|
-
return element;
|
|
33674
|
-
});
|
|
33675
|
-
NextPageLink.displayName = 'NextPageLink';
|
|
33676
|
-
|
|
33677
|
-
var PageLinks = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
33678
|
-
var mergeProps = hooks.useMergeProps();
|
|
33679
|
-
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
33680
|
-
var props = PageLinksBase.getProps(inProps, context);
|
|
33681
|
-
var ptm = props.ptm,
|
|
33682
|
-
cx = props.cx;
|
|
33683
|
-
var getPTOptions = function getPTOptions(pageLink, key) {
|
|
33684
|
-
return ptm(key, {
|
|
33685
|
-
hostName: props.hostName,
|
|
33686
|
-
context: {
|
|
33687
|
-
active: pageLink - 1 === props.page
|
|
33688
|
-
}
|
|
33689
|
-
});
|
|
33690
|
-
};
|
|
33691
|
-
var onPageLinkClick = function onPageLinkClick(event, pageLink) {
|
|
33692
|
-
if (props.onClick) {
|
|
33693
|
-
props.onClick({
|
|
33694
|
-
originalEvent: event,
|
|
33695
|
-
value: pageLink
|
|
33696
|
-
});
|
|
33697
|
-
}
|
|
33698
|
-
event.preventDefault();
|
|
33699
|
-
};
|
|
33700
|
-
var elements;
|
|
33701
|
-
if (props.value) {
|
|
33702
|
-
var startPageInView = props.value[0];
|
|
33703
|
-
var endPageInView = props.value[props.value.length - 1];
|
|
33704
|
-
elements = props.value.map(function (pageLink) {
|
|
33705
|
-
var className = utils.classNames('p-paginator-page p-paginator-element p-link', {
|
|
33706
|
-
'p-paginator-page-start': pageLink === startPageInView,
|
|
33707
|
-
'p-paginator-page-end': pageLink === endPageInView,
|
|
33708
|
-
'p-highlight': pageLink - 1 === props.page
|
|
33709
|
-
});
|
|
33710
|
-
var pageButtonProps = mergeProps({
|
|
33711
|
-
type: 'button',
|
|
33712
|
-
onClick: function onClick(e) {
|
|
33713
|
-
return onPageLinkClick(e, pageLink);
|
|
33714
|
-
},
|
|
33715
|
-
className: cx('pageButton', {
|
|
33716
|
-
pageLink: pageLink,
|
|
33717
|
-
startPageInView: startPageInView,
|
|
33718
|
-
endPageInView: endPageInView,
|
|
33719
|
-
page: props.page
|
|
33720
|
-
}),
|
|
33721
|
-
disabled: props.disabled,
|
|
33722
|
-
'aria-label': api.ariaLabel('pageLabel', {
|
|
33723
|
-
page: pageLink
|
|
33724
|
-
}),
|
|
33725
|
-
'aria-current': pageLink - 1 === props.page ? 'true' : undefined
|
|
33726
|
-
}, getPTOptions(pageLink, 'pageButton'));
|
|
33727
|
-
var element = /*#__PURE__*/React__namespace.createElement("button", pageButtonProps, pageLink, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
33728
|
-
if (props.template) {
|
|
33729
|
-
var defaultOptions = {
|
|
33730
|
-
onClick: function onClick(e) {
|
|
33731
|
-
return onPageLinkClick(e, pageLink);
|
|
33732
|
-
},
|
|
33733
|
-
className: className,
|
|
33734
|
-
view: {
|
|
33735
|
-
startPage: startPageInView - 1,
|
|
33736
|
-
endPage: endPageInView - 1
|
|
33737
|
-
},
|
|
33738
|
-
page: pageLink - 1,
|
|
33739
|
-
currentPage: props.page,
|
|
33740
|
-
totalPages: props.pageCount,
|
|
33741
|
-
ariaLabel: api.ariaLabel('pageLabel', {
|
|
33742
|
-
page: pageLink
|
|
33743
|
-
}),
|
|
33744
|
-
ariaCurrent: pageLink - 1 === props.page ? 'true' : undefined,
|
|
33745
|
-
element: element,
|
|
33746
|
-
props: props
|
|
33747
|
-
};
|
|
33748
|
-
element = utils.ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
33749
|
-
}
|
|
33750
|
-
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, {
|
|
33751
|
-
key: pageLink
|
|
33752
|
-
}, element);
|
|
33753
|
-
});
|
|
33754
|
-
}
|
|
33755
|
-
var pagesProps = mergeProps({
|
|
33756
|
-
className: cx('pages')
|
|
33757
|
-
}, ptm('pages', {
|
|
33758
|
-
hostName: props.hostName
|
|
33759
|
-
}));
|
|
33760
|
-
return /*#__PURE__*/React__namespace.createElement("span", pagesProps, elements);
|
|
33761
|
-
});
|
|
33762
|
-
PageLinks.displayName = 'PageLinks';
|
|
33763
|
-
|
|
33764
|
-
function ownKeys$1(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; }
|
|
33765
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33766
|
-
var PrevPageLink = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
33767
|
-
var mergeProps = hooks.useMergeProps();
|
|
33768
|
-
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
33769
|
-
var props = PrevPageLinkBase.getProps(inProps, context);
|
|
33770
|
-
var ptm = props.ptm,
|
|
33771
|
-
cx = props.cx;
|
|
33772
|
-
var getPTOptions = function getPTOptions(key) {
|
|
33773
|
-
return ptm(key, {
|
|
33774
|
-
hostName: props.hostName,
|
|
33775
|
-
context: {
|
|
33776
|
-
disabled: props.disabled
|
|
33777
|
-
}
|
|
33778
|
-
});
|
|
33779
|
-
};
|
|
33780
|
-
var className = utils.classNames('p-paginator-prev p-paginator-element p-link', {
|
|
33781
|
-
'p-disabled': props.disabled
|
|
33782
|
-
});
|
|
33783
|
-
var iconClassName = 'p-paginator-icon';
|
|
33784
|
-
var prevPageIconProps = mergeProps({
|
|
33785
|
-
className: cx('prevPageIcon')
|
|
33786
|
-
}, getPTOptions('prevPageIcon'));
|
|
33787
|
-
var icon = props.prevPageLinkIcon || /*#__PURE__*/React__namespace.createElement(angleleft.AngleLeftIcon, prevPageIconProps);
|
|
33788
|
-
var prevPageLinkIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread$1({}, prevPageIconProps), {
|
|
33789
|
-
props: props
|
|
33790
|
-
});
|
|
33791
|
-
var prevPageButtonProps = mergeProps({
|
|
33792
|
-
type: 'button',
|
|
33793
|
-
className: cx('prevPageButton', {
|
|
33794
|
-
disabled: props.disabled
|
|
33795
|
-
}),
|
|
33796
|
-
onClick: props.onClick,
|
|
33797
|
-
disabled: props.disabled,
|
|
33798
|
-
'aria-label': api.ariaLabel('previousPageLabel')
|
|
33799
|
-
}, getPTOptions('prevPageButton'));
|
|
33800
|
-
var element = /*#__PURE__*/React__namespace.createElement("button", prevPageButtonProps, prevPageLinkIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
33801
|
-
if (props.template) {
|
|
33802
|
-
var defaultOptions = {
|
|
33803
|
-
onClick: props.onClick,
|
|
33804
|
-
className: className,
|
|
33805
|
-
iconClassName: iconClassName,
|
|
33806
|
-
disabled: props.disabled,
|
|
33807
|
-
element: element,
|
|
33808
|
-
props: props
|
|
33809
|
-
};
|
|
33810
|
-
return utils.ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
33811
|
-
}
|
|
33812
|
-
return element;
|
|
33813
|
-
});
|
|
33814
|
-
PrevPageLink.displayName = 'PrevPageLink';
|
|
33815
|
-
|
|
33816
|
-
function _defineProperties(target, props) {
|
|
33817
|
-
for (var i = 0; i < props.length; i++) {
|
|
33818
|
-
var descriptor = props[i];
|
|
33819
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
33820
|
-
descriptor.configurable = true;
|
|
33821
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33822
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
33823
|
-
}
|
|
33824
|
-
}
|
|
33825
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
33826
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
33827
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
33828
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
33829
|
-
writable: false
|
|
33830
|
-
});
|
|
33831
|
-
return Constructor;
|
|
33832
|
-
}
|
|
33833
|
-
|
|
33834
|
-
function _classCallCheck(instance, Constructor) {
|
|
33835
|
-
if (!(instance instanceof Constructor)) {
|
|
33836
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33837
|
-
}
|
|
33838
|
-
}
|
|
33733
|
+
}
|
|
33839
33734
|
|
|
33840
33735
|
var FilterMatchMode = Object.freeze({
|
|
33841
33736
|
STARTS_WITH: 'startsWith',
|
|
@@ -34041,7 +33936,7 @@ this.primereact.paginator = (function (exports, React, api, componentbase, hooks
|
|
|
34041
33936
|
* @param {any} options JSON options like { page: 2, user: "John", role: "Admin" }
|
|
34042
33937
|
* @returns the ARIA label with replaced values
|
|
34043
33938
|
*/
|
|
34044
|
-
function ariaLabel
|
|
33939
|
+
function ariaLabel(ariaKey, options) {
|
|
34045
33940
|
var _locale = PrimeReact.locale;
|
|
34046
33941
|
try {
|
|
34047
33942
|
var _ariaLabel = localeOptions(_locale)['aria'][ariaKey];
|
|
@@ -34062,6 +33957,289 @@ this.primereact.paginator = (function (exports, React, api, componentbase, hooks
|
|
|
34062
33957
|
return locales[_locale];
|
|
34063
33958
|
}
|
|
34064
33959
|
|
|
33960
|
+
var JumpToPageInput = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
33961
|
+
hooks.useMergeProps();
|
|
33962
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
33963
|
+
var props = JumpToPageInputBase.getProps(inProps, context);
|
|
33964
|
+
var ariaLabelValue = ariaLabel('jumpToPageInputLabel');
|
|
33965
|
+
var onChange = function onChange(event) {
|
|
33966
|
+
if (props.onChange) {
|
|
33967
|
+
props.onChange(props.rows * (event.value - 1), props.rows);
|
|
33968
|
+
}
|
|
33969
|
+
};
|
|
33970
|
+
var value = props.pageCount > 0 ? props.page + 1 : 0;
|
|
33971
|
+
var element = /*#__PURE__*/React__namespace.createElement(inputnumber.InputNumber, {
|
|
33972
|
+
value: value,
|
|
33973
|
+
onChange: onChange,
|
|
33974
|
+
className: "p-paginator-page-input",
|
|
33975
|
+
disabled: props.disabled,
|
|
33976
|
+
pt: props.ptm('JTPInput'),
|
|
33977
|
+
unstyled: props.unstyled,
|
|
33978
|
+
__parentMetadata: {
|
|
33979
|
+
parent: props.metaData
|
|
33980
|
+
},
|
|
33981
|
+
"aria-label": ariaLabelValue
|
|
33982
|
+
});
|
|
33983
|
+
if (props.template) {
|
|
33984
|
+
var defaultOptions = {
|
|
33985
|
+
value: value,
|
|
33986
|
+
onChange: onChange,
|
|
33987
|
+
disabled: props.disabled,
|
|
33988
|
+
className: 'p-paginator-page-input',
|
|
33989
|
+
'aria-label': ariaLabelValue,
|
|
33990
|
+
element: element,
|
|
33991
|
+
props: props
|
|
33992
|
+
};
|
|
33993
|
+
return utils.ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
33994
|
+
}
|
|
33995
|
+
return element;
|
|
33996
|
+
});
|
|
33997
|
+
JumpToPageInput.displayName = 'JumpToPageInput';
|
|
33998
|
+
|
|
33999
|
+
function ownKeys$3(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; }
|
|
34000
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34001
|
+
var LastPageLink = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
34002
|
+
var mergeProps = hooks.useMergeProps();
|
|
34003
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
34004
|
+
var props = LastPageLinkBase.getProps(inProps, context);
|
|
34005
|
+
var ptm = props.ptm,
|
|
34006
|
+
cx = props.cx;
|
|
34007
|
+
var getPTOptions = function getPTOptions(key) {
|
|
34008
|
+
return ptm(key, {
|
|
34009
|
+
hostName: props.hostName,
|
|
34010
|
+
context: {
|
|
34011
|
+
disabled: props.disabled
|
|
34012
|
+
}
|
|
34013
|
+
});
|
|
34014
|
+
};
|
|
34015
|
+
var className = utils.classNames('p-paginator-last p-paginator-element p-link', {
|
|
34016
|
+
'p-disabled': props.disabled
|
|
34017
|
+
});
|
|
34018
|
+
var iconClassName = 'p-paginator-icon';
|
|
34019
|
+
var lastPageIconProps = mergeProps({
|
|
34020
|
+
className: cx('lastPageIcon')
|
|
34021
|
+
}, getPTOptions('lastPageIcon'));
|
|
34022
|
+
var icon = props.lastPageLinkIcon || /*#__PURE__*/React__namespace.createElement(angledoubleright.AngleDoubleRightIcon, lastPageIconProps);
|
|
34023
|
+
var lastPageLinkIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread$3({}, lastPageIconProps), {
|
|
34024
|
+
props: props
|
|
34025
|
+
});
|
|
34026
|
+
var lastPageButtonProps = mergeProps({
|
|
34027
|
+
type: 'button',
|
|
34028
|
+
className: cx('lastPageButton', {
|
|
34029
|
+
disabled: props.disabled
|
|
34030
|
+
}),
|
|
34031
|
+
onClick: props.onClick,
|
|
34032
|
+
disabled: props.disabled,
|
|
34033
|
+
'aria-label': api.ariaLabel('lastPageLabel')
|
|
34034
|
+
}, getPTOptions('lastPageButton'));
|
|
34035
|
+
var element = /*#__PURE__*/React__namespace.createElement("button", lastPageButtonProps, lastPageLinkIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
34036
|
+
if (props.template) {
|
|
34037
|
+
var defaultOptions = {
|
|
34038
|
+
onClick: props.onClick,
|
|
34039
|
+
className: className,
|
|
34040
|
+
iconClassName: iconClassName,
|
|
34041
|
+
disabled: props.disabled,
|
|
34042
|
+
element: element,
|
|
34043
|
+
props: props
|
|
34044
|
+
};
|
|
34045
|
+
return utils.ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
34046
|
+
}
|
|
34047
|
+
return element;
|
|
34048
|
+
});
|
|
34049
|
+
LastPageLink.displayName = 'LastPageLink';
|
|
34050
|
+
|
|
34051
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34052
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34053
|
+
var NextPageLink = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
34054
|
+
var mergeProps = hooks.useMergeProps();
|
|
34055
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
34056
|
+
var props = NextPageLinkBase.getProps(inProps, context);
|
|
34057
|
+
var ptm = props.ptm,
|
|
34058
|
+
cx = props.cx;
|
|
34059
|
+
var getPTOptions = function getPTOptions(key) {
|
|
34060
|
+
return ptm(key, {
|
|
34061
|
+
hostName: props.hostName,
|
|
34062
|
+
context: {
|
|
34063
|
+
disabled: props.disabled
|
|
34064
|
+
}
|
|
34065
|
+
});
|
|
34066
|
+
};
|
|
34067
|
+
var className = utils.classNames('p-paginator-next p-paginator-element p-link', {
|
|
34068
|
+
'p-disabled': props.disabled
|
|
34069
|
+
});
|
|
34070
|
+
var iconClassName = 'p-paginator-icon';
|
|
34071
|
+
var nextPageIconProps = mergeProps({
|
|
34072
|
+
className: cx('nextPageIcon')
|
|
34073
|
+
}, getPTOptions('nextPageIcon'));
|
|
34074
|
+
var icon = props.nextPageLinkIcon || /*#__PURE__*/React__namespace.createElement(angleright.AngleRightIcon, nextPageIconProps);
|
|
34075
|
+
var nextPageLinkIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread$2({}, nextPageIconProps), {
|
|
34076
|
+
props: props
|
|
34077
|
+
});
|
|
34078
|
+
var nextPageButtonProps = mergeProps({
|
|
34079
|
+
type: 'button',
|
|
34080
|
+
className: cx('nextPageButton', {
|
|
34081
|
+
disabled: props.disabled
|
|
34082
|
+
}),
|
|
34083
|
+
onClick: props.onClick,
|
|
34084
|
+
disabled: props.disabled,
|
|
34085
|
+
'aria-label': api.ariaLabel('nextPageLabel')
|
|
34086
|
+
}, getPTOptions('nextPageButton'));
|
|
34087
|
+
var element = /*#__PURE__*/React__namespace.createElement("button", nextPageButtonProps, nextPageLinkIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
34088
|
+
if (props.template) {
|
|
34089
|
+
var defaultOptions = {
|
|
34090
|
+
onClick: props.onClick,
|
|
34091
|
+
className: className,
|
|
34092
|
+
iconClassName: iconClassName,
|
|
34093
|
+
disabled: props.disabled,
|
|
34094
|
+
element: element,
|
|
34095
|
+
nextPageLinkIcon: nextPageLinkIcon,
|
|
34096
|
+
props: props
|
|
34097
|
+
};
|
|
34098
|
+
return utils.ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
34099
|
+
}
|
|
34100
|
+
return element;
|
|
34101
|
+
});
|
|
34102
|
+
NextPageLink.displayName = 'NextPageLink';
|
|
34103
|
+
|
|
34104
|
+
var PageLinks = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
34105
|
+
var mergeProps = hooks.useMergeProps();
|
|
34106
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
34107
|
+
var props = PageLinksBase.getProps(inProps, context);
|
|
34108
|
+
var ptm = props.ptm,
|
|
34109
|
+
cx = props.cx;
|
|
34110
|
+
var getPTOptions = function getPTOptions(pageLink, key) {
|
|
34111
|
+
return ptm(key, {
|
|
34112
|
+
hostName: props.hostName,
|
|
34113
|
+
context: {
|
|
34114
|
+
active: pageLink - 1 === props.page
|
|
34115
|
+
}
|
|
34116
|
+
});
|
|
34117
|
+
};
|
|
34118
|
+
var onPageLinkClick = function onPageLinkClick(event, pageLink) {
|
|
34119
|
+
if (props.onClick) {
|
|
34120
|
+
props.onClick({
|
|
34121
|
+
originalEvent: event,
|
|
34122
|
+
value: pageLink
|
|
34123
|
+
});
|
|
34124
|
+
}
|
|
34125
|
+
event.preventDefault();
|
|
34126
|
+
};
|
|
34127
|
+
var elements;
|
|
34128
|
+
if (props.value) {
|
|
34129
|
+
var startPageInView = props.value[0];
|
|
34130
|
+
var endPageInView = props.value[props.value.length - 1];
|
|
34131
|
+
elements = props.value.map(function (pageLink) {
|
|
34132
|
+
var className = utils.classNames('p-paginator-page p-paginator-element p-link', {
|
|
34133
|
+
'p-paginator-page-start': pageLink === startPageInView,
|
|
34134
|
+
'p-paginator-page-end': pageLink === endPageInView,
|
|
34135
|
+
'p-highlight': pageLink - 1 === props.page
|
|
34136
|
+
});
|
|
34137
|
+
var pageButtonProps = mergeProps({
|
|
34138
|
+
type: 'button',
|
|
34139
|
+
onClick: function onClick(e) {
|
|
34140
|
+
return onPageLinkClick(e, pageLink);
|
|
34141
|
+
},
|
|
34142
|
+
className: cx('pageButton', {
|
|
34143
|
+
pageLink: pageLink,
|
|
34144
|
+
startPageInView: startPageInView,
|
|
34145
|
+
endPageInView: endPageInView,
|
|
34146
|
+
page: props.page
|
|
34147
|
+
}),
|
|
34148
|
+
disabled: props.disabled,
|
|
34149
|
+
'aria-label': api.ariaLabel('pageLabel', {
|
|
34150
|
+
page: pageLink
|
|
34151
|
+
}),
|
|
34152
|
+
'aria-current': pageLink - 1 === props.page ? 'true' : undefined
|
|
34153
|
+
}, getPTOptions(pageLink, 'pageButton'));
|
|
34154
|
+
var element = /*#__PURE__*/React__namespace.createElement("button", pageButtonProps, pageLink, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
34155
|
+
if (props.template) {
|
|
34156
|
+
var defaultOptions = {
|
|
34157
|
+
onClick: function onClick(e) {
|
|
34158
|
+
return onPageLinkClick(e, pageLink);
|
|
34159
|
+
},
|
|
34160
|
+
className: className,
|
|
34161
|
+
view: {
|
|
34162
|
+
startPage: startPageInView - 1,
|
|
34163
|
+
endPage: endPageInView - 1
|
|
34164
|
+
},
|
|
34165
|
+
page: pageLink - 1,
|
|
34166
|
+
currentPage: props.page,
|
|
34167
|
+
totalPages: props.pageCount,
|
|
34168
|
+
ariaLabel: api.ariaLabel('pageLabel', {
|
|
34169
|
+
page: pageLink
|
|
34170
|
+
}),
|
|
34171
|
+
ariaCurrent: pageLink - 1 === props.page ? 'true' : undefined,
|
|
34172
|
+
element: element,
|
|
34173
|
+
props: props
|
|
34174
|
+
};
|
|
34175
|
+
element = utils.ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
34176
|
+
}
|
|
34177
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, {
|
|
34178
|
+
key: pageLink
|
|
34179
|
+
}, element);
|
|
34180
|
+
});
|
|
34181
|
+
}
|
|
34182
|
+
var pagesProps = mergeProps({
|
|
34183
|
+
className: cx('pages')
|
|
34184
|
+
}, ptm('pages', {
|
|
34185
|
+
hostName: props.hostName
|
|
34186
|
+
}));
|
|
34187
|
+
return /*#__PURE__*/React__namespace.createElement("span", pagesProps, elements);
|
|
34188
|
+
});
|
|
34189
|
+
PageLinks.displayName = 'PageLinks';
|
|
34190
|
+
|
|
34191
|
+
function ownKeys$1(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; }
|
|
34192
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34193
|
+
var PrevPageLink = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
34194
|
+
var mergeProps = hooks.useMergeProps();
|
|
34195
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
34196
|
+
var props = PrevPageLinkBase.getProps(inProps, context);
|
|
34197
|
+
var ptm = props.ptm,
|
|
34198
|
+
cx = props.cx;
|
|
34199
|
+
var getPTOptions = function getPTOptions(key) {
|
|
34200
|
+
return ptm(key, {
|
|
34201
|
+
hostName: props.hostName,
|
|
34202
|
+
context: {
|
|
34203
|
+
disabled: props.disabled
|
|
34204
|
+
}
|
|
34205
|
+
});
|
|
34206
|
+
};
|
|
34207
|
+
var className = utils.classNames('p-paginator-prev p-paginator-element p-link', {
|
|
34208
|
+
'p-disabled': props.disabled
|
|
34209
|
+
});
|
|
34210
|
+
var iconClassName = 'p-paginator-icon';
|
|
34211
|
+
var prevPageIconProps = mergeProps({
|
|
34212
|
+
className: cx('prevPageIcon')
|
|
34213
|
+
}, getPTOptions('prevPageIcon'));
|
|
34214
|
+
var icon = props.prevPageLinkIcon || /*#__PURE__*/React__namespace.createElement(angleleft.AngleLeftIcon, prevPageIconProps);
|
|
34215
|
+
var prevPageLinkIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread$1({}, prevPageIconProps), {
|
|
34216
|
+
props: props
|
|
34217
|
+
});
|
|
34218
|
+
var prevPageButtonProps = mergeProps({
|
|
34219
|
+
type: 'button',
|
|
34220
|
+
className: cx('prevPageButton', {
|
|
34221
|
+
disabled: props.disabled
|
|
34222
|
+
}),
|
|
34223
|
+
onClick: props.onClick,
|
|
34224
|
+
disabled: props.disabled,
|
|
34225
|
+
'aria-label': api.ariaLabel('previousPageLabel')
|
|
34226
|
+
}, getPTOptions('prevPageButton'));
|
|
34227
|
+
var element = /*#__PURE__*/React__namespace.createElement("button", prevPageButtonProps, prevPageLinkIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
34228
|
+
if (props.template) {
|
|
34229
|
+
var defaultOptions = {
|
|
34230
|
+
onClick: props.onClick,
|
|
34231
|
+
className: className,
|
|
34232
|
+
iconClassName: iconClassName,
|
|
34233
|
+
disabled: props.disabled,
|
|
34234
|
+
element: element,
|
|
34235
|
+
props: props
|
|
34236
|
+
};
|
|
34237
|
+
return utils.ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
34238
|
+
}
|
|
34239
|
+
return element;
|
|
34240
|
+
});
|
|
34241
|
+
PrevPageLink.displayName = 'PrevPageLink';
|
|
34242
|
+
|
|
34065
34243
|
var RowsPerPageDropdown = /*#__PURE__*/React__namespace.memo(function (inProps) {
|
|
34066
34244
|
hooks.useMergeProps();
|
|
34067
34245
|
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
@@ -34074,7 +34252,7 @@ this.primereact.paginator = (function (exports, React, api, componentbase, hooks
|
|
|
34074
34252
|
};
|
|
34075
34253
|
}) : [];
|
|
34076
34254
|
var placeholderValue = api.localeOption('choose');
|
|
34077
|
-
var ariaLabelValue = ariaLabel
|
|
34255
|
+
var ariaLabelValue = ariaLabel('jumpToPageDropdownLabel');
|
|
34078
34256
|
var element = hasOptions ? /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(dropdown.Dropdown, {
|
|
34079
34257
|
value: props.value,
|
|
34080
34258
|
options: options,
|