primereact 8.0.0-rc.1 → 8.0.0-rc.2
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 +4 -2
- 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.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.d.ts +1 -0
- 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.d.ts +1 -0
- 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 +197 -134
- package/core/core.min.js +9 -9
- package/datascroller/datascroller.d.ts +1 -0
- package/datatable/datatable.cjs.js +4 -4
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +2 -1
- package/datatable/datatable.esm.js +4 -4
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +4 -4
- 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/image/image.d.ts +1 -0
- package/inplace/inplace.d.ts +7 -2
- package/inputmask/inputmask.cjs.js +2 -0
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +1 -0
- package/inputmask/inputmask.esm.js +2 -0
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +2 -0
- 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 +3 -2
- 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 +506 -257
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +506 -257
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +506 -257
- 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 +165 -140
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +51 -13
- package/resources/themes/arya-green/theme.css +51 -13
- package/resources/themes/arya-orange/theme.css +51 -13
- package/resources/themes/arya-purple/theme.css +51 -13
- package/resources/themes/bootstrap4-dark-blue/theme.css +51 -13
- package/resources/themes/bootstrap4-dark-purple/theme.css +51 -13
- package/resources/themes/bootstrap4-light-blue/theme.css +51 -13
- package/resources/themes/bootstrap4-light-purple/theme.css +51 -13
- package/resources/themes/fluent-light/theme.css +51 -13
- package/resources/themes/lara-dark-blue/theme.css +51 -13
- package/resources/themes/lara-dark-indigo/theme.css +51 -13
- package/resources/themes/lara-dark-purple/theme.css +51 -13
- package/resources/themes/lara-dark-teal/theme.css +51 -13
- package/resources/themes/lara-light-blue/theme.css +51 -13
- package/resources/themes/lara-light-indigo/theme.css +51 -13
- package/resources/themes/lara-light-purple/theme.css +51 -13
- package/resources/themes/lara-light-teal/theme.css +51 -13
- package/resources/themes/luna-amber/theme.css +51 -13
- package/resources/themes/luna-blue/theme.css +51 -13
- package/resources/themes/luna-green/theme.css +51 -13
- package/resources/themes/luna-pink/theme.css +51 -13
- package/resources/themes/md-dark-deeppurple/theme.css +54 -13
- package/resources/themes/md-dark-indigo/theme.css +54 -13
- package/resources/themes/md-light-deeppurple/theme.css +54 -13
- package/resources/themes/md-light-indigo/theme.css +54 -13
- package/resources/themes/mdc-dark-deeppurple/theme.css +54 -13
- package/resources/themes/mdc-dark-indigo/theme.css +54 -13
- package/resources/themes/mdc-light-deeppurple/theme.css +54 -13
- package/resources/themes/mdc-light-indigo/theme.css +54 -13
- package/resources/themes/nova/theme.css +51 -13
- package/resources/themes/nova-accent/theme.css +51 -13
- package/resources/themes/nova-alt/theme.css +51 -13
- package/resources/themes/rhea/theme.css +51 -13
- package/resources/themes/saga-blue/theme.css +51 -13
- package/resources/themes/saga-green/theme.css +51 -13
- package/resources/themes/saga-orange/theme.css +51 -13
- package/resources/themes/saga-purple/theme.css +51 -13
- package/resources/themes/tailwind-light/theme.css +50 -12
- package/resources/themes/vela-blue/theme.css +51 -13
- package/resources/themes/vela-green/theme.css +51 -13
- package/resources/themes/vela-orange/theme.css +51 -13
- package/resources/themes/vela-purple/theme.css +51 -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.d.ts +1 -0
- 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 +2 -1
- 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 -13
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
|
|
|
@@ -3314,6 +3314,7 @@ this.primereact.ripple = (function (exports, React, PrimeReact, hooks, utils) {
|
|
|
3314
3314
|
}
|
|
3315
3315
|
});
|
|
3316
3316
|
return PrimeReact__default["default"].ripple ? /*#__PURE__*/React__namespace.createElement("span", {
|
|
3317
|
+
role: "presentation",
|
|
3317
3318
|
ref: inkRef,
|
|
3318
3319
|
className: "p-ink",
|
|
3319
3320
|
onAnimationEnd: onAnimationEnd
|
|
@@ -3606,112 +3607,165 @@ this.primereact.portal = (function (exports, React, ReactDOM, PrimeReact, hooks,
|
|
|
3606
3607
|
|
|
3607
3608
|
this.primereact = this.primereact || {};
|
|
3608
3609
|
this.primereact.keyfilter = (function (exports, utils) {
|
|
3609
|
-
|
|
3610
|
+
'use strict';
|
|
3610
3611
|
|
|
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
|
-
},
|
|
3612
|
+
function _arrayLikeToArray(arr, len) {
|
|
3613
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3624
3614
|
|
|
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
|
|
3615
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
3616
|
+
arr2[i] = arr[i];
|
|
3617
|
+
}
|
|
3651
3618
|
|
|
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
|
-
}
|
|
3619
|
+
return arr2;
|
|
3620
|
+
}
|
|
3673
3621
|
|
|
3674
|
-
|
|
3675
|
-
|
|
3622
|
+
function _arrayWithoutHoles(arr) {
|
|
3623
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
3624
|
+
}
|
|
3676
3625
|
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3626
|
+
function _iterableToArray(iter) {
|
|
3627
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3628
|
+
}
|
|
3680
3629
|
|
|
3681
|
-
|
|
3630
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
3631
|
+
if (!o) return;
|
|
3632
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
3633
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3634
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3635
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
3636
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
3637
|
+
}
|
|
3682
3638
|
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3639
|
+
function _nonIterableSpread() {
|
|
3640
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3641
|
+
}
|
|
3686
3642
|
|
|
3687
|
-
|
|
3688
|
-
|
|
3643
|
+
function _toConsumableArray(arr) {
|
|
3644
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
3645
|
+
}
|
|
3689
3646
|
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3647
|
+
var KeyFilter = {
|
|
3648
|
+
/* eslint-disable */
|
|
3649
|
+
DEFAULT_MASKS: {
|
|
3650
|
+
pint: /[\d]/,
|
|
3651
|
+
"int": /[\d\-]/,
|
|
3652
|
+
pnum: /[\d\.]/,
|
|
3653
|
+
money: /[\d\.\s,]/,
|
|
3654
|
+
num: /[\d\-\.]/,
|
|
3655
|
+
hex: /[0-9a-f]/i,
|
|
3656
|
+
email: /[a-z0-9_\.\-@]/i,
|
|
3657
|
+
alpha: /[a-z_]/i,
|
|
3658
|
+
alphanum: /[a-z0-9_]/i
|
|
3659
|
+
},
|
|
3693
3660
|
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3661
|
+
/* eslint-enable */
|
|
3662
|
+
KEYS: {
|
|
3663
|
+
TAB: 9,
|
|
3664
|
+
RETURN: 13,
|
|
3665
|
+
ESC: 27,
|
|
3666
|
+
BACKSPACE: 8,
|
|
3667
|
+
DELETE: 46
|
|
3668
|
+
},
|
|
3669
|
+
SAFARI_KEYS: {
|
|
3670
|
+
63234: 37,
|
|
3671
|
+
// left
|
|
3672
|
+
63235: 39,
|
|
3673
|
+
// right
|
|
3674
|
+
63232: 38,
|
|
3675
|
+
// up
|
|
3676
|
+
63233: 40,
|
|
3677
|
+
// down
|
|
3678
|
+
63276: 33,
|
|
3679
|
+
// page up
|
|
3680
|
+
63277: 34,
|
|
3681
|
+
// page down
|
|
3682
|
+
63272: 46,
|
|
3683
|
+
// delete
|
|
3684
|
+
63273: 36,
|
|
3685
|
+
// home
|
|
3686
|
+
63275: 35 // end
|
|
3687
|
+
|
|
3688
|
+
},
|
|
3689
|
+
isNavKeyPress: function isNavKeyPress(e) {
|
|
3690
|
+
var k = e.keyCode;
|
|
3691
|
+
k = utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
|
|
3692
|
+
return k >= 33 && k <= 40 || k === KeyFilter.KEYS.RETURN || k === KeyFilter.KEYS.TAB || k === KeyFilter.KEYS.ESC;
|
|
3693
|
+
},
|
|
3694
|
+
isSpecialKey: function isSpecialKey(e) {
|
|
3695
|
+
var k = e.keyCode;
|
|
3696
|
+
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);
|
|
3697
|
+
},
|
|
3698
|
+
getKey: function getKey(e) {
|
|
3699
|
+
var k = e.keyCode || e.charCode;
|
|
3700
|
+
return utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
|
|
3701
|
+
},
|
|
3702
|
+
getCharCode: function getCharCode(e) {
|
|
3703
|
+
return e.charCode || e.keyCode || e.which;
|
|
3704
|
+
},
|
|
3705
|
+
getRegex: function getRegex(keyfilter) {
|
|
3706
|
+
return KeyFilter.DEFAULT_MASKS[keyfilter] ? KeyFilter.DEFAULT_MASKS[keyfilter] : keyfilter;
|
|
3707
|
+
},
|
|
3708
|
+
onKeyPress: function onKeyPress(e, keyfilter, validateOnly) {
|
|
3709
|
+
if (validateOnly) {
|
|
3710
|
+
return;
|
|
3711
|
+
}
|
|
3712
|
+
|
|
3713
|
+
var regex = this.getRegex(keyfilter);
|
|
3714
|
+
var browser = utils.DomHandler.getBrowser();
|
|
3715
|
+
|
|
3716
|
+
if (e.ctrlKey || e.altKey) {
|
|
3717
|
+
return;
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
var k = this.getKey(e);
|
|
3721
|
+
|
|
3722
|
+
if (browser.mozilla && (this.isNavKeyPress(e) || k === KeyFilter.KEYS.BACKSPACE || k === KeyFilter.KEYS.DELETE && e.charCode === 0)) {
|
|
3723
|
+
return;
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3726
|
+
var c = this.getCharCode(e);
|
|
3727
|
+
var cc = String.fromCharCode(c);
|
|
3701
3728
|
|
|
3702
|
-
|
|
3703
|
-
|
|
3729
|
+
if (browser.mozilla && (this.isSpecialKey(e) || !cc)) {
|
|
3730
|
+
return;
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3733
|
+
if (!regex.test(cc)) {
|
|
3734
|
+
e.preventDefault();
|
|
3735
|
+
}
|
|
3736
|
+
},
|
|
3737
|
+
onPaste: function onPaste(e, keyfilter, validateOnly) {
|
|
3738
|
+
if (validateOnly) {
|
|
3739
|
+
return;
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
var regex = this.getRegex(keyfilter);
|
|
3743
|
+
var clipboard = e.clipboardData.getData("text"); // loop over each letter pasted and if any fail prevent the paste
|
|
3744
|
+
|
|
3745
|
+
_toConsumableArray(clipboard).forEach(function (c) {
|
|
3746
|
+
if (!regex.test(c)) {
|
|
3747
|
+
e.preventDefault();
|
|
3748
|
+
return false;
|
|
3704
3749
|
}
|
|
3750
|
+
});
|
|
3751
|
+
},
|
|
3752
|
+
validate: function validate(e, keyfilter) {
|
|
3753
|
+
var value = e.target.value,
|
|
3754
|
+
validatePattern = true;
|
|
3705
3755
|
|
|
3706
|
-
|
|
3756
|
+
if (value && !keyfilter.test(value)) {
|
|
3757
|
+
validatePattern = false;
|
|
3707
3758
|
}
|
|
3708
|
-
};
|
|
3709
3759
|
|
|
3710
|
-
|
|
3760
|
+
return validatePattern;
|
|
3761
|
+
}
|
|
3762
|
+
};
|
|
3763
|
+
|
|
3764
|
+
exports.KeyFilter = KeyFilter;
|
|
3711
3765
|
|
|
3712
|
-
|
|
3766
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3713
3767
|
|
|
3714
|
-
|
|
3768
|
+
return exports;
|
|
3715
3769
|
|
|
3716
3770
|
})({}, primereact.utils);
|
|
3717
3771
|
|
|
@@ -5456,13 +5510,6 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
|
|
|
5456
5510
|
setFocusedState(false);
|
|
5457
5511
|
};
|
|
5458
5512
|
|
|
5459
|
-
var onKeyDown = function onKeyDown(event) {
|
|
5460
|
-
if (event.key === 'Enter') {
|
|
5461
|
-
onClick(event);
|
|
5462
|
-
event.preventDefault();
|
|
5463
|
-
}
|
|
5464
|
-
};
|
|
5465
|
-
|
|
5466
5513
|
var isChecked = function isChecked() {
|
|
5467
5514
|
return props.checked === props.trueValue;
|
|
5468
5515
|
};
|
|
@@ -5510,17 +5557,15 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
|
|
|
5510
5557
|
name: props.name,
|
|
5511
5558
|
tabIndex: props.tabIndex,
|
|
5512
5559
|
defaultChecked: checked,
|
|
5513
|
-
"aria-labelledby": props
|
|
5514
|
-
|
|
5560
|
+
"aria-labelledby": props['aria-labelledby'],
|
|
5561
|
+
"aria-label": props['aria-label'],
|
|
5515
5562
|
onFocus: onFocus,
|
|
5516
5563
|
onBlur: onBlur,
|
|
5517
5564
|
disabled: props.disabled,
|
|
5518
5565
|
readOnly: props.readOnly,
|
|
5519
5566
|
required: props.required
|
|
5520
5567
|
})), /*#__PURE__*/React__namespace.createElement("div", {
|
|
5521
|
-
className: boxClass
|
|
5522
|
-
role: "checkbox",
|
|
5523
|
-
"aria-checked": checked
|
|
5568
|
+
className: boxClass
|
|
5524
5569
|
}, icon)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
5525
5570
|
target: elementRef,
|
|
5526
5571
|
content: props.tooltip
|
|
@@ -5546,7 +5591,8 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
|
|
|
5546
5591
|
icon: 'pi pi-check',
|
|
5547
5592
|
tooltip: null,
|
|
5548
5593
|
tooltipOptions: null,
|
|
5549
|
-
|
|
5594
|
+
'aria-label': null,
|
|
5595
|
+
'aria-labelledby': null,
|
|
5550
5596
|
onChange: null,
|
|
5551
5597
|
onMouseDown: null,
|
|
5552
5598
|
onContextMenu: null
|
|
@@ -5674,8 +5720,10 @@ this.primereact.button = (function (exports, React, ripple, tooltip, utils) {
|
|
|
5674
5720
|
var icon = createIcon();
|
|
5675
5721
|
var label = createLabel();
|
|
5676
5722
|
var badge = createBadge();
|
|
5723
|
+
var defaultAriaLabel = props.label ? props.label + (props.badge ? ' ' + props.badge : '') : '';
|
|
5677
5724
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("button", _extends({
|
|
5678
|
-
ref: elementRef
|
|
5725
|
+
ref: elementRef,
|
|
5726
|
+
"aria-label": defaultAriaLabel
|
|
5679
5727
|
}, otherProps, {
|
|
5680
5728
|
className: className,
|
|
5681
5729
|
disabled: disabled
|
|
@@ -5775,6 +5823,14 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
|
|
|
5775
5823
|
}
|
|
5776
5824
|
};
|
|
5777
5825
|
|
|
5826
|
+
var onPaste = function onPaste(event) {
|
|
5827
|
+
props.onPaste && props.onPaste(event);
|
|
5828
|
+
|
|
5829
|
+
if (props.keyfilter) {
|
|
5830
|
+
keyfilter.KeyFilter.onPaste(event, props.keyfilter, props.validateOnly);
|
|
5831
|
+
}
|
|
5832
|
+
};
|
|
5833
|
+
|
|
5778
5834
|
var isFilled = React__namespace.useMemo(function () {
|
|
5779
5835
|
return utils.ObjectUtils.isNotEmpty(props.value) || utils.ObjectUtils.isNotEmpty(props.defaultValue) || elementRef.current && utils.ObjectUtils.isNotEmpty(elementRef.current.value);
|
|
5780
5836
|
}, [props.value, props.defaultValue]);
|
|
@@ -5792,7 +5848,8 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
|
|
|
5792
5848
|
}, otherProps, {
|
|
5793
5849
|
className: className,
|
|
5794
5850
|
onInput: onInput,
|
|
5795
|
-
onKeyPress: onKeyPress
|
|
5851
|
+
onKeyPress: onKeyPress,
|
|
5852
|
+
onPaste: onPaste
|
|
5796
5853
|
})), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
5797
5854
|
target: elementRef,
|
|
5798
5855
|
content: props.tooltip
|
|
@@ -5806,7 +5863,8 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
|
|
|
5806
5863
|
tooltip: null,
|
|
5807
5864
|
tooltipOptions: null,
|
|
5808
5865
|
onInput: null,
|
|
5809
|
-
onKeyPress: null
|
|
5866
|
+
onKeyPress: null,
|
|
5867
|
+
onPaste: null
|
|
5810
5868
|
};
|
|
5811
5869
|
|
|
5812
5870
|
exports.InputText = InputText;
|
|
@@ -6831,12 +6889,15 @@ this.primereact.inputnumber = (function (exports, React, hooks, inputtext, rippl
|
|
|
6831
6889
|
|
|
6832
6890
|
var onInputBlur = function onInputBlur(event) {
|
|
6833
6891
|
setFocusedState(false);
|
|
6834
|
-
var currentValue = inputRef.current.value;
|
|
6835
6892
|
|
|
6836
|
-
if (
|
|
6837
|
-
var
|
|
6838
|
-
|
|
6839
|
-
|
|
6893
|
+
if (inputRef.current) {
|
|
6894
|
+
var currentValue = inputRef.current.value;
|
|
6895
|
+
|
|
6896
|
+
if (isValueChanged(currentValue, props.value)) {
|
|
6897
|
+
var newValue = validateValue(parseValue(currentValue));
|
|
6898
|
+
updateInputValue(newValue);
|
|
6899
|
+
updateModel(event, newValue);
|
|
6900
|
+
}
|
|
6840
6901
|
}
|
|
6841
6902
|
|
|
6842
6903
|
props.onBlur && props.onBlur(event);
|
|
@@ -7509,10 +7570,6 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
|
|
|
7509
7570
|
return _extends.apply(this, arguments);
|
|
7510
7571
|
}
|
|
7511
7572
|
|
|
7512
|
-
function _readOnlyError(name) {
|
|
7513
|
-
throw new TypeError("\"" + name + "\" is read-only");
|
|
7514
|
-
}
|
|
7515
|
-
|
|
7516
7573
|
function _defineProperty(obj, key, value) {
|
|
7517
7574
|
if (key in obj) {
|
|
7518
7575
|
Object.defineProperty(obj, key, {
|
|
@@ -7603,7 +7660,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
|
|
|
7603
7660
|
'p-highlight': props.selected,
|
|
7604
7661
|
'p-disabled': props.disabled,
|
|
7605
7662
|
'p-dropdown-item-empty': !props.label || props.label.length === 0
|
|
7606
|
-
}, props.option.className);
|
|
7663
|
+
}, props.option && props.option.className);
|
|
7607
7664
|
var content = props.template ? utils.ObjectUtils.getJSXElement(props.template, props.option) : props.label;
|
|
7608
7665
|
return /*#__PURE__*/React__namespace.createElement("li", {
|
|
7609
7666
|
className: className,
|
|
@@ -8117,7 +8174,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
|
|
|
8117
8174
|
|
|
8118
8175
|
if (searchValue.current) {
|
|
8119
8176
|
var searchIndex = getSelectedOptionIndex();
|
|
8120
|
-
var newOption = props.optionGroupLabel ? searchOptionInGroup(searchIndex) : searchOption(
|
|
8177
|
+
var newOption = props.optionGroupLabel ? searchOptionInGroup(searchIndex) : searchOption(searchIndex + 1);
|
|
8121
8178
|
|
|
8122
8179
|
if (newOption) {
|
|
8123
8180
|
selectItem({
|
|
@@ -9555,11 +9612,17 @@ this.primereact.paginator = (function (exports, React, hooks, utils, ripple, inp
|
|
|
9555
9612
|
function _typeof(obj) {
|
|
9556
9613
|
"@babel/helpers - typeof";
|
|
9557
9614
|
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
}
|
|
9615
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
9616
|
+
_typeof = function _typeof(obj) {
|
|
9617
|
+
return typeof obj;
|
|
9618
|
+
};
|
|
9619
|
+
} else {
|
|
9620
|
+
_typeof = function _typeof(obj) {
|
|
9621
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
9622
|
+
};
|
|
9623
|
+
}
|
|
9624
|
+
|
|
9625
|
+
return _typeof(obj);
|
|
9563
9626
|
}
|
|
9564
9627
|
|
|
9565
9628
|
function _defineProperty(obj, key, value) {
|