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/chips/chips.js
CHANGED
|
@@ -153,22 +153,29 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
153
153
|
var classes = {
|
|
154
154
|
removeTokenIcon: 'p-chips-token-icon',
|
|
155
155
|
label: 'p-chips-token-label',
|
|
156
|
-
token:
|
|
156
|
+
token: function token(_ref) {
|
|
157
|
+
var focusedIndex = _ref.focusedIndex,
|
|
158
|
+
index = _ref.index;
|
|
159
|
+
return utils.classNames('p-chips-token', {
|
|
160
|
+
'p-focus': focusedIndex === index
|
|
161
|
+
});
|
|
162
|
+
},
|
|
157
163
|
inputToken: 'p-chips-input-token',
|
|
158
|
-
container: function container(
|
|
159
|
-
var
|
|
160
|
-
focusedState = _ref.focusedState;
|
|
164
|
+
container: function container(_ref2) {
|
|
165
|
+
var isFilled = _ref2.isFilled;
|
|
161
166
|
return utils.classNames('p-inputtext p-chips-multiple-container', {
|
|
162
|
-
'p-
|
|
163
|
-
'p-focus': focusedState
|
|
167
|
+
'p-variant-filled': isFilled
|
|
164
168
|
});
|
|
165
169
|
},
|
|
166
|
-
root: function root(
|
|
167
|
-
var isFilled =
|
|
168
|
-
focusedState =
|
|
170
|
+
root: function root(_ref3) {
|
|
171
|
+
var isFilled = _ref3.isFilled,
|
|
172
|
+
focusedState = _ref3.focusedState,
|
|
173
|
+
disabled = _ref3.disabled;
|
|
169
174
|
return utils.classNames('p-chips p-component p-inputwrapper', {
|
|
170
175
|
'p-inputwrapper-filled': isFilled,
|
|
171
|
-
'p-inputwrapper-focus': focusedState
|
|
176
|
+
'p-inputwrapper-focus': focusedState,
|
|
177
|
+
'p-disabled': disabled,
|
|
178
|
+
'p-focus': focusedState
|
|
172
179
|
});
|
|
173
180
|
}
|
|
174
181
|
};
|
|
@@ -221,6 +228,10 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
221
228
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
222
229
|
focusedState = _React$useState2[0],
|
|
223
230
|
setFocusedState = _React$useState2[1];
|
|
231
|
+
var _React$useState3 = React__namespace.useState(null),
|
|
232
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
233
|
+
focusedIndex = _React$useState4[0],
|
|
234
|
+
setFocusedIndex = _React$useState4[1];
|
|
224
235
|
var _ChipsBase$setMetaDat = ChipsBase.setMetaData({
|
|
225
236
|
props: props,
|
|
226
237
|
state: {
|
|
@@ -290,26 +301,71 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
290
301
|
var onWrapperClick = function onWrapperClick() {
|
|
291
302
|
utils.DomHandler.focus(inputRef.current);
|
|
292
303
|
};
|
|
304
|
+
var onContainerKeyDown = function onContainerKeyDown(event) {
|
|
305
|
+
switch (event.code) {
|
|
306
|
+
case 'ArrowLeft':
|
|
307
|
+
onArrowLeftKeyOn();
|
|
308
|
+
break;
|
|
309
|
+
case 'ArrowRight':
|
|
310
|
+
onArrowRightKeyOn();
|
|
311
|
+
break;
|
|
312
|
+
case 'Backspace':
|
|
313
|
+
onBackspaceKeyOn(event);
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
var onArrowLeftKeyOn = function onArrowLeftKeyOn() {
|
|
318
|
+
var focusIndex = focusedIndex;
|
|
319
|
+
if (inputRef.current.value.length === 0 && props.value && props.value.length > 0) {
|
|
320
|
+
focusIndex = focusIndex === null ? props.value.length - 1 : focusIndex - 1;
|
|
321
|
+
if (focusIndex < 0) focusIndex = 0;
|
|
322
|
+
}
|
|
323
|
+
setFocusedIndex(focusIndex);
|
|
324
|
+
};
|
|
325
|
+
var onArrowRightKeyOn = function onArrowRightKeyOn() {
|
|
326
|
+
var focusIndex = focusedIndex;
|
|
327
|
+
if (inputRef.current.value.length === 0 && props.value && props.value.length > 0) {
|
|
328
|
+
if (focusIndex === props.value.length - 1) {
|
|
329
|
+
focusIndex = null;
|
|
330
|
+
inputRef.current.focus();
|
|
331
|
+
} else {
|
|
332
|
+
focusIndex++;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
setFocusedIndex(focusIndex);
|
|
336
|
+
};
|
|
337
|
+
var onBackspaceKeyOn = function onBackspaceKeyOn(event) {
|
|
338
|
+
if (focusedIndex !== null) {
|
|
339
|
+
removeItem(event, focusedIndex);
|
|
340
|
+
}
|
|
341
|
+
};
|
|
293
342
|
var _onKeyDown = function onKeyDown(event) {
|
|
294
343
|
var inputValue = event.target.value;
|
|
295
344
|
var values = props.value || [];
|
|
296
345
|
props.onKeyDown && props.onKeyDown(event);
|
|
297
|
-
|
|
298
|
-
// do not continue if the user defined keydown wants to prevent
|
|
299
346
|
if (event.defaultPrevented) {
|
|
300
347
|
return;
|
|
301
348
|
}
|
|
302
|
-
switch (event.
|
|
349
|
+
switch (event.code) {
|
|
303
350
|
case 'Backspace':
|
|
304
|
-
if (
|
|
351
|
+
if (inputValue.length === 0 && values.length > 0) {
|
|
305
352
|
removeItem(event, values.length - 1);
|
|
306
353
|
}
|
|
307
354
|
break;
|
|
308
355
|
case 'Enter':
|
|
356
|
+
case 'NumpadEnter':
|
|
309
357
|
if (inputValue && inputValue.trim().length && (!props.max || props.max > values.length)) {
|
|
310
358
|
addItem(event, inputValue, true);
|
|
311
359
|
}
|
|
312
360
|
break;
|
|
361
|
+
case 'ArrowLeft':
|
|
362
|
+
if (inputValue.length === 0 && values && values.length > 0) {
|
|
363
|
+
utils.DomHandler.focus(listRef.current);
|
|
364
|
+
}
|
|
365
|
+
break;
|
|
366
|
+
case 'ArrowRight':
|
|
367
|
+
event.stopPropagation();
|
|
368
|
+
break;
|
|
313
369
|
default:
|
|
314
370
|
if (props.keyfilter) {
|
|
315
371
|
keyfilter.KeyFilter.onKeyPress(event, props.keyfilter);
|
|
@@ -364,8 +420,16 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
364
420
|
}
|
|
365
421
|
}
|
|
366
422
|
};
|
|
423
|
+
var onContainerFocus = function onContainerFocus(event) {
|
|
424
|
+
setFocusedState(true);
|
|
425
|
+
};
|
|
426
|
+
var onContainerBlur = function onContainerBlur() {
|
|
427
|
+
setFocusedIndex(-1);
|
|
428
|
+
setFocusedState(false);
|
|
429
|
+
};
|
|
367
430
|
var _onFocus = function onFocus(event) {
|
|
368
431
|
setFocusedState(true);
|
|
432
|
+
setFocusedIndex(null);
|
|
369
433
|
props.onFocus && props.onFocus(event);
|
|
370
434
|
};
|
|
371
435
|
var _onBlur = function onBlur(event) {
|
|
@@ -415,6 +479,9 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
415
479
|
utils.DomHandler.focus(inputRef.current, props.autoFocus);
|
|
416
480
|
}
|
|
417
481
|
});
|
|
482
|
+
var focusedOptionId = function focusedOptionId() {
|
|
483
|
+
return focusedIndex !== null ? "".concat(props.inputId, "_chips_item_").concat(focusedIndex) : null;
|
|
484
|
+
};
|
|
418
485
|
var createRemoveIcon = function createRemoveIcon(value, index) {
|
|
419
486
|
var iconProps = mergeProps({
|
|
420
487
|
className: cx('removeTokenIcon'),
|
|
@@ -440,9 +507,19 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
440
507
|
var label = /*#__PURE__*/React__namespace.createElement("span", labelProps, content);
|
|
441
508
|
var icon = createRemoveIcon(value, index);
|
|
442
509
|
var tokenProps = mergeProps({
|
|
443
|
-
key: index,
|
|
444
|
-
|
|
445
|
-
'
|
|
510
|
+
key: "".concat(index, "_").concat(value),
|
|
511
|
+
id: props.inputId + '_chips_item_' + index,
|
|
512
|
+
role: 'option',
|
|
513
|
+
'aria-label': value,
|
|
514
|
+
className: cx('token', {
|
|
515
|
+
focusedIndex: focusedIndex,
|
|
516
|
+
index: index
|
|
517
|
+
}),
|
|
518
|
+
'aria-selected': true,
|
|
519
|
+
'aria-setsize': props.value.length,
|
|
520
|
+
'aria-posinset': index + 1,
|
|
521
|
+
'data-p-highlight': true,
|
|
522
|
+
'data-p-focused': focusedIndex === index
|
|
446
523
|
}, ptm('token'));
|
|
447
524
|
return /*#__PURE__*/React__namespace.createElement("li", tokenProps, label, icon);
|
|
448
525
|
};
|
|
@@ -482,13 +559,24 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
482
559
|
var containerProps = mergeProps({
|
|
483
560
|
ref: listRef,
|
|
484
561
|
className: cx('container', {
|
|
485
|
-
|
|
562
|
+
isFilled: isFilled
|
|
486
563
|
}),
|
|
487
564
|
onClick: function onClick(e) {
|
|
488
565
|
return onWrapperClick();
|
|
489
566
|
},
|
|
567
|
+
onKeyDown: function onKeyDown(e) {
|
|
568
|
+
return onContainerKeyDown(e);
|
|
569
|
+
},
|
|
570
|
+
tabIndex: -1,
|
|
571
|
+
role: 'listbox',
|
|
572
|
+
'aria-orientation': 'horizontal',
|
|
573
|
+
'aria-labelledby': props.ariaLabelledby,
|
|
574
|
+
'aria-label': props.ariaLabel,
|
|
575
|
+
'aria-activedescendant': focusedState ? focusedOptionId() : undefined,
|
|
490
576
|
'data-p-disabled': props.disabled,
|
|
491
|
-
'data-p-focus': focusedState
|
|
577
|
+
'data-p-focus': focusedState,
|
|
578
|
+
onFocus: onContainerFocus,
|
|
579
|
+
onBlur: onContainerBlur
|
|
492
580
|
}, ptm('container'));
|
|
493
581
|
return /*#__PURE__*/React__namespace.createElement("ul", containerProps, items, input);
|
|
494
582
|
};
|
|
@@ -501,7 +589,8 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
501
589
|
ref: elementRef,
|
|
502
590
|
className: utils.classNames(props.className, cx('root', {
|
|
503
591
|
isFilled: isFilled,
|
|
504
|
-
focusedState: focusedState
|
|
592
|
+
focusedState: focusedState,
|
|
593
|
+
disabled: props.disabled
|
|
505
594
|
})),
|
|
506
595
|
style: props.style
|
|
507
596
|
}, ptm('root'));
|
package/chips/chips.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.chips=function(e,n,t,r,o,i,l,a,u){"use strict";function c(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var p=c(n);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(this,arguments)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,n){if("object"!==f(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function m(e){var n=d(e,"string");return"symbol"===f(n)?n:String(n)}function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function v(e){if(Array.isArray(e))return y(e)}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,n){if(e){if("string"==typeof e)return y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,n):void 0}}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e){return v(e)||h(e)||b(e)||g()}function w(e){if(Array.isArray(e))return e}function k(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=i.call(t)).done)&&(a.push(r.value),a.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}function j(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var P=r.ComponentBase.extend({defaultProps:{__TYPE:"Chips",addOnBlur:null,allowDuplicate:!0,ariaLabelledBy:null,autoFocus:!1,className:null,disabled:null,id:null,inputId:null,inputRef:null,itemTemplate:null,keyfilter:null,max:null,name:null,onAdd:null,onBlur:null,onChange:null,onFocus:null,onKeyDown:null,onRemove:null,placeholder:null,readOnly:!1,removable:!0,removeIcon:null,separator:null,style:null,tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:{removeTokenIcon:"p-chips-token-icon",label:"p-chips-token-label",token:"p-chips-token p-highlight",inputToken:"p-chips-input-token",container:function(e){return u.classNames("p-inputtext p-chips-multiple-container",{"p-disabled":e.props.disabled,"p-focus":e.focusedState})},root:function(e){return u.classNames("p-chips p-component p-inputwrapper",{"p-inputwrapper-filled":e.isFilled,"p-inputwrapper-focus":e.focusedState})}},styles:"\n@layer primereact {\n .p-chips {\n display: inline-flex;\n }\n \n .p-chips-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n \n .p-chips-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n \n .p-chips-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n }\n \n .p-chips-token-icon {\n cursor: pointer;\n }\n \n .p-chips-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n }\n \n .p-fluid .p-chips {\n display: flex;\n }\n \n .p-chips-icon-left,\n .p-chips-icon-right {\n position: relative;\n display: inline-block;\n }\n \n .p-chips-icon-left > i,\n .p-chips-icon-right > i,\n .p-chips-icon-left > svg,\n .p-chips-icon-right > svg,\n .p-chips-icon-left > .p-chips-prefix,\n .p-chips-icon-right > .p-chips-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n \n .p-fluid .p-chips-icon-left,\n .p-fluid .p-chips-icon-right {\n display: block;\n width: 100%;\n }\n}\n"}});function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){var r,o,i;r=e,i=t[n],(o=m(o=n))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=p.memo(p.forwardRef((function(e,n){var c,f,d=o.useMergeProps(),m=p.useContext(t.PrimeReactContext),y=P.getProps(e,m),v=p.useState(!1),h=(f=2,w(c=v)||k(c,f)||b(c,f)||j()),g=h[0],x=h[1],E=P.setMetaData({props:y,state:{focused:g}}),S=E.ptm,I=E.cx;r.useHandleStyle(P.css.styles,E.isUnstyled,{name:"chips"});var N=p.useRef(null),R=p.useRef(null),T=p.useRef(y.inputRef),A=function(e,n){if(!y.disabled||!y.readOnly){var t=O(y.value),r=t.splice(n,1);z(r,n)&&(y.onRemove&&y.onRemove({originalEvent:e,value:r}),y.onChange&&y.onChange({originalEvent:e,value:t,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{name:y.name,id:y.id,value:t}}))}},C=function(e,n,t){if(n&&n.trim().length){var r=y.value?O(y.value):[];if(y.allowDuplicate||-1===r.indexOf(n)){var o=!0;y.onAdd&&(o=y.onAdd({originalEvent:e,value:n})),!1!==o&&r.push(n)}B(e,r,t)}},F=function(e){var n=e.target.value,t=y.value||[];if(y.onKeyDown&&y.onKeyDown(e),!e.defaultPrevented)switch(e.key){case"Backspace":0===T.current.value.length&&t.length>0&&A(e,t.length-1);break;case"Enter":n&&n.trim().length&&(!y.max||y.max>t.length)&&C(e,n,!0);break;default:y.keyfilter&&l.KeyFilter.onKeyPress(e,y.keyfilter),H()?e.preventDefault():","===y.separator&&(e.key===y.separator||u.DomHandler.isAndroid()&&229===e.which)&&C(e,n,!0)}},B=function(e,n,t){y.onChange&&y.onChange({originalEvent:e,value:n,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{name:y.name,id:y.id,value:n}}),T.current.value="",t&&e.preventDefault()},U=function(e){if(y.separator){var n=y.separator.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t"),t=(e.clipboardData||window.clipboardData).getData("Text");if(y.keyfilter&&l.KeyFilter.onPaste(e,y.keyfilter),t){var r=y.value||[],o=t.split(n);o=o.filter((function(e){return(y.allowDuplicate||-1===r.indexOf(e))&&e.trim().length})),r=[].concat(O(r),O(o)),B(e,r,!0)}}},K=function(e){if(y.addOnBlur){var n=e.target.value,t=y.value||[];n&&n.trim().length&&(!y.max||y.max>t.length)&&C(e,n,!0)}x(!1),y.onBlur&&y.onBlur(e)},H=function(){return y.max&&y.value&&y.max===y.value.length},M=T.current&&T.current.value,_=p.useMemo((function(){return u.ObjectUtils.isNotEmpty(y.value)||u.ObjectUtils.isNotEmpty(M)}),[y.value,M]),z=function(e,n){return u.ObjectUtils.getPropValue(y.removable,{value:e,index:n,props:y})};p.useImperativeHandle(n,(function(){return{props:y,focus:function(){return u.DomHandler.focus(T.current)},getElement:function(){return N.current},getInput:function(){return T.current}}})),p.useEffect((function(){u.ObjectUtils.combinedRefs(T,y.inputRef)}),[T,y.inputRef]),o.useMountEffect((function(){y.autoFocus&&u.DomHandler.focus(T.current,y.autoFocus)}));var J,L,V,X,Y,$=function(e,n){var t=d({className:I("removeTokenIcon"),onClick:function(e){return A(e,n)},"aria-hidden":"true"},S("removeTokenIcon")),r=u.IconUtils.getJSXIcon(y.removeIcon||p.createElement(i.TimesCircleIcon,t),D({},t),{props:y});return y.disabled||y.readOnly||!z(e,n)?null:r},q=function(e,n){var t=y.itemTemplate?y.itemTemplate(e):e,r=d({className:I("label")},S("label")),o=p.createElement("span",r,t),i=$(e,n),l=d({key:n,className:I("token"),"data-p-highlight":!0},S("token"));return p.createElement("li",l,o,i)},G=u.ObjectUtils.isNotEmpty(y.tooltip),Q=P.getOtherProps(y),W=u.ObjectUtils.reduceKeys(Q,u.DomHandler.ARIA_PROPS),Z=(V=y.value?y.value.map(q):null,J=d({className:I("inputToken")},S("inputToken")),L=d(D({id:y.inputId,ref:T,placeholder:y.placeholder,type:"text",name:y.name,disabled:y.disabled||H(),onKeyDown:function(e){return F(e)},onPaste:function(e){return U(e)},onFocus:function(e){return n=e,x(!0),void(y.onFocus&&y.onFocus(n));var n},onBlur:function(e){return K(e)},readOnly:y.readOnly},W),S("input")),X=p.createElement("li",J,p.createElement("input",L)),Y=d({ref:R,className:I("container",{focusedState:g}),onClick:function(e){u.DomHandler.focus(T.current)},"data-p-disabled":y.disabled,"data-p-focus":g},S("container")),p.createElement("ul",Y,V,X)),ee=d({id:y.id,ref:N,className:u.classNames(y.className,I("root",{isFilled:_,focusedState:g})),style:y.style},S("root"));return p.createElement(p.Fragment,null,p.createElement("div",ee,Z),G&&p.createElement(a.Tooltip,s({target:T,content:y.tooltip},y.tooltipOptions,{pt:S("tooltip")})))})));return E.displayName="Chips",e.Chips=E,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.icons.timescircle,primereact.keyfilter,primereact.tooltip,primereact.utils);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.chips=function(e,n,t,r,o,i,a,l,u){"use strict";function c(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var s=c(n);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},p.apply(this,arguments)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,n){if("object"!==f(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function m(e){var n=d(e,"string");return"symbol"===f(n)?n:String(n)}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function b(e){if(Array.isArray(e))return v(e)}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(e,n){if(e){if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,n):void 0}}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e){return b(e)||y(e)||h(e)||g()}function w(e){if(Array.isArray(e))return e}function k(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,n){return w(e)||k(e,n)||h(e,n)||x()}var P=r.ComponentBase.extend({defaultProps:{__TYPE:"Chips",addOnBlur:null,allowDuplicate:!0,ariaLabelledBy:null,autoFocus:!1,className:null,disabled:null,id:null,inputId:null,inputRef:null,itemTemplate:null,keyfilter:null,max:null,name:null,onAdd:null,onBlur:null,onChange:null,onFocus:null,onKeyDown:null,onRemove:null,placeholder:null,readOnly:!1,removable:!0,removeIcon:null,separator:null,style:null,tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:{removeTokenIcon:"p-chips-token-icon",label:"p-chips-token-label",token:function(e){return u.classNames("p-chips-token",{"p-focus":e.focusedIndex===e.index})},inputToken:"p-chips-input-token",container:function(e){return u.classNames("p-inputtext p-chips-multiple-container",{"p-variant-filled":e.isFilled})},root:function(e){var n=e.focusedState;return u.classNames("p-chips p-component p-inputwrapper",{"p-inputwrapper-filled":e.isFilled,"p-inputwrapper-focus":n,"p-disabled":e.disabled,"p-focus":n})}},styles:"\n@layer primereact {\n .p-chips {\n display: inline-flex;\n }\n \n .p-chips-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n \n .p-chips-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n \n .p-chips-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n }\n \n .p-chips-token-icon {\n cursor: pointer;\n }\n \n .p-chips-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n }\n \n .p-fluid .p-chips {\n display: flex;\n }\n \n .p-chips-icon-left,\n .p-chips-icon-right {\n position: relative;\n display: inline-block;\n }\n \n .p-chips-icon-left > i,\n .p-chips-icon-right > i,\n .p-chips-icon-left > svg,\n .p-chips-icon-right > svg,\n .p-chips-icon-left > .p-chips-prefix,\n .p-chips-icon-right > .p-chips-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n \n .p-fluid .p-chips-icon-left,\n .p-fluid .p-chips-icon-right {\n display: block;\n width: 100%;\n }\n}\n"}});function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){var r,o,i;r=e,i=t[n],(o=m(o=n))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=s.memo(s.forwardRef((function(e,n){var c=o.useMergeProps(),f=s.useContext(t.PrimeReactContext),d=P.getProps(e,f),m=j(s.useState(!1),2),v=m[0],b=m[1],y=j(s.useState(null),2),h=y[0],g=y[1],w=P.setMetaData({props:d,state:{focused:v}}),k=w.ptm,x=w.cx;r.useHandleStyle(P.css.styles,w.isUnstyled,{name:"chips"});var D=s.useRef(null),S=s.useRef(null),I=s.useRef(d.inputRef),A=function(e,n){if(!d.disabled||!d.readOnly){var t=O(d.value),r=t.splice(n,1);V(r,n)&&(d.onRemove&&d.onRemove({originalEvent:e,value:r}),d.onChange&&d.onChange({originalEvent:e,value:t,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{name:d.name,id:d.id,value:t}}))}},N=function(e,n,t){if(n&&n.trim().length){var r=d.value?O(d.value):[];if(d.allowDuplicate||-1===r.indexOf(n)){var o=!0;d.onAdd&&(o=d.onAdd({originalEvent:e,value:n})),!1!==o&&r.push(n)}B(e,r,t)}},R=function(e){switch(e.code){case"ArrowLeft":T();break;case"ArrowRight":C();break;case"Backspace":F(e)}},T=function(){var e=h;0===I.current.value.length&&d.value&&d.value.length>0&&(e=null===e?d.value.length-1:e-1)<0&&(e=0),g(e)},C=function(){var e=h;0===I.current.value.length&&d.value&&d.value.length>0&&(e===d.value.length-1?(e=null,I.current.focus()):e++),g(e)},F=function(e){null!==h&&A(e,h)},_=function(e){var n=e.target.value,t=d.value||[];if(d.onKeyDown&&d.onKeyDown(e),!e.defaultPrevented)switch(e.code){case"Backspace":0===n.length&&t.length>0&&A(e,t.length-1);break;case"Enter":case"NumpadEnter":n&&n.trim().length&&(!d.max||d.max>t.length)&&N(e,n,!0);break;case"ArrowLeft":0===n.length&&t&&t.length>0&&u.DomHandler.focus(S.current);break;case"ArrowRight":e.stopPropagation();break;default:d.keyfilter&&a.KeyFilter.onKeyPress(e,d.keyfilter),L()?e.preventDefault():","===d.separator&&(e.key===d.separator||u.DomHandler.isAndroid()&&229===e.which)&&N(e,n,!0)}},B=function(e,n,t){d.onChange&&d.onChange({originalEvent:e,value:n,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{name:d.name,id:d.id,value:n}}),I.current.value="",t&&e.preventDefault()},K=function(e){if(d.separator){var n=d.separator.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t"),t=(e.clipboardData||window.clipboardData).getData("Text");if(d.keyfilter&&a.KeyFilter.onPaste(e,d.keyfilter),t){var r=d.value||[],o=t.split(n);o=o.filter((function(e){return(d.allowDuplicate||-1===r.indexOf(e))&&e.trim().length})),r=[].concat(O(r),O(o)),B(e,r,!0)}}},U=function(e){b(!0)},H=function(){g(-1),b(!1)},M=function(e){if(d.addOnBlur){var n=e.target.value,t=d.value||[];n&&n.trim().length&&(!d.max||d.max>t.length)&&N(e,n,!0)}b(!1),d.onBlur&&d.onBlur(e)},L=function(){return d.max&&d.value&&d.max===d.value.length},z=I.current&&I.current.value,J=s.useMemo((function(){return u.ObjectUtils.isNotEmpty(d.value)||u.ObjectUtils.isNotEmpty(z)}),[d.value,z]),V=function(e,n){return u.ObjectUtils.getPropValue(d.removable,{value:e,index:n,props:d})};s.useImperativeHandle(n,(function(){return{props:d,focus:function(){return u.DomHandler.focus(I.current)},getElement:function(){return D.current},getInput:function(){return I.current}}})),s.useEffect((function(){u.ObjectUtils.combinedRefs(I,d.inputRef)}),[I,d.inputRef]),o.useMountEffect((function(){d.autoFocus&&u.DomHandler.focus(I.current,d.autoFocus)}));var X,Y,$,q,G,Q=function(e,n){var t=c({className:x("removeTokenIcon"),onClick:function(e){return A(e,n)},"aria-hidden":"true"},k("removeTokenIcon")),r=u.IconUtils.getJSXIcon(d.removeIcon||s.createElement(i.TimesCircleIcon,t),E({},t),{props:d});return d.disabled||d.readOnly||!V(e,n)?null:r},W=function(e,n){var t=d.itemTemplate?d.itemTemplate(e):e,r=c({className:x("label")},k("label")),o=s.createElement("span",r,t),i=Q(e,n),a=c({key:"".concat(n,"_").concat(e),id:d.inputId+"_chips_item_"+n,role:"option","aria-label":e,className:x("token",{focusedIndex:h,index:n}),"aria-selected":!0,"aria-setsize":d.value.length,"aria-posinset":n+1,"data-p-highlight":!0,"data-p-focused":h===n},k("token"));return s.createElement("li",a,o,i)},Z=u.ObjectUtils.isNotEmpty(d.tooltip),ee=P.getOtherProps(d),ne=u.ObjectUtils.reduceKeys(ee,u.DomHandler.ARIA_PROPS),te=($=d.value?d.value.map(W):null,X=c({className:x("inputToken")},k("inputToken")),Y=c(E({id:d.inputId,ref:I,placeholder:d.placeholder,type:"text",name:d.name,disabled:d.disabled||L(),onKeyDown:function(e){return _(e)},onPaste:function(e){return K(e)},onFocus:function(e){return n=e,b(!0),g(null),void(d.onFocus&&d.onFocus(n));var n},onBlur:function(e){return M(e)},readOnly:d.readOnly},ne),k("input")),q=s.createElement("li",X,s.createElement("input",Y)),G=c({ref:S,className:x("container",{isFilled:J}),onClick:function(e){u.DomHandler.focus(I.current)},onKeyDown:function(e){return R(e)},tabIndex:-1,role:"listbox","aria-orientation":"horizontal","aria-labelledby":d.ariaLabelledby,"aria-label":d.ariaLabel,"aria-activedescendant":v?null!==h?"".concat(d.inputId,"_chips_item_").concat(h):null:void 0,"data-p-disabled":d.disabled,"data-p-focus":v,onFocus:U,onBlur:H},k("container")),s.createElement("ul",G,$,q)),re=c({id:d.id,ref:D,className:u.classNames(d.className,x("root",{isFilled:J,focusedState:v,disabled:d.disabled})),style:d.style},k("root"));return s.createElement(s.Fragment,null,s.createElement("div",re,te),Z&&s.createElement(l.Tooltip,p({target:I,content:d.tooltip},d.tooltipOptions,{pt:k("tooltip")})))})));return S.displayName="Chips",e.Chips=S,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.icons.timescircle,primereact.keyfilter,primereact.tooltip,primereact.utils);
|