primereact 8.0.0-rc.1 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -5
- package/accordion/accordion.cjs.js +1 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +2 -0
- package/accordion/accordion.esm.js +1 -1
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -1
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +2 -5
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +2 -5
- package/api/api.esm.min.js +1 -1
- package/api/api.js +2 -5
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +5 -0
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +2 -1
- package/autocomplete/autocomplete.esm.js +5 -0
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +5 -0
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.d.ts +1 -0
- package/avatargroup/avatargroup.d.ts +1 -0
- package/badge/badge.d.ts +1 -0
- package/blockui/blockui.d.ts +1 -0
- package/breadcrumb/breadcrumb.cjs.js +7 -5
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +1 -0
- package/breadcrumb/breadcrumb.esm.js +8 -6
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +7 -5
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +3 -1
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +1 -0
- package/button/button.esm.js +3 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +3 -1
- package/button/button.min.css +1 -1
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +314 -151
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +8 -0
- package/calendar/calendar.esm.js +314 -151
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +315 -152
- package/calendar/calendar.min.css +1 -1
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.d.ts +1 -0
- package/card/card.d.ts +1 -0
- package/carousel/carousel.cjs.js +4 -4
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +1 -0
- package/carousel/carousel.esm.js +4 -4
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +4 -4
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +4 -2
- package/chart/chart.d.ts +1 -0
- package/checkbox/checkbox.cjs.js +5 -13
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +2 -2
- package/checkbox/checkbox.esm.js +5 -13
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +5 -13
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.d.ts +1 -0
- package/chips/chips.cjs.js +6 -2
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +1 -0
- package/chips/chips.esm.js +6 -2
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +6 -2
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +1 -0
- package/column/column.d.ts +2 -1
- package/columngroup/columngroup.d.ts +3 -1
- package/common/common.min.css +1 -1
- package/confirmdialog/confirmdialog.cjs.js +2 -2
- package/confirmdialog/confirmdialog.d.ts +1 -0
- package/confirmdialog/confirmdialog.esm.js +2 -2
- package/confirmdialog/confirmdialog.js +2 -2
- package/confirmpopup/confirmpopup.cjs.js +2 -2
- package/confirmpopup/confirmpopup.d.ts +1 -0
- package/confirmpopup/confirmpopup.esm.js +2 -2
- package/confirmpopup/confirmpopup.js +2 -2
- package/contextmenu/contextmenu.cjs.js +6 -2
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +1 -0
- package/contextmenu/contextmenu.esm.js +7 -3
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +6 -2
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +249 -134
- package/core/core.min.js +10 -10
- package/datascroller/datascroller.d.ts +1 -0
- package/datatable/datatable.cjs.js +13 -11
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +2 -1
- package/datatable/datatable.esm.js +13 -11
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +13 -11
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.d.ts +2 -0
- package/deferredcontent/deferredcontent.d.ts +1 -0
- package/dialog/dialog.d.ts +1 -0
- package/divider/divider.d.ts +1 -0
- package/dock/dock.cjs.js +5 -3
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +1 -0
- package/dock/dock.esm.js +6 -4
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +5 -3
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +2 -6
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +4 -2
- package/dropdown/dropdown.esm.js +2 -6
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +2 -6
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.d.ts +1 -0
- package/fieldset/fieldset.d.ts +1 -0
- package/fileupload/fileupload.d.ts +2 -1
- package/fullcalendar/fullcalendar.d.ts +1 -0
- package/galleria/galleria.d.ts +1 -0
- package/gmap/gmap.cjs.js +27 -12
- package/gmap/gmap.cjs.min.js +1 -1
- package/gmap/gmap.d.ts +1 -0
- package/gmap/gmap.esm.js +27 -12
- package/gmap/gmap.esm.min.js +1 -1
- package/gmap/gmap.js +27 -12
- package/gmap/gmap.min.js +1 -1
- package/hooks/hooks.cjs.js +52 -0
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +7 -5
- package/hooks/hooks.esm.js +52 -1
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +52 -0
- package/hooks/hooks.min.js +1 -1
- package/image/image.d.ts +1 -0
- package/inplace/inplace.d.ts +7 -2
- package/inputmask/inputmask.cjs.js +2 -2
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +2 -2
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +2 -2
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +8 -5
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +1 -0
- package/inputnumber/inputnumber.esm.js +8 -5
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +8 -5
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +7 -10
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +2 -1
- package/inputswitch/inputswitch.esm.js +7 -10
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +7 -10
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +12 -2
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -0
- package/inputtext/inputtext.esm.js +12 -2
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +12 -2
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +1 -0
- package/keyfilter/keyfilter.cjs.js +54 -1
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +54 -1
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +146 -93
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.d.ts +1 -0
- package/listbox/listbox.d.ts +4 -2
- package/megamenu/megamenu.cjs.js +8 -5
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +1 -0
- package/megamenu/megamenu.esm.js +9 -6
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +8 -5
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.d.ts +1 -0
- package/menu/menu.cjs.js +4 -2
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +1 -0
- package/menu/menu.esm.js +5 -3
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +4 -2
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +6 -2
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +1 -0
- package/menubar/menubar.esm.js +7 -3
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +6 -2
- package/menubar/menubar.min.js +1 -1
- package/menuitem/menuitem.d.ts +0 -2
- package/message/message.d.ts +1 -0
- package/messages/messages.d.ts +1 -0
- package/multiselect/multiselect.cjs.js +5 -13
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +4 -2
- package/multiselect/multiselect.esm.js +5 -13
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +5 -13
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +1 -0
- package/orderlist/orderlist.d.ts +1 -0
- package/organizationchart/organizationchart.d.ts +1 -0
- package/overlaypanel/overlaypanel.d.ts +1 -0
- package/package.json +6 -5
- package/paginator/paginator.cjs.js +11 -5
- package/paginator/paginator.d.ts +1 -0
- package/paginator/paginator.esm.js +11 -5
- package/paginator/paginator.js +11 -5
- package/panel/panel.d.ts +1 -0
- package/panelmenu/panelmenu.cjs.js +12 -6
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +1 -0
- package/panelmenu/panelmenu.esm.js +13 -7
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +12 -6
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.d.ts +1 -0
- package/picklist/picklist.d.ts +1 -0
- package/primereact.all.cjs.js +580 -275
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +580 -276
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +580 -275
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.d.ts +1 -0
- package/progressspinner/progressspinner.d.ts +2 -1
- package/radiobutton/radiobutton.d.ts +2 -1
- package/rating/rating.d.ts +1 -0
- package/resources/primereact.css +197 -176
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +61 -13
- package/resources/themes/arya-green/theme.css +61 -13
- package/resources/themes/arya-orange/theme.css +61 -13
- package/resources/themes/arya-purple/theme.css +61 -13
- package/resources/themes/bootstrap4-dark-blue/theme.css +61 -13
- package/resources/themes/bootstrap4-dark-purple/theme.css +61 -13
- package/resources/themes/bootstrap4-light-blue/theme.css +61 -13
- package/resources/themes/bootstrap4-light-purple/theme.css +61 -13
- package/resources/themes/fluent-light/theme.css +61 -13
- package/resources/themes/lara-dark-blue/theme.css +61 -13
- package/resources/themes/lara-dark-indigo/theme.css +61 -13
- package/resources/themes/lara-dark-purple/theme.css +61 -13
- package/resources/themes/lara-dark-teal/theme.css +61 -13
- package/resources/themes/lara-light-blue/theme.css +61 -13
- package/resources/themes/lara-light-indigo/theme.css +61 -13
- package/resources/themes/lara-light-purple/theme.css +61 -13
- package/resources/themes/lara-light-teal/theme.css +61 -13
- package/resources/themes/luna-amber/theme.css +61 -13
- package/resources/themes/luna-blue/theme.css +61 -13
- package/resources/themes/luna-green/theme.css +61 -13
- package/resources/themes/luna-pink/theme.css +61 -13
- package/resources/themes/md-dark-deeppurple/theme.css +64 -13
- package/resources/themes/md-dark-indigo/theme.css +64 -13
- package/resources/themes/md-light-deeppurple/theme.css +64 -13
- package/resources/themes/md-light-indigo/theme.css +64 -13
- package/resources/themes/mdc-dark-deeppurple/theme.css +64 -13
- package/resources/themes/mdc-dark-indigo/theme.css +64 -13
- package/resources/themes/mdc-light-deeppurple/theme.css +64 -13
- package/resources/themes/mdc-light-indigo/theme.css +64 -13
- package/resources/themes/nova/theme.css +61 -13
- package/resources/themes/nova-accent/theme.css +61 -13
- package/resources/themes/nova-alt/theme.css +61 -13
- package/resources/themes/rhea/theme.css +61 -13
- package/resources/themes/saga-blue/theme.css +61 -13
- package/resources/themes/saga-green/theme.css +61 -13
- package/resources/themes/saga-orange/theme.css +61 -13
- package/resources/themes/saga-purple/theme.css +61 -13
- package/resources/themes/tailwind-light/theme.css +60 -12
- package/resources/themes/vela-blue/theme.css +61 -13
- package/resources/themes/vela-green/theme.css +61 -13
- package/resources/themes/vela-orange/theme.css +61 -13
- package/resources/themes/vela-purple/theme.css +61 -13
- package/ripple/ripple.cjs.js +1 -0
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.d.ts +3 -1
- package/ripple/ripple.esm.js +1 -0
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +1 -0
- package/ripple/ripple.min.js +1 -1
- package/row/row.d.ts +1 -0
- package/scrollpanel/scrollpanel.d.ts +1 -0
- package/scrolltop/scrolltop.d.ts +1 -0
- package/selectbutton/selectbutton.d.ts +4 -2
- package/selectitem/selectitem.d.ts +2 -0
- package/sidebar/sidebar.d.ts +1 -0
- package/skeleton/skeleton.d.ts +1 -0
- package/slidemenu/slidemenu.cjs.js +6 -2
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +1 -0
- package/slidemenu/slidemenu.esm.js +7 -3
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +6 -2
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.d.ts +1 -0
- package/speeddial/speeddial.cjs.js +10 -5
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +1 -0
- package/speeddial/speeddial.esm.js +11 -6
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +10 -5
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +5 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +1 -0
- package/splitbutton/splitbutton.esm.js +6 -4
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +5 -3
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.d.ts +2 -0
- package/steps/steps.cjs.js +8 -1
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +1 -0
- package/steps/steps.esm.js +9 -2
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +8 -1
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.d.ts +1 -0
- package/tabmenu/tabmenu.cjs.js +4 -3
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +1 -0
- package/tabmenu/tabmenu.esm.js +5 -4
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +4 -3
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.d.ts +2 -0
- package/tag/tag.d.ts +1 -0
- package/terminal/terminal.d.ts +1 -0
- package/tieredmenu/tieredmenu.cjs.js +6 -3
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +1 -0
- package/tieredmenu/tieredmenu.esm.js +7 -4
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +6 -3
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.d.ts +1 -0
- package/toast/toast.d.ts +1 -0
- package/togglebutton/togglebutton.cjs.js +3 -3
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +1 -1
- package/togglebutton/togglebutton.esm.js +3 -3
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +3 -3
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.d.ts +1 -0
- package/tooltip/tooltip.d.ts +1 -0
- package/tree/tree.d.ts +1 -0
- package/treeselect/treeselect.cjs.js +0 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +6 -6
- package/treeselect/treeselect.esm.js +0 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +0 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.d.ts +2 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +1 -0
- package/utils/utils.cjs.js +11 -8
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +11 -8
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +11 -8
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +1 -0
- package/web-types.json +7 -19
package/core/core.js
CHANGED
|
@@ -86,11 +86,17 @@ this.primereact.utils = (function (exports, React) {
|
|
|
86
86
|
function _typeof(obj) {
|
|
87
87
|
"@babel/helpers - typeof";
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
89
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
90
|
+
_typeof = function _typeof(obj) {
|
|
91
|
+
return typeof obj;
|
|
92
|
+
};
|
|
93
|
+
} else {
|
|
94
|
+
_typeof = function _typeof(obj) {
|
|
95
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return _typeof(obj);
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
function classNames() {
|
|
@@ -149,9 +155,6 @@ this.primereact.utils = (function (exports, React) {
|
|
|
149
155
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
150
156
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
151
157
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
152
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
153
|
-
writable: false
|
|
154
|
-
});
|
|
155
158
|
return Constructor;
|
|
156
159
|
}
|
|
157
160
|
|
|
@@ -2129,9 +2132,6 @@ this.primereact.api = (function (exports, utils) {
|
|
|
2129
2132
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
2130
2133
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
2131
2134
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
2132
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
2133
|
-
writable: false
|
|
2134
|
-
});
|
|
2135
2135
|
return Constructor;
|
|
2136
2136
|
}
|
|
2137
2137
|
|
|
@@ -2253,8 +2253,8 @@ this.primereact.api = (function (exports, utils) {
|
|
|
2253
2253
|
medium: 'Medium',
|
|
2254
2254
|
strong: 'Strong',
|
|
2255
2255
|
passwordPrompt: 'Enter a password',
|
|
2256
|
-
emptyFilterMessage: 'No
|
|
2257
|
-
emptyMessage: 'No
|
|
2256
|
+
emptyFilterMessage: 'No available options',
|
|
2257
|
+
emptyMessage: 'No results found'
|
|
2258
2258
|
}
|
|
2259
2259
|
};
|
|
2260
2260
|
|
|
@@ -3175,6 +3175,57 @@ this.primereact.hooks = (function (exports, React, utils) {
|
|
|
3175
3175
|
};
|
|
3176
3176
|
/* eslint-enable */
|
|
3177
3177
|
|
|
3178
|
+
/**
|
|
3179
|
+
* Hook to wrap around useState that stores the value in the browser local/session storage.
|
|
3180
|
+
*
|
|
3181
|
+
* @param {any} initialValue the initial value to store
|
|
3182
|
+
* @param {string} key the key to store the value in local/session storage
|
|
3183
|
+
* @param {string} storage either 'local' or 'session' for what type of storage
|
|
3184
|
+
* @returns a stateful value, and a function to update it.
|
|
3185
|
+
*/
|
|
3186
|
+
|
|
3187
|
+
var useStorage = function useStorage(initialValue, key) {
|
|
3188
|
+
var storage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'local';
|
|
3189
|
+
// Since the local storage API isn't available in server-rendering environments,
|
|
3190
|
+
// we check that typeof window !== 'undefined' to make SSR and SSG work properly.
|
|
3191
|
+
var storageAvailable = typeof window !== 'undefined';
|
|
3192
|
+
|
|
3193
|
+
var _React$useState = React__namespace.useState(function () {
|
|
3194
|
+
if (!storageAvailable) {
|
|
3195
|
+
return initialValue;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
try {
|
|
3199
|
+
var item = storage === 'local' ? window.localStorage.getItem(key) : window.sessionStorage.getItem(key);
|
|
3200
|
+
return item ? JSON.parse(item) : initialValue;
|
|
3201
|
+
} catch (error) {
|
|
3202
|
+
// If error also return initialValue
|
|
3203
|
+
return initialValue;
|
|
3204
|
+
}
|
|
3205
|
+
}),
|
|
3206
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
3207
|
+
storedValue = _React$useState2[0],
|
|
3208
|
+
setStoredValue = _React$useState2[1];
|
|
3209
|
+
|
|
3210
|
+
var setValue = function setValue(value) {
|
|
3211
|
+
try {
|
|
3212
|
+
// Allow value to be a function so we have same API as useState
|
|
3213
|
+
var valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
3214
|
+
setStoredValue(valueToStore);
|
|
3215
|
+
|
|
3216
|
+
if (storageAvailable) {
|
|
3217
|
+
var serializedValue = JSON.stringify(valueToStore);
|
|
3218
|
+
storage === 'local' ? window.localStorage.setItem(key, serializedValue) : window.sessionStorage.setItem(key, serializedValue);
|
|
3219
|
+
}
|
|
3220
|
+
} catch (error) {
|
|
3221
|
+
throw new Error("PrimeReact useStorage: Failed to serialize the value at key: ".concat(key));
|
|
3222
|
+
}
|
|
3223
|
+
};
|
|
3224
|
+
|
|
3225
|
+
return [storedValue, setValue];
|
|
3226
|
+
};
|
|
3227
|
+
/* eslint-enable */
|
|
3228
|
+
|
|
3178
3229
|
/* eslint-disable */
|
|
3179
3230
|
var useTimeout = function useTimeout(fn) {
|
|
3180
3231
|
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
@@ -3213,6 +3264,7 @@ this.primereact.hooks = (function (exports, React, utils) {
|
|
|
3213
3264
|
exports.useOverlayScrollListener = useOverlayScrollListener;
|
|
3214
3265
|
exports.usePrevious = usePrevious;
|
|
3215
3266
|
exports.useResizeListener = useResizeListener;
|
|
3267
|
+
exports.useStorage = useStorage;
|
|
3216
3268
|
exports.useTimeout = useTimeout;
|
|
3217
3269
|
exports.useUnmountEffect = useUnmountEffect;
|
|
3218
3270
|
exports.useUpdateEffect = useUpdateEffect;
|
|
@@ -3314,6 +3366,7 @@ this.primereact.ripple = (function (exports, React, PrimeReact, hooks, utils) {
|
|
|
3314
3366
|
}
|
|
3315
3367
|
});
|
|
3316
3368
|
return PrimeReact__default["default"].ripple ? /*#__PURE__*/React__namespace.createElement("span", {
|
|
3369
|
+
role: "presentation",
|
|
3317
3370
|
ref: inkRef,
|
|
3318
3371
|
className: "p-ink",
|
|
3319
3372
|
onAnimationEnd: onAnimationEnd
|
|
@@ -3606,112 +3659,165 @@ this.primereact.portal = (function (exports, React, ReactDOM, PrimeReact, hooks,
|
|
|
3606
3659
|
|
|
3607
3660
|
this.primereact = this.primereact || {};
|
|
3608
3661
|
this.primereact.keyfilter = (function (exports, utils) {
|
|
3609
|
-
|
|
3662
|
+
'use strict';
|
|
3610
3663
|
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
DEFAULT_MASKS: {
|
|
3614
|
-
pint: /[\d]/,
|
|
3615
|
-
"int": /[\d\-]/,
|
|
3616
|
-
pnum: /[\d\.]/,
|
|
3617
|
-
money: /[\d\.\s,]/,
|
|
3618
|
-
num: /[\d\-\.]/,
|
|
3619
|
-
hex: /[0-9a-f]/i,
|
|
3620
|
-
email: /[a-z0-9_\.\-@]/i,
|
|
3621
|
-
alpha: /[a-z_]/i,
|
|
3622
|
-
alphanum: /[a-z0-9_]/i
|
|
3623
|
-
},
|
|
3664
|
+
function _arrayLikeToArray(arr, len) {
|
|
3665
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3624
3666
|
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
RETURN: 13,
|
|
3629
|
-
ESC: 27,
|
|
3630
|
-
BACKSPACE: 8,
|
|
3631
|
-
DELETE: 46
|
|
3632
|
-
},
|
|
3633
|
-
SAFARI_KEYS: {
|
|
3634
|
-
63234: 37,
|
|
3635
|
-
// left
|
|
3636
|
-
63235: 39,
|
|
3637
|
-
// right
|
|
3638
|
-
63232: 38,
|
|
3639
|
-
// up
|
|
3640
|
-
63233: 40,
|
|
3641
|
-
// down
|
|
3642
|
-
63276: 33,
|
|
3643
|
-
// page up
|
|
3644
|
-
63277: 34,
|
|
3645
|
-
// page down
|
|
3646
|
-
63272: 46,
|
|
3647
|
-
// delete
|
|
3648
|
-
63273: 36,
|
|
3649
|
-
// home
|
|
3650
|
-
63275: 35 // end
|
|
3667
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
3668
|
+
arr2[i] = arr[i];
|
|
3669
|
+
}
|
|
3651
3670
|
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
var k = e.keyCode;
|
|
3655
|
-
k = utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
|
|
3656
|
-
return k >= 33 && k <= 40 || k === KeyFilter.KEYS.RETURN || k === KeyFilter.KEYS.TAB || k === KeyFilter.KEYS.ESC;
|
|
3657
|
-
},
|
|
3658
|
-
isSpecialKey: function isSpecialKey(e) {
|
|
3659
|
-
var k = e.keyCode;
|
|
3660
|
-
return k === 9 || k === 13 || k === 27 || k === 16 || k === 17 || k >= 18 && k <= 20 || utils.DomHandler.getBrowser().opera && !e.shiftKey && (k === 8 || k >= 33 && k <= 35 || k >= 36 && k <= 39 || k >= 44 && k <= 45);
|
|
3661
|
-
},
|
|
3662
|
-
getKey: function getKey(e) {
|
|
3663
|
-
var k = e.keyCode || e.charCode;
|
|
3664
|
-
return utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
|
|
3665
|
-
},
|
|
3666
|
-
getCharCode: function getCharCode(e) {
|
|
3667
|
-
return e.charCode || e.keyCode || e.which;
|
|
3668
|
-
},
|
|
3669
|
-
onKeyPress: function onKeyPress(e, keyfilter, validateOnly) {
|
|
3670
|
-
if (validateOnly) {
|
|
3671
|
-
return;
|
|
3672
|
-
}
|
|
3671
|
+
return arr2;
|
|
3672
|
+
}
|
|
3673
3673
|
|
|
3674
|
-
|
|
3675
|
-
|
|
3674
|
+
function _arrayWithoutHoles(arr) {
|
|
3675
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
3676
|
+
}
|
|
3676
3677
|
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3678
|
+
function _iterableToArray(iter) {
|
|
3679
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3680
|
+
}
|
|
3680
3681
|
|
|
3681
|
-
|
|
3682
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
3683
|
+
if (!o) return;
|
|
3684
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
3685
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3686
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3687
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
3688
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
3689
|
+
}
|
|
3682
3690
|
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3691
|
+
function _nonIterableSpread() {
|
|
3692
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3693
|
+
}
|
|
3686
3694
|
|
|
3687
|
-
|
|
3688
|
-
|
|
3695
|
+
function _toConsumableArray(arr) {
|
|
3696
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
3697
|
+
}
|
|
3689
3698
|
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3699
|
+
var KeyFilter = {
|
|
3700
|
+
/* eslint-disable */
|
|
3701
|
+
DEFAULT_MASKS: {
|
|
3702
|
+
pint: /[\d]/,
|
|
3703
|
+
"int": /[\d\-]/,
|
|
3704
|
+
pnum: /[\d\.]/,
|
|
3705
|
+
money: /[\d\.\s,]/,
|
|
3706
|
+
num: /[\d\-\.]/,
|
|
3707
|
+
hex: /[0-9a-f]/i,
|
|
3708
|
+
email: /[a-z0-9_\.\-@]/i,
|
|
3709
|
+
alpha: /[a-z_]/i,
|
|
3710
|
+
alphanum: /[a-z0-9_]/i
|
|
3711
|
+
},
|
|
3693
3712
|
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3713
|
+
/* eslint-enable */
|
|
3714
|
+
KEYS: {
|
|
3715
|
+
TAB: 9,
|
|
3716
|
+
RETURN: 13,
|
|
3717
|
+
ESC: 27,
|
|
3718
|
+
BACKSPACE: 8,
|
|
3719
|
+
DELETE: 46
|
|
3720
|
+
},
|
|
3721
|
+
SAFARI_KEYS: {
|
|
3722
|
+
63234: 37,
|
|
3723
|
+
// left
|
|
3724
|
+
63235: 39,
|
|
3725
|
+
// right
|
|
3726
|
+
63232: 38,
|
|
3727
|
+
// up
|
|
3728
|
+
63233: 40,
|
|
3729
|
+
// down
|
|
3730
|
+
63276: 33,
|
|
3731
|
+
// page up
|
|
3732
|
+
63277: 34,
|
|
3733
|
+
// page down
|
|
3734
|
+
63272: 46,
|
|
3735
|
+
// delete
|
|
3736
|
+
63273: 36,
|
|
3737
|
+
// home
|
|
3738
|
+
63275: 35 // end
|
|
3739
|
+
|
|
3740
|
+
},
|
|
3741
|
+
isNavKeyPress: function isNavKeyPress(e) {
|
|
3742
|
+
var k = e.keyCode;
|
|
3743
|
+
k = utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
|
|
3744
|
+
return k >= 33 && k <= 40 || k === KeyFilter.KEYS.RETURN || k === KeyFilter.KEYS.TAB || k === KeyFilter.KEYS.ESC;
|
|
3745
|
+
},
|
|
3746
|
+
isSpecialKey: function isSpecialKey(e) {
|
|
3747
|
+
var k = e.keyCode;
|
|
3748
|
+
return k === 9 || k === 13 || k === 27 || k === 16 || k === 17 || k >= 18 && k <= 20 || utils.DomHandler.getBrowser().opera && !e.shiftKey && (k === 8 || k >= 33 && k <= 35 || k >= 36 && k <= 39 || k >= 44 && k <= 45);
|
|
3749
|
+
},
|
|
3750
|
+
getKey: function getKey(e) {
|
|
3751
|
+
var k = e.keyCode || e.charCode;
|
|
3752
|
+
return utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
|
|
3753
|
+
},
|
|
3754
|
+
getCharCode: function getCharCode(e) {
|
|
3755
|
+
return e.charCode || e.keyCode || e.which;
|
|
3756
|
+
},
|
|
3757
|
+
getRegex: function getRegex(keyfilter) {
|
|
3758
|
+
return KeyFilter.DEFAULT_MASKS[keyfilter] ? KeyFilter.DEFAULT_MASKS[keyfilter] : keyfilter;
|
|
3759
|
+
},
|
|
3760
|
+
onKeyPress: function onKeyPress(e, keyfilter, validateOnly) {
|
|
3761
|
+
if (validateOnly) {
|
|
3762
|
+
return;
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
var regex = this.getRegex(keyfilter);
|
|
3766
|
+
var browser = utils.DomHandler.getBrowser();
|
|
3767
|
+
|
|
3768
|
+
if (e.ctrlKey || e.altKey) {
|
|
3769
|
+
return;
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3772
|
+
var k = this.getKey(e);
|
|
3701
3773
|
|
|
3702
|
-
|
|
3703
|
-
|
|
3774
|
+
if (browser.mozilla && (this.isNavKeyPress(e) || k === KeyFilter.KEYS.BACKSPACE || k === KeyFilter.KEYS.DELETE && e.charCode === 0)) {
|
|
3775
|
+
return;
|
|
3776
|
+
}
|
|
3777
|
+
|
|
3778
|
+
var c = this.getCharCode(e);
|
|
3779
|
+
var cc = String.fromCharCode(c);
|
|
3780
|
+
|
|
3781
|
+
if (browser.mozilla && (this.isSpecialKey(e) || !cc)) {
|
|
3782
|
+
return;
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
if (!regex.test(cc)) {
|
|
3786
|
+
e.preventDefault();
|
|
3787
|
+
}
|
|
3788
|
+
},
|
|
3789
|
+
onPaste: function onPaste(e, keyfilter, validateOnly) {
|
|
3790
|
+
if (validateOnly) {
|
|
3791
|
+
return;
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3794
|
+
var regex = this.getRegex(keyfilter);
|
|
3795
|
+
var clipboard = e.clipboardData.getData("text"); // loop over each letter pasted and if any fail prevent the paste
|
|
3796
|
+
|
|
3797
|
+
_toConsumableArray(clipboard).forEach(function (c) {
|
|
3798
|
+
if (!regex.test(c)) {
|
|
3799
|
+
e.preventDefault();
|
|
3800
|
+
return false;
|
|
3704
3801
|
}
|
|
3802
|
+
});
|
|
3803
|
+
},
|
|
3804
|
+
validate: function validate(e, keyfilter) {
|
|
3805
|
+
var value = e.target.value,
|
|
3806
|
+
validatePattern = true;
|
|
3705
3807
|
|
|
3706
|
-
|
|
3808
|
+
if (value && !keyfilter.test(value)) {
|
|
3809
|
+
validatePattern = false;
|
|
3707
3810
|
}
|
|
3708
|
-
};
|
|
3709
3811
|
|
|
3710
|
-
|
|
3812
|
+
return validatePattern;
|
|
3813
|
+
}
|
|
3814
|
+
};
|
|
3711
3815
|
|
|
3712
|
-
|
|
3816
|
+
exports.KeyFilter = KeyFilter;
|
|
3713
3817
|
|
|
3714
|
-
|
|
3818
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3819
|
+
|
|
3820
|
+
return exports;
|
|
3715
3821
|
|
|
3716
3822
|
})({}, primereact.utils);
|
|
3717
3823
|
|
|
@@ -5456,13 +5562,6 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
|
|
|
5456
5562
|
setFocusedState(false);
|
|
5457
5563
|
};
|
|
5458
5564
|
|
|
5459
|
-
var onKeyDown = function onKeyDown(event) {
|
|
5460
|
-
if (event.key === 'Enter') {
|
|
5461
|
-
onClick(event);
|
|
5462
|
-
event.preventDefault();
|
|
5463
|
-
}
|
|
5464
|
-
};
|
|
5465
|
-
|
|
5466
5565
|
var isChecked = function isChecked() {
|
|
5467
5566
|
return props.checked === props.trueValue;
|
|
5468
5567
|
};
|
|
@@ -5510,17 +5609,15 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
|
|
|
5510
5609
|
name: props.name,
|
|
5511
5610
|
tabIndex: props.tabIndex,
|
|
5512
5611
|
defaultChecked: checked,
|
|
5513
|
-
"aria-labelledby": props
|
|
5514
|
-
|
|
5612
|
+
"aria-labelledby": props['aria-labelledby'],
|
|
5613
|
+
"aria-label": props['aria-label'],
|
|
5515
5614
|
onFocus: onFocus,
|
|
5516
5615
|
onBlur: onBlur,
|
|
5517
5616
|
disabled: props.disabled,
|
|
5518
5617
|
readOnly: props.readOnly,
|
|
5519
5618
|
required: props.required
|
|
5520
5619
|
})), /*#__PURE__*/React__namespace.createElement("div", {
|
|
5521
|
-
className: boxClass
|
|
5522
|
-
role: "checkbox",
|
|
5523
|
-
"aria-checked": checked
|
|
5620
|
+
className: boxClass
|
|
5524
5621
|
}, icon)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
5525
5622
|
target: elementRef,
|
|
5526
5623
|
content: props.tooltip
|
|
@@ -5546,7 +5643,8 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
|
|
|
5546
5643
|
icon: 'pi pi-check',
|
|
5547
5644
|
tooltip: null,
|
|
5548
5645
|
tooltipOptions: null,
|
|
5549
|
-
|
|
5646
|
+
'aria-label': null,
|
|
5647
|
+
'aria-labelledby': null,
|
|
5550
5648
|
onChange: null,
|
|
5551
5649
|
onMouseDown: null,
|
|
5552
5650
|
onContextMenu: null
|
|
@@ -5674,8 +5772,10 @@ this.primereact.button = (function (exports, React, ripple, tooltip, utils) {
|
|
|
5674
5772
|
var icon = createIcon();
|
|
5675
5773
|
var label = createLabel();
|
|
5676
5774
|
var badge = createBadge();
|
|
5775
|
+
var defaultAriaLabel = props.label ? props.label + (props.badge ? ' ' + props.badge : '') : '';
|
|
5677
5776
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("button", _extends({
|
|
5678
|
-
ref: elementRef
|
|
5777
|
+
ref: elementRef,
|
|
5778
|
+
"aria-label": defaultAriaLabel
|
|
5679
5779
|
}, otherProps, {
|
|
5680
5780
|
className: className,
|
|
5681
5781
|
disabled: disabled
|
|
@@ -5775,6 +5875,14 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
|
|
|
5775
5875
|
}
|
|
5776
5876
|
};
|
|
5777
5877
|
|
|
5878
|
+
var onPaste = function onPaste(event) {
|
|
5879
|
+
props.onPaste && props.onPaste(event);
|
|
5880
|
+
|
|
5881
|
+
if (props.keyfilter) {
|
|
5882
|
+
keyfilter.KeyFilter.onPaste(event, props.keyfilter, props.validateOnly);
|
|
5883
|
+
}
|
|
5884
|
+
};
|
|
5885
|
+
|
|
5778
5886
|
var isFilled = React__namespace.useMemo(function () {
|
|
5779
5887
|
return utils.ObjectUtils.isNotEmpty(props.value) || utils.ObjectUtils.isNotEmpty(props.defaultValue) || elementRef.current && utils.ObjectUtils.isNotEmpty(elementRef.current.value);
|
|
5780
5888
|
}, [props.value, props.defaultValue]);
|
|
@@ -5792,7 +5900,8 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
|
|
|
5792
5900
|
}, otherProps, {
|
|
5793
5901
|
className: className,
|
|
5794
5902
|
onInput: onInput,
|
|
5795
|
-
onKeyPress: onKeyPress
|
|
5903
|
+
onKeyPress: onKeyPress,
|
|
5904
|
+
onPaste: onPaste
|
|
5796
5905
|
})), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
5797
5906
|
target: elementRef,
|
|
5798
5907
|
content: props.tooltip
|
|
@@ -5806,7 +5915,8 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
|
|
|
5806
5915
|
tooltip: null,
|
|
5807
5916
|
tooltipOptions: null,
|
|
5808
5917
|
onInput: null,
|
|
5809
|
-
onKeyPress: null
|
|
5918
|
+
onKeyPress: null,
|
|
5919
|
+
onPaste: null
|
|
5810
5920
|
};
|
|
5811
5921
|
|
|
5812
5922
|
exports.InputText = InputText;
|
|
@@ -6831,12 +6941,15 @@ this.primereact.inputnumber = (function (exports, React, hooks, inputtext, rippl
|
|
|
6831
6941
|
|
|
6832
6942
|
var onInputBlur = function onInputBlur(event) {
|
|
6833
6943
|
setFocusedState(false);
|
|
6834
|
-
var currentValue = inputRef.current.value;
|
|
6835
6944
|
|
|
6836
|
-
if (
|
|
6837
|
-
var
|
|
6838
|
-
|
|
6839
|
-
|
|
6945
|
+
if (inputRef.current) {
|
|
6946
|
+
var currentValue = inputRef.current.value;
|
|
6947
|
+
|
|
6948
|
+
if (isValueChanged(currentValue, props.value)) {
|
|
6949
|
+
var newValue = validateValue(parseValue(currentValue));
|
|
6950
|
+
updateInputValue(newValue);
|
|
6951
|
+
updateModel(event, newValue);
|
|
6952
|
+
}
|
|
6840
6953
|
}
|
|
6841
6954
|
|
|
6842
6955
|
props.onBlur && props.onBlur(event);
|
|
@@ -7509,10 +7622,6 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
|
|
|
7509
7622
|
return _extends.apply(this, arguments);
|
|
7510
7623
|
}
|
|
7511
7624
|
|
|
7512
|
-
function _readOnlyError(name) {
|
|
7513
|
-
throw new TypeError("\"" + name + "\" is read-only");
|
|
7514
|
-
}
|
|
7515
|
-
|
|
7516
7625
|
function _defineProperty(obj, key, value) {
|
|
7517
7626
|
if (key in obj) {
|
|
7518
7627
|
Object.defineProperty(obj, key, {
|
|
@@ -7603,7 +7712,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
|
|
|
7603
7712
|
'p-highlight': props.selected,
|
|
7604
7713
|
'p-disabled': props.disabled,
|
|
7605
7714
|
'p-dropdown-item-empty': !props.label || props.label.length === 0
|
|
7606
|
-
}, props.option.className);
|
|
7715
|
+
}, props.option && props.option.className);
|
|
7607
7716
|
var content = props.template ? utils.ObjectUtils.getJSXElement(props.template, props.option) : props.label;
|
|
7608
7717
|
return /*#__PURE__*/React__namespace.createElement("li", {
|
|
7609
7718
|
className: className,
|
|
@@ -8117,7 +8226,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
|
|
|
8117
8226
|
|
|
8118
8227
|
if (searchValue.current) {
|
|
8119
8228
|
var searchIndex = getSelectedOptionIndex();
|
|
8120
|
-
var newOption = props.optionGroupLabel ? searchOptionInGroup(searchIndex) : searchOption(
|
|
8229
|
+
var newOption = props.optionGroupLabel ? searchOptionInGroup(searchIndex) : searchOption(searchIndex + 1);
|
|
8121
8230
|
|
|
8122
8231
|
if (newOption) {
|
|
8123
8232
|
selectItem({
|
|
@@ -9555,11 +9664,17 @@ this.primereact.paginator = (function (exports, React, hooks, utils, ripple, inp
|
|
|
9555
9664
|
function _typeof(obj) {
|
|
9556
9665
|
"@babel/helpers - typeof";
|
|
9557
9666
|
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
}
|
|
9667
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
9668
|
+
_typeof = function _typeof(obj) {
|
|
9669
|
+
return typeof obj;
|
|
9670
|
+
};
|
|
9671
|
+
} else {
|
|
9672
|
+
_typeof = function _typeof(obj) {
|
|
9673
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
9674
|
+
};
|
|
9675
|
+
}
|
|
9676
|
+
|
|
9677
|
+
return _typeof(obj);
|
|
9563
9678
|
}
|
|
9564
9679
|
|
|
9565
9680
|
function _defineProperty(obj, key, value) {
|