primereact 9.0.0-rc.1 → 9.1.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/README.md +2 -2
- package/accordion/accordion.d.ts +2 -2
- package/autocomplete/autocomplete.d.ts +2 -2
- package/avatar/avatar.d.ts +2 -2
- package/avatargroup/avatargroup.d.ts +2 -2
- package/badge/badge.d.ts +2 -2
- package/blockui/blockui.d.ts +2 -2
- package/breadcrumb/breadcrumb.d.ts +2 -2
- package/button/button.cjs.js +15 -2
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +46 -2
- package/button/button.esm.js +15 -2
- package/button/button.esm.min.js +1 -1
- package/button/button.js +15 -2
- package/button/button.min.js +1 -1
- package/calendar/calendar.d.ts +2 -2
- package/card/card.d.ts +2 -2
- package/carousel/carousel.d.ts +2 -3
- package/cascadeselect/cascadeselect.cjs.js +28 -0
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +11 -2
- package/cascadeselect/cascadeselect.esm.js +29 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +28 -0
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.d.ts +2 -2
- package/checkbox/checkbox.d.ts +2 -2
- package/chip/chip.d.ts +2 -2
- package/chips/chips.d.ts +2 -2
- package/colorpicker/colorpicker.d.ts +2 -2
- package/column/column.d.ts +3 -45
- package/columngroup/columngroup.d.ts +2 -2
- package/confirmdialog/confirmdialog.d.ts +2 -4
- package/confirmpopup/confirmpopup.d.ts +2 -4
- package/contextmenu/contextmenu.d.ts +2 -2
- package/core/core.js +33 -3
- package/core/core.min.js +4 -4
- package/csstransition/csstransition.d.ts +2 -2
- package/datascroller/datascroller.d.ts +2 -2
- package/datatable/datatable.d.ts +10 -29
- package/dataview/dataview.d.ts +3 -5
- package/deferredcontent/deferredcontent.d.ts +2 -2
- package/dialog/dialog.d.ts +2 -3
- package/divider/divider.d.ts +2 -2
- package/dock/dock.d.ts +2 -4
- package/dropdown/dropdown.d.ts +2 -3
- package/editor/editor.d.ts +2 -2
- package/fieldset/fieldset.d.ts +2 -2
- package/fileupload/fileupload.cjs.js +156 -23
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +2 -6
- package/fileupload/fileupload.esm.js +156 -23
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +156 -23
- package/fileupload/fileupload.min.css +1 -1
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.d.ts +2 -3
- package/hooks/hooks.cjs.js +15 -0
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +2 -8
- package/hooks/hooks.esm.js +15 -0
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +15 -0
- package/hooks/hooks.min.js +1 -1
- package/image/image.d.ts +2 -2
- package/inplace/inplace.d.ts +20 -10
- package/inputmask/inputmask.d.ts +2 -2
- package/inputnumber/inputnumber.d.ts +2 -2
- package/inputswitch/inputswitch.d.ts +2 -2
- package/inputtext/inputtext.d.ts +2 -2
- package/inputtextarea/inputtextarea.d.ts +2 -2
- package/knob/knob.d.ts +2 -2
- package/listbox/listbox.d.ts +2 -5
- package/megamenu/megamenu.d.ts +2 -2
- package/mention/mention.d.ts +2 -3
- package/menu/menu.d.ts +2 -2
- package/menubar/menubar.d.ts +2 -2
- package/menubar/menubar.min.css +1 -1
- package/menuitem/menuitem.d.ts +3 -4
- package/message/message.d.ts +2 -2
- package/messages/messages.d.ts +2 -2
- package/multiselect/multiselect.d.ts +2 -4
- package/multistatecheckbox/multistatecheckbox.d.ts +2 -3
- package/orderlist/orderlist.cjs.js +33 -2
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +7 -3
- package/orderlist/orderlist.esm.js +31 -3
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +33 -2
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +2 -1
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +6 -2
- package/organizationchart/organizationchart.esm.js +2 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +2 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +2 -3
- package/overlayservice/overlayservice.d.ts +2 -3
- package/package.json +3 -3
- package/paginator/paginator.cjs.js +1 -1
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +5 -17
- package/paginator/paginator.esm.js +1 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +1 -1
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.d.ts +2 -3
- package/panelmenu/panelmenu.d.ts +2 -2
- package/password/password.d.ts +2 -2
- package/picklist/picklist.cjs.js +34 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +12 -3
- package/picklist/picklist.esm.js +32 -3
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +34 -2
- package/picklist/picklist.min.js +1 -1
- package/primereact.all.cjs.js +191 -27
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +191 -27
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +191 -27
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.d.ts +2 -2
- package/progressspinner/progressspinner.d.ts +2 -2
- package/radiobutton/radiobutton.d.ts +2 -2
- package/rating/rating.d.ts +2 -2
- package/resources/primereact.css +643 -625
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +1 -44
- package/resources/themes/arya-green/theme.css +1 -44
- package/resources/themes/arya-orange/theme.css +1 -44
- package/resources/themes/arya-purple/theme.css +1 -44
- package/resources/themes/bootstrap4-dark-blue/theme.css +0 -44
- package/resources/themes/bootstrap4-dark-purple/theme.css +0 -44
- package/resources/themes/bootstrap4-light-blue/theme.css +0 -44
- package/resources/themes/bootstrap4-light-purple/theme.css +0 -44
- package/resources/themes/fluent-light/theme.css +0 -44
- package/resources/themes/lara-dark-blue/theme.css +0 -44
- package/resources/themes/lara-dark-indigo/theme.css +0 -44
- package/resources/themes/lara-dark-purple/theme.css +0 -44
- package/resources/themes/lara-dark-teal/theme.css +0 -44
- package/resources/themes/lara-light-blue/theme.css +0 -44
- package/resources/themes/lara-light-indigo/theme.css +0 -44
- package/resources/themes/lara-light-purple/theme.css +0 -44
- package/resources/themes/lara-light-teal/theme.css +0 -44
- package/resources/themes/luna-amber/theme.css +0 -44
- package/resources/themes/luna-blue/theme.css +0 -44
- package/resources/themes/luna-green/theme.css +0 -44
- package/resources/themes/luna-pink/theme.css +0 -44
- package/resources/themes/md-dark-deeppurple/theme.css +0 -44
- package/resources/themes/md-dark-indigo/theme.css +0 -44
- package/resources/themes/md-light-deeppurple/theme.css +0 -44
- package/resources/themes/md-light-indigo/theme.css +0 -44
- package/resources/themes/mdc-dark-deeppurple/theme.css +0 -44
- package/resources/themes/mdc-dark-indigo/theme.css +0 -44
- package/resources/themes/mdc-light-deeppurple/theme.css +0 -44
- package/resources/themes/mdc-light-indigo/theme.css +0 -44
- package/resources/themes/mira/theme.css +0 -44
- package/resources/themes/nano/theme.css +0 -44
- package/resources/themes/nova/theme.css +0 -44
- package/resources/themes/nova-accent/theme.css +0 -44
- package/resources/themes/nova-alt/theme.css +0 -44
- package/resources/themes/rhea/theme.css +0 -44
- package/resources/themes/saga-blue/theme.css +0 -44
- package/resources/themes/saga-green/theme.css +0 -44
- package/resources/themes/saga-orange/theme.css +0 -44
- package/resources/themes/saga-purple/theme.css +0 -44
- package/resources/themes/soho-dark/theme.css +0 -44
- package/resources/themes/soho-light/theme.css +0 -44
- package/resources/themes/tailwind-light/theme.css +7 -54
- package/resources/themes/vela-blue/theme.css +0 -44
- package/resources/themes/vela-green/theme.css +0 -44
- package/resources/themes/vela-orange/theme.css +0 -44
- package/resources/themes/vela-purple/theme.css +0 -44
- package/resources/themes/viva-dark/theme.css +0 -44
- package/resources/themes/viva-light/theme.css +0 -44
- package/ripple/ripple.d.ts +2 -2
- package/row/row.d.ts +2 -2
- package/scrollpanel/scrollpanel.d.ts +2 -2
- package/scrolltop/scrolltop.d.ts +2 -2
- package/selectbutton/selectbutton.d.ts +2 -2
- package/selectitem/selectitem.d.ts +0 -1
- package/sidebar/sidebar.d.ts +2 -2
- package/skeleton/skeleton.d.ts +2 -2
- package/slidemenu/slidemenu.d.ts +2 -2
- package/slider/slider.d.ts +2 -2
- package/speeddial/speeddial.d.ts +2 -3
- package/splitbutton/splitbutton.d.ts +2 -2
- package/splitter/splitter.d.ts +2 -2
- package/steps/steps.d.ts +2 -2
- package/styleclass/styleclass.d.ts +2 -2
- package/tabmenu/tabmenu.d.ts +2 -2
- package/tabview/tabview.d.ts +2 -3
- package/tag/tag.d.ts +2 -2
- package/terminal/terminal.d.ts +2 -2
- package/terminalservice/terminalservice.d.ts +2 -3
- package/tieredmenu/tieredmenu.d.ts +2 -2
- package/timeline/timeline.d.ts +2 -2
- package/toast/toast.d.ts +2 -3
- package/togglebutton/togglebutton.d.ts +2 -3
- package/toolbar/toolbar.d.ts +2 -2
- package/tooltip/tooltip.d.ts +2 -2
- package/tooltip/tooltipoptions.d.ts +49 -14
- package/tree/tree.d.ts +2 -11
- package/treeselect/treeselect.d.ts +2 -7
- package/treetable/treetable.d.ts +2 -7
- package/tristatecheckbox/tristatecheckbox.d.ts +2 -2
- package/virtualscroller/virtualscroller.cjs.js +2 -0
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +2 -9
- package/virtualscroller/virtualscroller.esm.js +2 -0
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +2 -0
- package/virtualscroller/virtualscroller.min.css +1 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +2 -2
- package/accordion/package.json +0 -7
- package/api/package.json +0 -7
- package/autocomplete/package.json +0 -7
- package/avatar/package.json +0 -7
- package/avatargroup/package.json +0 -7
- package/badge/package.json +0 -7
- package/blockui/package.json +0 -7
- package/breadcrumb/package.json +0 -7
- package/button/package.json +0 -7
- package/calendar/package.json +0 -7
- package/card/package.json +0 -7
- package/carousel/package.json +0 -7
- package/cascadeselect/package.json +0 -7
- package/chart/package.json +0 -7
- package/checkbox/package.json +0 -7
- package/chip/package.json +0 -7
- package/chips/package.json +0 -7
- package/colorpicker/package.json +0 -7
- package/column/package.json +0 -7
- package/columngroup/package.json +0 -7
- package/confirmdialog/package.json +0 -7
- package/confirmpopup/package.json +0 -7
- package/contextmenu/package.json +0 -7
- package/csstransition/package.json +0 -7
- package/datascroller/package.json +0 -7
- package/datatable/package.json +0 -7
- package/dataview/package.json +0 -7
- package/deferredcontent/package.json +0 -7
- package/dialog/package.json +0 -7
- package/divider/package.json +0 -7
- package/dock/package.json +0 -7
- package/dropdown/package.json +0 -7
- package/editor/package.json +0 -7
- package/fieldset/package.json +0 -7
- package/fileupload/package.json +0 -7
- package/galleria/package.json +0 -7
- package/hooks/package.json +0 -7
- package/image/package.json +0 -7
- package/inplace/package.json +0 -7
- package/inputmask/package.json +0 -7
- package/inputnumber/package.json +0 -7
- package/inputswitch/package.json +0 -7
- package/inputtext/package.json +0 -7
- package/inputtextarea/package.json +0 -7
- package/keyfilter/package.json +0 -7
- package/knob/package.json +0 -7
- package/listbox/package.json +0 -7
- package/megamenu/package.json +0 -7
- package/mention/package.json +0 -7
- package/menu/package.json +0 -7
- package/menubar/package.json +0 -7
- package/menuitem/package.json +0 -4
- package/message/package.json +0 -7
- package/messages/package.json +0 -7
- package/multiselect/package.json +0 -7
- package/multistatecheckbox/package.json +0 -7
- package/orderlist/package.json +0 -7
- package/organizationchart/package.json +0 -7
- package/overlaypanel/package.json +0 -7
- package/overlayservice/package.json +0 -7
- package/paginator/package.json +0 -7
- package/panel/package.json +0 -7
- package/panelmenu/package.json +0 -7
- package/password/package.json +0 -7
- package/picklist/package.json +0 -7
- package/portal/package.json +0 -6
- package/progressbar/package.json +0 -7
- package/progressspinner/package.json +0 -7
- package/radiobutton/package.json +0 -7
- package/rating/package.json +0 -7
- package/ripple/package.json +0 -7
- package/row/package.json +0 -7
- package/scrollpanel/package.json +0 -7
- package/scrolltop/package.json +0 -7
- package/selectbutton/package.json +0 -7
- package/selectitem/package.json +0 -4
- package/sidebar/package.json +0 -7
- package/skeleton/package.json +0 -7
- package/slidemenu/package.json +0 -7
- package/slider/package.json +0 -7
- package/speeddial/package.json +0 -7
- package/splitbutton/package.json +0 -7
- package/splitter/package.json +0 -7
- package/steps/package.json +0 -7
- package/styleclass/package.json +0 -7
- package/tabmenu/package.json +0 -7
- package/tabview/package.json +0 -7
- package/tag/package.json +0 -7
- package/terminal/package.json +0 -7
- package/terminalservice/package.json +0 -7
- package/tieredmenu/package.json +0 -7
- package/timeline/package.json +0 -7
- package/toast/package.json +0 -7
- package/togglebutton/package.json +0 -7
- package/toolbar/package.json +0 -7
- package/tooltip/package.json +0 -7
- package/tree/package.json +0 -7
- package/treenode/package.json +0 -4
- package/treeselect/package.json +0 -7
- package/treetable/package.json +0 -7
- package/tristatecheckbox/package.json +0 -7
- package/utils/package.json +0 -7
- package/virtualscroller/package.json +0 -7
package/primereact.all.cjs.js
CHANGED
|
@@ -3336,6 +3336,19 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
3336
3336
|
_useResizeListener2 = _slicedToArray(_useResizeListener, 2),
|
|
3337
3337
|
bindWindowResizeListener = _useResizeListener2[0],
|
|
3338
3338
|
unbindWindowResizeListener = _useResizeListener2[1];
|
|
3339
|
+
var _useEventListener3 = useEventListener({
|
|
3340
|
+
target: 'window',
|
|
3341
|
+
type: 'orientationchange',
|
|
3342
|
+
listener: function listener(event) {
|
|
3343
|
+
_listener && _listener(event, {
|
|
3344
|
+
type: 'orientationchange',
|
|
3345
|
+
valid: true
|
|
3346
|
+
});
|
|
3347
|
+
}
|
|
3348
|
+
}),
|
|
3349
|
+
_useEventListener4 = _slicedToArray(_useEventListener3, 2),
|
|
3350
|
+
bindWindowOrientationChangeListener = _useEventListener4[0],
|
|
3351
|
+
unbindWindowOrientationChangeListener = _useEventListener4[1];
|
|
3339
3352
|
var _useOverlayScrollList = useOverlayScrollListener({
|
|
3340
3353
|
target: target,
|
|
3341
3354
|
listener: function listener(event) {
|
|
@@ -3354,11 +3367,13 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
3354
3367
|
var bind = function bind() {
|
|
3355
3368
|
bindDocumentClickListener();
|
|
3356
3369
|
bindWindowResizeListener();
|
|
3370
|
+
bindWindowOrientationChangeListener();
|
|
3357
3371
|
bindOverlayScrollListener();
|
|
3358
3372
|
};
|
|
3359
3373
|
var unbind = function unbind() {
|
|
3360
3374
|
unbindDocumentClickListener();
|
|
3361
3375
|
unbindWindowResizeListener();
|
|
3376
|
+
unbindWindowOrientationChangeListener();
|
|
3362
3377
|
unbindOverlayScrollListener();
|
|
3363
3378
|
};
|
|
3364
3379
|
React__namespace.useEffect(function () {
|
|
@@ -4414,8 +4429,15 @@ var ButtonBase = {
|
|
|
4414
4429
|
icon: null,
|
|
4415
4430
|
iconPos: 'left',
|
|
4416
4431
|
badge: null,
|
|
4432
|
+
severity: null,
|
|
4433
|
+
rounded: false,
|
|
4434
|
+
raised: false,
|
|
4435
|
+
outlined: false,
|
|
4436
|
+
text: false,
|
|
4437
|
+
link: false,
|
|
4417
4438
|
badgeClassName: null,
|
|
4418
4439
|
tooltip: null,
|
|
4440
|
+
size: null,
|
|
4419
4441
|
tooltipOptions: null,
|
|
4420
4442
|
disabled: false,
|
|
4421
4443
|
loading: false,
|
|
@@ -4432,6 +4454,7 @@ var ButtonBase = {
|
|
|
4432
4454
|
};
|
|
4433
4455
|
|
|
4434
4456
|
var Button = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
4457
|
+
var _classNames2;
|
|
4435
4458
|
var props = ButtonBase.getProps(inProps);
|
|
4436
4459
|
var elementRef = React__namespace.useRef(ref);
|
|
4437
4460
|
React__namespace.useEffect(function () {
|
|
@@ -4477,13 +4500,18 @@ var Button = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.f
|
|
|
4477
4500
|
var showTooltip = !disabled || props.tooltipOptions && props.tooltipOptions.showOnDisabled;
|
|
4478
4501
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip) && showTooltip;
|
|
4479
4502
|
var otherProps = ButtonBase.getOtherProps(props);
|
|
4480
|
-
var className = classNames('p-button p-component', props.className,
|
|
4503
|
+
var className = classNames('p-button p-component', props.className, (_classNames2 = {
|
|
4481
4504
|
'p-button-icon-only': (props.icon || props.loading && props.loadingIcon) && !props.label && !props.children,
|
|
4482
4505
|
'p-button-vertical': (props.iconPos === 'top' || props.iconPos === 'bottom') && props.label,
|
|
4483
4506
|
'p-disabled': disabled,
|
|
4484
4507
|
'p-button-loading': props.loading,
|
|
4508
|
+
'p-button-outlined': props.outlined,
|
|
4509
|
+
'p-button-raised': props.raised,
|
|
4510
|
+
'p-button-link': props.link,
|
|
4511
|
+
'p-button-text': props.text,
|
|
4512
|
+
'p-button-rounded': props.rounded,
|
|
4485
4513
|
'p-button-loading-label-only': props.loading && !props.icon && props.label
|
|
4486
|
-
}, "p-button-loading-".concat(props.iconPos), props.loading && props.loadingIcon && props.label));
|
|
4514
|
+
}, _defineProperty(_classNames2, "p-button-loading-".concat(props.iconPos), props.loading && props.loadingIcon && props.label), _defineProperty(_classNames2, "p-button-".concat(props.size), props.size), _defineProperty(_classNames2, "p-button-".concat(props.severity), props.severity), _classNames2));
|
|
4487
4515
|
var icon = createIcon();
|
|
4488
4516
|
var label = createLabel();
|
|
4489
4517
|
var badge = createBadge();
|
|
@@ -5439,6 +5467,8 @@ var VirtualScroller = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__na
|
|
|
5439
5467
|
var otherProps = VirtualScrollerBase.getOtherProps(props);
|
|
5440
5468
|
var className = classNames('p-virtualscroller', {
|
|
5441
5469
|
'p-both-scroll': both,
|
|
5470
|
+
'p-virtualscroller-both': both,
|
|
5471
|
+
'p-virtualscroller-horizontal': horizontal,
|
|
5442
5472
|
'p-horizontal-scroll': horizontal
|
|
5443
5473
|
}, props.className);
|
|
5444
5474
|
var loader = createLoader();
|
|
@@ -10198,12 +10228,14 @@ var CascadeSelectBase = {
|
|
|
10198
10228
|
itemTemplate: null,
|
|
10199
10229
|
disabled: false,
|
|
10200
10230
|
dataKey: null,
|
|
10231
|
+
breakpoint: undefined,
|
|
10201
10232
|
inputId: null,
|
|
10202
10233
|
tabIndex: null,
|
|
10203
10234
|
ariaLabelledBy: null,
|
|
10204
10235
|
appendTo: null,
|
|
10205
10236
|
transitionOptions: null,
|
|
10206
10237
|
dropdownIcon: 'pi pi-chevron-down',
|
|
10238
|
+
scrollHeight: '400px',
|
|
10207
10239
|
onChange: null,
|
|
10208
10240
|
onGroupChange: null,
|
|
10209
10241
|
onBeforeShow: null,
|
|
@@ -10432,10 +10464,15 @@ var CascadeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__name
|
|
|
10432
10464
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
10433
10465
|
overlayVisibleState = _React$useState4[0],
|
|
10434
10466
|
setOverlayVisibleState = _React$useState4[1];
|
|
10467
|
+
var _React$useState5 = React__namespace.useState(null),
|
|
10468
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
10469
|
+
attributeSelectorState = _React$useState6[0],
|
|
10470
|
+
setAttributeSelectorState = _React$useState6[1];
|
|
10435
10471
|
var elementRef = React__namespace.useRef(null);
|
|
10436
10472
|
var overlayRef = React__namespace.useRef(null);
|
|
10437
10473
|
var inputRef = React__namespace.useRef(null);
|
|
10438
10474
|
var labelRef = React__namespace.useRef(null);
|
|
10475
|
+
var styleElementRef = React__namespace.useRef(null);
|
|
10439
10476
|
var dirty = React__namespace.useRef(false);
|
|
10440
10477
|
var selectionPath = React__namespace.useRef(null);
|
|
10441
10478
|
var _useOverlayListener = useOverlayListener({
|
|
@@ -10580,6 +10617,10 @@ var CascadeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__name
|
|
|
10580
10617
|
var onOverlayEnter = function onOverlayEnter() {
|
|
10581
10618
|
ZIndexUtils.set('overlay', overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
10582
10619
|
alignOverlay();
|
|
10620
|
+
if (attributeSelectorState && props.breakpoint) {
|
|
10621
|
+
overlayRef.current.setAttribute(attributeSelectorState + '_panel', '');
|
|
10622
|
+
createStyle();
|
|
10623
|
+
}
|
|
10583
10624
|
};
|
|
10584
10625
|
var onOverlayEntered = function onOverlayEntered() {
|
|
10585
10626
|
bindOverlayListener();
|
|
@@ -10592,10 +10633,22 @@ var CascadeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__name
|
|
|
10592
10633
|
var onOverlayExited = function onOverlayExited() {
|
|
10593
10634
|
ZIndexUtils.clear(overlayRef.current);
|
|
10594
10635
|
props.onHide && props.onHide();
|
|
10636
|
+
destroyStyle();
|
|
10595
10637
|
};
|
|
10596
10638
|
var alignOverlay = function alignOverlay() {
|
|
10597
10639
|
DomHandler.alignOverlay(overlayRef.current, labelRef.current.parentElement, props.appendTo || PrimeReact.appendTo);
|
|
10598
10640
|
};
|
|
10641
|
+
var createStyle = function createStyle() {
|
|
10642
|
+
if (!styleElementRef.current) {
|
|
10643
|
+
styleElementRef.current = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
10644
|
+
var selector = "".concat(attributeSelectorState, "_panel");
|
|
10645
|
+
var innerHTML = "\n@media screen and (max-width: ".concat(props.breakpoint, ") {\n .p-cascadeselect-panel[").concat(selector, "] .p-cascadeselect-items-wrapper > ul {\n max-height: ").concat(props.scrollHeight, ";\n overflow: ").concat(props.scrollHeight ? 'auto' : '', ";\n }\n\n .p-cascadeselect-panel[").concat(selector, "] .p-cascadeselect-sublist {\n position: relative;\n }\n\n .p-cascadeselect-panel[").concat(selector, "] .p-cascadeselect-item-active > .p-cascadeselect-sublist {\n left: 0 !important;\n box-shadow: none;\n border-radius: 0;\n padding: 0 0 0 calc(var(--inline-spacing) * 2); /* @todo */\n }\n\n .p-cascadeselect-panel[").concat(selector, "] .p-cascadeselect-group-icon:before {\n content: \"\\e930\";\n }\n}\n");
|
|
10646
|
+
styleElementRef.current.innerHTML = innerHTML;
|
|
10647
|
+
}
|
|
10648
|
+
};
|
|
10649
|
+
var destroyStyle = function destroyStyle() {
|
|
10650
|
+
styleElementRef.current = DomHandler.removeInlineStyle(styleElementRef.current);
|
|
10651
|
+
};
|
|
10599
10652
|
React__namespace.useImperativeHandle(ref, function () {
|
|
10600
10653
|
return {
|
|
10601
10654
|
props: props,
|
|
@@ -10616,6 +10669,11 @@ var CascadeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__name
|
|
|
10616
10669
|
}
|
|
10617
10670
|
};
|
|
10618
10671
|
});
|
|
10672
|
+
useMountEffect(function () {
|
|
10673
|
+
if (props.breakpoint) {
|
|
10674
|
+
!attributeSelectorState && setAttributeSelectorState(UniqueComponentId());
|
|
10675
|
+
}
|
|
10676
|
+
});
|
|
10619
10677
|
React__namespace.useEffect(function () {
|
|
10620
10678
|
ObjectUtils.combinedRefs(inputRef, props.inputRef);
|
|
10621
10679
|
}, [inputRef, props.inputRef]);
|
|
@@ -13855,7 +13913,7 @@ var FirstPageLinkBase = {
|
|
|
13855
13913
|
};
|
|
13856
13914
|
var JumpToPageInputBase = {
|
|
13857
13915
|
defaultProps: {
|
|
13858
|
-
__TYPE: '
|
|
13916
|
+
__TYPE: 'JumpToPageInput',
|
|
13859
13917
|
page: null,
|
|
13860
13918
|
rows: null,
|
|
13861
13919
|
pageCount: null,
|
|
@@ -23053,26 +23111,31 @@ var FileUpload = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
23053
23111
|
var props = FileUploadBase.getProps(inProps);
|
|
23054
23112
|
var _React$useState = React__namespace.useState([]),
|
|
23055
23113
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
23056
|
-
|
|
23057
|
-
|
|
23058
|
-
var _React$useState3 = React__namespace.useState(
|
|
23114
|
+
uploadedFilesState = _React$useState2[0],
|
|
23115
|
+
setUploadedFilesState = _React$useState2[1];
|
|
23116
|
+
var _React$useState3 = React__namespace.useState([]),
|
|
23059
23117
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
23060
|
-
|
|
23061
|
-
|
|
23062
|
-
var _React$useState5 = React__namespace.useState(
|
|
23118
|
+
filesState = _React$useState4[0],
|
|
23119
|
+
setFilesState = _React$useState4[1];
|
|
23120
|
+
var _React$useState5 = React__namespace.useState(0),
|
|
23063
23121
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
23064
|
-
|
|
23065
|
-
|
|
23122
|
+
progressState = _React$useState6[0],
|
|
23123
|
+
setProgressState = _React$useState6[1];
|
|
23066
23124
|
var _React$useState7 = React__namespace.useState(false),
|
|
23067
23125
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
23068
|
-
|
|
23069
|
-
|
|
23126
|
+
focusedState = _React$useState8[0],
|
|
23127
|
+
setFocusedState = _React$useState8[1];
|
|
23128
|
+
var _React$useState9 = React__namespace.useState(false),
|
|
23129
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
23130
|
+
uploadingState = _React$useState10[0],
|
|
23131
|
+
setUploadingState = _React$useState10[1];
|
|
23070
23132
|
var fileInputRef = React__namespace.useRef(null);
|
|
23071
23133
|
var messagesRef = React__namespace.useRef(null);
|
|
23072
23134
|
var contentRef = React__namespace.useRef(null);
|
|
23073
23135
|
var duplicateIEEvent = React__namespace.useRef(false);
|
|
23074
23136
|
var uploadedFileCount = React__namespace.useRef(0);
|
|
23075
23137
|
var hasFiles = ObjectUtils.isNotEmpty(filesState);
|
|
23138
|
+
var hasUploadedFiles = ObjectUtils.isNotEmpty(uploadedFilesState);
|
|
23076
23139
|
var disabled = props.disabled || uploadingState;
|
|
23077
23140
|
var chooseButtonLabel = props.chooseLabel || props.chooseOptions.label || localeOption('choose');
|
|
23078
23141
|
var uploadButtonLabel = props.uploadLabel || props.uploadOptions.label || localeOption('upload');
|
|
@@ -23096,6 +23159,19 @@ var FileUpload = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
23096
23159
|
});
|
|
23097
23160
|
}
|
|
23098
23161
|
};
|
|
23162
|
+
var removeUploadedFiles = function removeUploadedFiles(event, index) {
|
|
23163
|
+
clearInput();
|
|
23164
|
+
var currentUploadedFiles = _toConsumableArray(uploadedFilesState);
|
|
23165
|
+
var removedFile = filesState[index];
|
|
23166
|
+
currentUploadedFiles.splice(index, 1);
|
|
23167
|
+
setUploadedFilesState(currentUploadedFiles);
|
|
23168
|
+
if (props.onRemove) {
|
|
23169
|
+
props.onRemove({
|
|
23170
|
+
originalEvent: event,
|
|
23171
|
+
file: removedFile
|
|
23172
|
+
});
|
|
23173
|
+
}
|
|
23174
|
+
};
|
|
23099
23175
|
var clearInput = function clearInput() {
|
|
23100
23176
|
if (fileInputRef.current) {
|
|
23101
23177
|
fileInputRef.current.value = '';
|
|
@@ -23260,6 +23336,9 @@ var FileUpload = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
23260
23336
|
});
|
|
23261
23337
|
}
|
|
23262
23338
|
}
|
|
23339
|
+
setUploadedFilesState(function (prevUploadedFiles) {
|
|
23340
|
+
return [].concat(_toConsumableArray(prevUploadedFiles), _toConsumableArray(files));
|
|
23341
|
+
});
|
|
23263
23342
|
clear();
|
|
23264
23343
|
}
|
|
23265
23344
|
};
|
|
@@ -23399,27 +23478,37 @@ var FileUpload = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
23399
23478
|
tabIndex: 0
|
|
23400
23479
|
}, input, icon, label, /*#__PURE__*/React__namespace.createElement(Ripple, null));
|
|
23401
23480
|
};
|
|
23402
|
-
var
|
|
23481
|
+
var onRemoveClick = function onRemoveClick(e, badgeOptions, index) {
|
|
23482
|
+
if (badgeOptions.severity === 'warning') remove(e, index);else removeUploadedFiles(e, index);
|
|
23483
|
+
};
|
|
23484
|
+
var createFile = function createFile(file, index, badgeOptions) {
|
|
23403
23485
|
var key = file.name + file.type + file.size;
|
|
23404
|
-
var preview = isImage(file) ? /*#__PURE__*/React__namespace.createElement("
|
|
23405
|
-
alt: file.name,
|
|
23486
|
+
var preview = isImage(file) ? /*#__PURE__*/React__namespace.createElement("img", {
|
|
23406
23487
|
role: "presentation",
|
|
23488
|
+
className: "p-fileupload-file-thumbnail",
|
|
23489
|
+
alt: file.name,
|
|
23407
23490
|
src: file.objectURL,
|
|
23408
23491
|
width: props.previewWidth
|
|
23409
|
-
})
|
|
23492
|
+
}) : null;
|
|
23410
23493
|
var fileName = /*#__PURE__*/React__namespace.createElement("div", {
|
|
23411
23494
|
className: "p-fileupload-filename"
|
|
23412
23495
|
}, file.name);
|
|
23413
23496
|
var size = /*#__PURE__*/React__namespace.createElement("div", null, formatSize(file.size));
|
|
23497
|
+
var contentBody = /*#__PURE__*/React__namespace.createElement("div", null, /*#__PURE__*/React__namespace.createElement("div", null, " ", file.name), /*#__PURE__*/React__namespace.createElement("span", null, formatSize(file.size)), /*#__PURE__*/React__namespace.createElement(Badge, {
|
|
23498
|
+
className: "p-fileupload-file-badge",
|
|
23499
|
+
value: badgeOptions.value,
|
|
23500
|
+
severity: badgeOptions.severity
|
|
23501
|
+
}));
|
|
23414
23502
|
var removeButton = /*#__PURE__*/React__namespace.createElement("div", null, /*#__PURE__*/React__namespace.createElement(Button, {
|
|
23415
23503
|
type: "button",
|
|
23416
23504
|
icon: "pi pi-times",
|
|
23505
|
+
className: "p-button-danger p-button-text p-button-rounded",
|
|
23417
23506
|
onClick: function onClick(e) {
|
|
23418
|
-
return
|
|
23507
|
+
return onRemoveClick(e, badgeOptions, index);
|
|
23419
23508
|
},
|
|
23420
23509
|
disabled: disabled
|
|
23421
23510
|
}));
|
|
23422
|
-
var content = /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, preview,
|
|
23511
|
+
var content = /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, preview, contentBody, removeButton);
|
|
23423
23512
|
if (props.itemTemplate) {
|
|
23424
23513
|
var defaultContentOptions = {
|
|
23425
23514
|
onRemove: function onRemove(event) {
|
|
@@ -23442,13 +23531,27 @@ var FileUpload = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
23442
23531
|
}, content);
|
|
23443
23532
|
};
|
|
23444
23533
|
var createFiles = function createFiles() {
|
|
23445
|
-
var
|
|
23446
|
-
|
|
23447
|
-
|
|
23448
|
-
}
|
|
23534
|
+
var badgeOptions = {
|
|
23535
|
+
severity: 'warning',
|
|
23536
|
+
value: 'Pending'
|
|
23537
|
+
};
|
|
23538
|
+
var content = filesState.map(function (file, index) {
|
|
23539
|
+
return createFile(file, index, badgeOptions);
|
|
23540
|
+
});
|
|
23541
|
+
return /*#__PURE__*/React__namespace.createElement("div", null, content);
|
|
23542
|
+
};
|
|
23543
|
+
var createUploadedFiles = function createUploadedFiles() {
|
|
23544
|
+
var badgeOptions = {
|
|
23545
|
+
severity: 'success',
|
|
23546
|
+
value: 'Completed'
|
|
23547
|
+
};
|
|
23548
|
+
var content = uploadedFilesState && uploadedFilesState.map(function (file, index) {
|
|
23549
|
+
return createFile(file, index, badgeOptions);
|
|
23550
|
+
});
|
|
23551
|
+
return /*#__PURE__*/React__namespace.createElement("div", null, content);
|
|
23449
23552
|
};
|
|
23450
23553
|
var createEmptyContent = function createEmptyContent() {
|
|
23451
|
-
return props.emptyTemplate && !hasFiles ? ObjectUtils.getJSXElement(props.emptyTemplate, props) : null;
|
|
23554
|
+
return props.emptyTemplate && !hasFiles && !hasUploadedFiles ? ObjectUtils.getJSXElement(props.emptyTemplate, props) : null;
|
|
23452
23555
|
};
|
|
23453
23556
|
var createProgressBarContent = function createProgressBarContent() {
|
|
23454
23557
|
if (props.progressBarTemplate) {
|
|
@@ -23466,7 +23569,7 @@ var FileUpload = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
23466
23569
|
var contentClassName = classNames('p-fileupload-content', props.contentClassName);
|
|
23467
23570
|
var chooseButton = createChooseButton();
|
|
23468
23571
|
var emptyContent = createEmptyContent();
|
|
23469
|
-
var uploadButton, cancelButton, filesList, progressBar;
|
|
23572
|
+
var uploadButton, cancelButton, filesList, uplaodedFilesList, progressBar;
|
|
23470
23573
|
if (!props.auto) {
|
|
23471
23574
|
var uploadOptions = props.uploadOptions;
|
|
23472
23575
|
var cancelOptions = props.cancelOptions;
|
|
@@ -23495,6 +23598,9 @@ var FileUpload = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
23495
23598
|
filesList = createFiles();
|
|
23496
23599
|
progressBar = createProgressBarContent();
|
|
23497
23600
|
}
|
|
23601
|
+
if (hasUploadedFiles) {
|
|
23602
|
+
uplaodedFilesList = createUploadedFiles();
|
|
23603
|
+
}
|
|
23498
23604
|
var header = /*#__PURE__*/React__namespace.createElement("div", {
|
|
23499
23605
|
className: headerClassName,
|
|
23500
23606
|
style: props.headerStyle
|
|
@@ -23524,7 +23630,7 @@ var FileUpload = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
23524
23630
|
onDrop: onDrop
|
|
23525
23631
|
}, progressBar, /*#__PURE__*/React__namespace.createElement(Messages, {
|
|
23526
23632
|
ref: messagesRef
|
|
23527
|
-
}), filesList, emptyContent));
|
|
23633
|
+
}), hasFiles ? filesList : null, hasUploadedFiles ? uplaodedFilesList : null, emptyContent));
|
|
23528
23634
|
};
|
|
23529
23635
|
var createBasic = function createBasic() {
|
|
23530
23636
|
var chooseOptions = props.chooseOptions;
|
|
@@ -29101,6 +29207,7 @@ var OrderListBase = {
|
|
|
29101
29207
|
dragdrop: false,
|
|
29102
29208
|
tabIndex: 0,
|
|
29103
29209
|
dataKey: null,
|
|
29210
|
+
breakpoint: '960px',
|
|
29104
29211
|
onChange: null,
|
|
29105
29212
|
itemTemplate: null,
|
|
29106
29213
|
filter: false,
|
|
@@ -29448,8 +29555,13 @@ var OrderList = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
29448
29555
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
29449
29556
|
filterValueState = _React$useState4[0],
|
|
29450
29557
|
setFilterValueState = _React$useState4[1];
|
|
29558
|
+
var _React$useState5 = React__namespace.useState(null),
|
|
29559
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
29560
|
+
attributeSelectorState = _React$useState6[0],
|
|
29561
|
+
setAttributeSelectorState = _React$useState6[1];
|
|
29451
29562
|
var hasFilter = ObjectUtils.isNotEmpty(filterValueState);
|
|
29452
29563
|
var elementRef = React__namespace.useRef(null);
|
|
29564
|
+
var styleElementRef = React__namespace.useRef(null);
|
|
29453
29565
|
var reorderDirection = React__namespace.useRef(null);
|
|
29454
29566
|
var onItemClick = function onItemClick(event) {
|
|
29455
29567
|
var metaKey = event.originalEvent.metaKey || event.originalEvent.ctrlKey;
|
|
@@ -29560,6 +29672,16 @@ var OrderList = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
29560
29672
|
}
|
|
29561
29673
|
}
|
|
29562
29674
|
};
|
|
29675
|
+
var createStyle = function createStyle() {
|
|
29676
|
+
if (!styleElementRef.current) {
|
|
29677
|
+
styleElementRef.current = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
29678
|
+
var innerHTML = "\n@media screen and (max-width: ".concat(props.breakpoint, ") {\n .p-orderlist[").concat(attributeSelectorState, "] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(attributeSelectorState, "] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(attributeSelectorState, "] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(attributeSelectorState, "] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");
|
|
29679
|
+
styleElementRef.current.innerHTML = innerHTML;
|
|
29680
|
+
}
|
|
29681
|
+
};
|
|
29682
|
+
var destroyStyle = function destroyStyle() {
|
|
29683
|
+
styleElementRef.current = DomHandler.removeInlineStyle(styleElementRef.current);
|
|
29684
|
+
};
|
|
29563
29685
|
React__namespace.useImperativeHandle(ref, function () {
|
|
29564
29686
|
return {
|
|
29565
29687
|
props: props,
|
|
@@ -29568,6 +29690,18 @@ var OrderList = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
29568
29690
|
}
|
|
29569
29691
|
};
|
|
29570
29692
|
});
|
|
29693
|
+
useMountEffect(function () {
|
|
29694
|
+
!attributeSelectorState && setAttributeSelectorState(UniqueComponentId());
|
|
29695
|
+
});
|
|
29696
|
+
useUpdateEffect(function () {
|
|
29697
|
+
if (attributeSelectorState) {
|
|
29698
|
+
elementRef.current.setAttribute(attributeSelectorState, '');
|
|
29699
|
+
createStyle();
|
|
29700
|
+
}
|
|
29701
|
+
return function () {
|
|
29702
|
+
destroyStyle();
|
|
29703
|
+
};
|
|
29704
|
+
}, [attributeSelectorState, props.breakpoint]);
|
|
29571
29705
|
useUpdateEffect(function () {
|
|
29572
29706
|
if (reorderDirection.current) {
|
|
29573
29707
|
updateListScroll();
|
|
@@ -29747,6 +29881,7 @@ var OrganizationChartNode = /*#__PURE__*/React__namespace.memo(function (props)
|
|
|
29747
29881
|
colSpan: colspan
|
|
29748
29882
|
}, /*#__PURE__*/React__namespace.createElement("div", {
|
|
29749
29883
|
className: nodeClassName,
|
|
29884
|
+
style: node.style,
|
|
29750
29885
|
onClick: function onClick(e) {
|
|
29751
29886
|
return onNodeClick(e, node);
|
|
29752
29887
|
}
|
|
@@ -29769,7 +29904,7 @@ var OrganizationChart = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__
|
|
|
29769
29904
|
var onNodeClick = function onNodeClick(event, node) {
|
|
29770
29905
|
if (props.selectionMode) {
|
|
29771
29906
|
var target = event.target;
|
|
29772
|
-
if (node.selectable === false ||
|
|
29907
|
+
if (node.selectable === false || DomHandler.hasClass(target, 'p-node-toggler') || DomHandler.hasClass(target, 'p-node-toggler-icon')) {
|
|
29773
29908
|
return;
|
|
29774
29909
|
}
|
|
29775
29910
|
var index = findIndexInSelection(node);
|
|
@@ -31000,6 +31135,7 @@ var PickListBase = {
|
|
|
31000
31135
|
showSourceControls: true,
|
|
31001
31136
|
showTargetControls: true,
|
|
31002
31137
|
metaKeySelection: true,
|
|
31138
|
+
filter: false,
|
|
31003
31139
|
filterBy: null,
|
|
31004
31140
|
filterMatchMode: 'contains',
|
|
31005
31141
|
filterLocale: undefined,
|
|
@@ -31013,6 +31149,7 @@ var PickListBase = {
|
|
|
31013
31149
|
targetFilterTemplate: null,
|
|
31014
31150
|
tabIndex: 0,
|
|
31015
31151
|
dataKey: null,
|
|
31152
|
+
breakpoint: '960px',
|
|
31016
31153
|
itemTemplate: null,
|
|
31017
31154
|
sourceItemTemplate: null,
|
|
31018
31155
|
targetItemTemplate: null,
|
|
@@ -31486,11 +31623,16 @@ var PickList = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
31486
31623
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
31487
31624
|
targetFilterValueState = _React$useState8[0],
|
|
31488
31625
|
setTargetFilterValueState = _React$useState8[1];
|
|
31626
|
+
var _React$useState9 = React__namespace.useState(null),
|
|
31627
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
31628
|
+
attributeSelectorState = _React$useState10[0],
|
|
31629
|
+
setAttributeSelectorState = _React$useState10[1];
|
|
31489
31630
|
var elementRef = React__namespace.useRef(null);
|
|
31490
31631
|
var sourceListElementRef = React__namespace.useRef(null);
|
|
31491
31632
|
var targetListElementRef = React__namespace.useRef(null);
|
|
31492
31633
|
var reorderedListElementRef = React__namespace.useRef(null);
|
|
31493
31634
|
var reorderDirection = React__namespace.useRef(null);
|
|
31635
|
+
var styleElementRef = React__namespace.useRef(null);
|
|
31494
31636
|
var sourceSelection = props.sourceSelection ? props.sourceSelection : sourceSelectionState;
|
|
31495
31637
|
var targetSelection = props.targetSelection ? props.targetSelection : targetSelectionState;
|
|
31496
31638
|
var sourceFilteredValue = props.onSourceFilterChange ? props.sourceFilterValue : sourceFilterValueState;
|
|
@@ -31649,6 +31791,16 @@ var PickList = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
31649
31791
|
var searchFields = hasFilterBy ? props.filterBy.split(',') : [];
|
|
31650
31792
|
return FilterService.filter(list, searchFields, filterValue, props.filterMatchMode, props.filterLocale);
|
|
31651
31793
|
};
|
|
31794
|
+
var createStyle = function createStyle() {
|
|
31795
|
+
if (!styleElementRef.current) {
|
|
31796
|
+
styleElementRef.current = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
31797
|
+
var innerHTML = "\n@media screen and (max-width: ".concat(props.breakpoint, ") {\n .p-picklist[").concat(attributeSelectorState, "] {\n flex-direction: column;\n }\n\n .p-picklist[").concat(attributeSelectorState, "] .p-picklist-buttons {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-picklist[").concat(attributeSelectorState, "] .p-picklist-buttons .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-picklist[").concat(attributeSelectorState, "] .p-picklist-buttons .p-button:last-child {\n margin-right: 0;\n }\n\n .p-picklist[").concat(attributeSelectorState, "] .pi-angle-right:before {\n content: \"\\e930\"\n }\n\n .p-picklist[").concat(attributeSelectorState, "] .pi-angle-double-right:before {\n content: \"\\e92c\"\n }\n\n .p-picklist[").concat(attributeSelectorState, "] .pi-angle-left:before {\n content: \"\\e933\"\n }\n\n .p-picklist[").concat(attributeSelectorState, "] .pi-angle-double-left:before {\n content: \"\\e92f\"\n }\n}\n");
|
|
31798
|
+
styleElementRef.current.innerHTML = innerHTML;
|
|
31799
|
+
}
|
|
31800
|
+
};
|
|
31801
|
+
var destroyStyle = function destroyStyle() {
|
|
31802
|
+
styleElementRef.current = DomHandler.removeInlineStyle(styleElementRef.current);
|
|
31803
|
+
};
|
|
31652
31804
|
React__namespace.useImperativeHandle(ref, function () {
|
|
31653
31805
|
return {
|
|
31654
31806
|
props: props,
|
|
@@ -31657,6 +31809,18 @@ var PickList = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
31657
31809
|
}
|
|
31658
31810
|
};
|
|
31659
31811
|
});
|
|
31812
|
+
useMountEffect(function () {
|
|
31813
|
+
!attributeSelectorState && setAttributeSelectorState(UniqueComponentId());
|
|
31814
|
+
});
|
|
31815
|
+
useUpdateEffect(function () {
|
|
31816
|
+
if (attributeSelectorState) {
|
|
31817
|
+
elementRef.current.setAttribute(attributeSelectorState, '');
|
|
31818
|
+
createStyle();
|
|
31819
|
+
}
|
|
31820
|
+
return function () {
|
|
31821
|
+
destroyStyle();
|
|
31822
|
+
};
|
|
31823
|
+
}, [attributeSelectorState, props.breakpoint]);
|
|
31660
31824
|
useUpdateEffect(function () {
|
|
31661
31825
|
if (reorderedListElementRef.current) {
|
|
31662
31826
|
handleScrollPosition(reorderedListElementRef.current, reorderDirection.current);
|