primereact 8.6.1 → 8.7.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/accordion/accordion.cjs.js +8 -7
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +8 -7
- package/accordion/accordion.esm.js +8 -7
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +8 -7
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +19 -10
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +19 -10
- package/api/api.esm.min.js +1 -1
- package/api/api.js +19 -10
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +6 -3
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +6 -3
- package/autocomplete/autocomplete.esm.js +6 -3
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +6 -3
- package/autocomplete/autocomplete.min.js +1 -1
- package/button/button.cjs.js +1 -1
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +8 -10
- package/button/button.esm.js +1 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +1 -1
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +11 -2
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +5 -3
- package/calendar/calendar.esm.js +11 -2
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +11 -2
- package/calendar/calendar.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +1 -1
- package/chart/chart.d.ts +1 -1
- package/checkbox/checkbox.cjs.js +1 -2
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/checkbox.esm.js +1 -2
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +1 -2
- package/checkbox/checkbox.min.js +1 -1
- package/column/column.cjs.js +60 -58
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +76 -61
- package/column/column.esm.js +60 -58
- package/column/column.esm.min.js +1 -1
- package/column/column.js +60 -58
- package/column/column.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +1 -1
- package/core/core.js +88 -63
- package/core/core.min.js +10 -10
- package/datascroller/datascroller.cjs.js +5 -1
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +9 -9
- package/datascroller/datascroller.esm.js +5 -1
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +5 -1
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +146 -130
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +11 -7
- package/datatable/datatable.esm.js +146 -130
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +147 -132
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.d.ts +1 -1
- package/dialog/dialog.cjs.js +38 -37
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +34 -34
- package/dialog/dialog.esm.js +38 -37
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +38 -37
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.cjs.js +2 -3
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +2 -2
- package/dropdown/dropdown.esm.js +2 -3
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +2 -3
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +10 -1
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +0 -3
- package/editor/editor.esm.js +10 -1
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +10 -1
- package/editor/editor.min.js +1 -1
- package/fileupload/fileupload.d.ts +4 -4
- package/galleria/galleria.cjs.js +1 -1
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +1 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +1 -1
- package/galleria/galleria.min.js +1 -1
- package/image/image.cjs.js +20 -17
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +9 -6
- package/image/image.esm.js +20 -17
- package/image/image.esm.min.js +1 -1
- package/image/image.js +20 -17
- package/image/image.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +11 -3
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +1 -1
- package/inputnumber/inputnumber.esm.js +11 -3
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +11 -3
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +1 -2
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +1 -1
- package/inputswitch/inputswitch.esm.js +1 -2
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +1 -2
- package/inputswitch/inputswitch.min.js +1 -1
- package/knob/knob.d.ts +1 -1
- package/listbox/listbox.d.ts +37 -24
- package/mention/mention.d.ts +17 -16
- package/menuitem/menuitem.d.ts +1 -1
- package/multiselect/multiselect.cjs.js +2 -4
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +2 -2
- package/multiselect/multiselect.esm.js +2 -4
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +2 -4
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +1 -1
- package/orderlist/orderlist.d.ts +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +2 -2
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +9 -9
- package/paginator/paginator.esm.js +2 -2
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +2 -2
- package/paginator/paginator.min.js +1 -1
- package/password/password.d.ts +2 -2
- package/picklist/picklist.d.ts +3 -3
- package/primereact.all.cjs.js +709 -616
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +709 -616
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +709 -616
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +5 -5
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +5 -5
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +5 -5
- package/progressbar/progressbar.min.css +1 -1
- package/progressbar/progressbar.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +1 -2
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +1 -2
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +1 -2
- package/radiobutton/radiobutton.min.js +1 -1
- package/resources/primereact.css +524 -524
- package/resources/primereact.min.css +1 -1
- package/ripple/ripple.cjs.js +7 -0
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +7 -0
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +7 -0
- package/ripple/ripple.min.js +1 -1
- package/row/row.d.ts +1 -1
- package/scrolltop/scrolltop.d.ts +1 -1
- package/sidebar/sidebar.d.ts +1 -1
- package/slidemenu/slidemenu.cjs.js +20 -11
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +17 -9
- package/slidemenu/slidemenu.esm.js +20 -11
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +20 -11
- package/slidemenu/slidemenu.min.js +1 -1
- package/speeddial/speeddial.d.ts +2 -2
- package/splitbutton/splitbutton.d.ts +1 -1
- package/splitter/splitter.cjs.js +86 -69
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +1 -1
- package/splitter/splitter.esm.js +86 -69
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +87 -70
- package/splitter/splitter.min.js +1 -1
- package/tabview/tabview.d.ts +5 -4
- package/toast/toast.cjs.js +17 -12
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +3 -2
- package/toast/toast.esm.js +17 -12
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +17 -12
- package/toast/toast.min.js +1 -1
- package/tooltip/tooltip.cjs.js +2 -0
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +3 -1
- package/tooltip/tooltip.esm.js +2 -0
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +2 -0
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +1 -1
- package/tree/tree.d.ts +2 -2
- package/treenode/treenode.d.ts +1 -1
- package/treeselect/treeselect.d.ts +1 -1
- package/treetable/treetable.cjs.js +81 -67
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +62 -61
- package/treetable/treetable.esm.js +83 -69
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +82 -69
- package/treetable/treetable.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +1 -1
- package/web-types.json +73 -2
package/column/column.js
CHANGED
|
@@ -6,80 +6,82 @@ this.primereact.column = (function (exports) {
|
|
|
6
6
|
Column.displayName = 'Column';
|
|
7
7
|
Column.defaultProps = {
|
|
8
8
|
__TYPE: 'Column',
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
filterField: null,
|
|
13
|
-
exportField: null,
|
|
14
|
-
header: null,
|
|
9
|
+
align: null,
|
|
10
|
+
alignFrozen: 'left',
|
|
11
|
+
alignHeader: null,
|
|
15
12
|
body: null,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
bodyClassName: null,
|
|
14
|
+
bodyStyle: null,
|
|
15
|
+
cellEditValidator: null,
|
|
16
|
+
cellEditValidatorEvent: 'click',
|
|
17
|
+
className: null,
|
|
18
|
+
colSpan: null,
|
|
19
|
+
columnKey: null,
|
|
20
20
|
dataType: 'text',
|
|
21
|
+
editor: null,
|
|
22
|
+
excludeGlobalFilter: false,
|
|
23
|
+
expander: false,
|
|
24
|
+
exportField: null,
|
|
25
|
+
exportable: true,
|
|
26
|
+
field: null,
|
|
21
27
|
filter: false,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
filterType: 'text',
|
|
25
|
-
filterMaxLength: null,
|
|
28
|
+
filterApply: null,
|
|
29
|
+
filterClear: null,
|
|
26
30
|
filterElement: null,
|
|
31
|
+
filterField: null,
|
|
32
|
+
filterFooter: null,
|
|
27
33
|
filterFunction: null,
|
|
28
|
-
|
|
34
|
+
filterHeader: null,
|
|
29
35
|
filterHeaderClassName: null,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
showClearButton: true,
|
|
33
|
-
showApplyButton: true,
|
|
34
|
-
showFilterMatchModes: true,
|
|
35
|
-
showFilterMenuOptions: true,
|
|
36
|
-
showAddButton: true,
|
|
36
|
+
filterHeaderStyle: null,
|
|
37
|
+
filterMatchMode: null,
|
|
37
38
|
filterMatchModeOptions: null,
|
|
38
|
-
|
|
39
|
+
filterMaxLength: null,
|
|
39
40
|
filterMenuClassName: null,
|
|
40
41
|
filterMenuStyle: null,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
hidden: false,
|
|
45
|
-
onFilterClear: null,
|
|
46
|
-
onFilterApplyClick: null,
|
|
47
|
-
onFilterMatchModeChange: null,
|
|
48
|
-
onFilterOperatorChange: null,
|
|
49
|
-
onFilterConstraintAdd: null,
|
|
50
|
-
onFilterConstraintRemove: null,
|
|
51
|
-
filterClear: null,
|
|
52
|
-
filterApply: null,
|
|
53
|
-
filterHeader: null,
|
|
54
|
-
filterFooter: null,
|
|
55
|
-
style: null,
|
|
56
|
-
className: null,
|
|
57
|
-
headerStyle: null,
|
|
58
|
-
headerClassName: null,
|
|
59
|
-
bodyStyle: null,
|
|
60
|
-
bodyClassName: null,
|
|
61
|
-
footerStyle: null,
|
|
42
|
+
filterPlaceholder: null,
|
|
43
|
+
filterType: 'text',
|
|
44
|
+
footer: null,
|
|
62
45
|
footerClassName: null,
|
|
63
|
-
|
|
46
|
+
footerStyle: null,
|
|
64
47
|
frozen: false,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
48
|
+
header: null,
|
|
49
|
+
headerClassName: null,
|
|
50
|
+
headerStyle: null,
|
|
51
|
+
headerTooltip: null,
|
|
52
|
+
headerTooltipOptions: null,
|
|
53
|
+
hidden: false,
|
|
54
|
+
maxConstraints: 2,
|
|
71
55
|
onBeforeCellEditHide: null,
|
|
72
56
|
onBeforeCellEditShow: null,
|
|
73
|
-
onCellEditInit: null,
|
|
74
|
-
onCellEditComplete: null,
|
|
75
57
|
onCellEditCancel: null,
|
|
76
|
-
|
|
58
|
+
onCellEditComplete: null,
|
|
59
|
+
onCellEditInit: null,
|
|
60
|
+
onFilterApplyClick: null,
|
|
61
|
+
onFilterClear: null,
|
|
62
|
+
onFilterConstraintAdd: null,
|
|
63
|
+
onFilterConstraintRemove: null,
|
|
64
|
+
onFilterMatchModeChange: null,
|
|
65
|
+
onFilterOperatorChange: null,
|
|
66
|
+
reorderable: true,
|
|
67
|
+
resizeable: true,
|
|
68
|
+
rowEditor: false,
|
|
77
69
|
rowReorder: false,
|
|
78
70
|
rowReorderIcon: 'pi pi-bars',
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
71
|
+
rowSpan: null,
|
|
72
|
+
selectionMode: null,
|
|
73
|
+
showAddButton: true,
|
|
74
|
+
showApplyButton: true,
|
|
75
|
+
showClearButton: true,
|
|
76
|
+
showFilterMatchModes: true,
|
|
77
|
+
showFilterMenu: true,
|
|
78
|
+
showFilterMenuOptions: true,
|
|
79
|
+
showFilterOperator: true,
|
|
80
|
+
sortField: null,
|
|
81
|
+
sortFunction: null,
|
|
82
|
+
sortable: false,
|
|
83
|
+
sortableDisabled: false,
|
|
84
|
+
style: null
|
|
83
85
|
};
|
|
84
86
|
|
|
85
87
|
exports.Column = Column;
|
package/column/column.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.column=function(l){"use strict";var e=function(){};return e.displayName="Column",e.defaultProps={__TYPE:"Column",
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.column=function(l){"use strict";var e=function(){};return e.displayName="Column",e.defaultProps={__TYPE:"Column",align:null,alignFrozen:"left",alignHeader:null,body:null,bodyClassName:null,bodyStyle:null,cellEditValidator:null,cellEditValidatorEvent:"click",className:null,colSpan:null,columnKey:null,dataType:"text",editor:null,excludeGlobalFilter:!1,expander:!1,exportField:null,exportable:!0,field:null,filter:!1,filterApply:null,filterClear:null,filterElement:null,filterField:null,filterFooter:null,filterFunction:null,filterHeader:null,filterHeaderClassName:null,filterHeaderStyle:null,filterMatchMode:null,filterMatchModeOptions:null,filterMaxLength:null,filterMenuClassName:null,filterMenuStyle:null,filterPlaceholder:null,filterType:"text",footer:null,footerClassName:null,footerStyle:null,frozen:!1,header:null,headerClassName:null,headerStyle:null,headerTooltip:null,headerTooltipOptions:null,hidden:!1,maxConstraints:2,onBeforeCellEditHide:null,onBeforeCellEditShow:null,onCellEditCancel:null,onCellEditComplete:null,onCellEditInit:null,onFilterApplyClick:null,onFilterClear:null,onFilterConstraintAdd:null,onFilterConstraintRemove:null,onFilterMatchModeChange:null,onFilterOperatorChange:null,reorderable:!0,resizeable:!0,rowEditor:!1,rowReorder:!1,rowReorderIcon:"pi pi-bars",rowSpan:null,selectionMode:null,showAddButton:!0,showApplyButton:!0,showClearButton:!0,showFilterMatchModes:!0,showFilterMenu:!0,showFilterMenuOptions:!0,showFilterOperator:!0,sortField:null,sortFunction:null,sortable:!1,sortableDisabled:!1,style:null},l.Column=e,Object.defineProperty(l,"__esModule",{value:!0}),l}({});
|
|
@@ -32,7 +32,7 @@ export interface ConfirmPopupProps {
|
|
|
32
32
|
rejectClassName?: string;
|
|
33
33
|
acceptClassName?: string;
|
|
34
34
|
className?: string;
|
|
35
|
-
style?:
|
|
35
|
+
style?: React.CSSProperties;
|
|
36
36
|
appendTo?: ConfirmPopupAppendToType;
|
|
37
37
|
dismissable?: boolean;
|
|
38
38
|
footer?: ConfirmPopupTemplateType;
|
package/core/core.js
CHANGED
|
@@ -2315,14 +2315,23 @@ this.primereact.api = (function (exports, utils) {
|
|
|
2315
2315
|
filter: function filter(value, fields, filterValue, filterMatchMode, filterLocale) {
|
|
2316
2316
|
var filteredItems = [];
|
|
2317
2317
|
|
|
2318
|
-
if (value) {
|
|
2319
|
-
|
|
2320
|
-
|
|
2318
|
+
if (!value) {
|
|
2319
|
+
return filteredItems;
|
|
2320
|
+
}
|
|
2321
2321
|
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
var item = _step.value;
|
|
2322
|
+
var _iterator = _createForOfIteratorHelper(value),
|
|
2323
|
+
_step;
|
|
2325
2324
|
|
|
2325
|
+
try {
|
|
2326
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2327
|
+
var item = _step.value;
|
|
2328
|
+
|
|
2329
|
+
if (typeof item === 'string') {
|
|
2330
|
+
if (this.filters[filterMatchMode](item, filterValue, filterLocale)) {
|
|
2331
|
+
filteredItems.push(item);
|
|
2332
|
+
continue;
|
|
2333
|
+
}
|
|
2334
|
+
} else {
|
|
2326
2335
|
var _iterator2 = _createForOfIteratorHelper(fields),
|
|
2327
2336
|
_step2;
|
|
2328
2337
|
|
|
@@ -2342,11 +2351,11 @@ this.primereact.api = (function (exports, utils) {
|
|
|
2342
2351
|
_iterator2.f();
|
|
2343
2352
|
}
|
|
2344
2353
|
}
|
|
2345
|
-
} catch (err) {
|
|
2346
|
-
_iterator.e(err);
|
|
2347
|
-
} finally {
|
|
2348
|
-
_iterator.f();
|
|
2349
2354
|
}
|
|
2355
|
+
} catch (err) {
|
|
2356
|
+
_iterator.e(err);
|
|
2357
|
+
} finally {
|
|
2358
|
+
_iterator.f();
|
|
2350
2359
|
}
|
|
2351
2360
|
|
|
2352
2361
|
return filteredItems;
|
|
@@ -3560,15 +3569,22 @@ this.primereact.ripple = (function (exports, React, PrimeReact, hooks, utils) {
|
|
|
3560
3569
|
var bindEvents = function bindEvents() {
|
|
3561
3570
|
if (targetRef.current) {
|
|
3562
3571
|
targetRef.current.addEventListener('mousedown', onMouseDown);
|
|
3572
|
+
utils.DomHandler.isTouchDevice() && targetRef.current.addEventListener('touchstart', onTouchStart);
|
|
3563
3573
|
}
|
|
3564
3574
|
};
|
|
3565
3575
|
|
|
3566
3576
|
var unbindEvents = function unbindEvents() {
|
|
3567
3577
|
if (targetRef.current) {
|
|
3568
3578
|
targetRef.current.removeEventListener('mousedown', onMouseDown);
|
|
3579
|
+
utils.DomHandler.isTouchDevice() && targetRef.current.removeEventListener('touchstart', onTouchStart);
|
|
3569
3580
|
}
|
|
3570
3581
|
};
|
|
3571
3582
|
|
|
3583
|
+
var onTouchStart = function onTouchStart(event) {
|
|
3584
|
+
onMouseDown(event);
|
|
3585
|
+
event.preventDefault();
|
|
3586
|
+
};
|
|
3587
|
+
|
|
3572
3588
|
var onMouseDown = function onMouseDown(event) {
|
|
3573
3589
|
if (!inkRef.current || getComputedStyle(inkRef.current, null).display === 'none') {
|
|
3574
3590
|
return;
|
|
@@ -4646,6 +4662,8 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, hooks, portal,
|
|
|
4646
4662
|
updateTargetEvents: updateTargetEvents,
|
|
4647
4663
|
loadTargetEvents: loadTargetEvents,
|
|
4648
4664
|
unloadTargetEvents: unloadTargetEvents,
|
|
4665
|
+
show: show,
|
|
4666
|
+
hide: hide,
|
|
4649
4667
|
getElement: function getElement() {
|
|
4650
4668
|
return elementRef.current;
|
|
4651
4669
|
},
|
|
@@ -5915,7 +5933,6 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
|
|
|
5915
5933
|
var checked = isChecked();
|
|
5916
5934
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
5917
5935
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, Checkbox.defaultProps);
|
|
5918
|
-
var dataProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.DATA_PROPS);
|
|
5919
5936
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
5920
5937
|
var className = utils.classNames('p-checkbox p-component', {
|
|
5921
5938
|
'p-checkbox-checked': checked,
|
|
@@ -5957,7 +5974,7 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
|
|
|
5957
5974
|
disabled: props.disabled,
|
|
5958
5975
|
readOnly: props.readOnly,
|
|
5959
5976
|
required: props.required
|
|
5960
|
-
}, ariaProps
|
|
5977
|
+
}, ariaProps))), /*#__PURE__*/React__namespace.createElement("div", {
|
|
5961
5978
|
className: boxClass
|
|
5962
5979
|
}, icon)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
5963
5980
|
target: elementRef,
|
|
@@ -6105,7 +6122,7 @@ this.primereact.button = (function (exports, React, ripple, tooltip, utils) {
|
|
|
6105
6122
|
var disabled = props.disabled || props.loading;
|
|
6106
6123
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, Button.defaultProps);
|
|
6107
6124
|
var className = utils.classNames('p-button p-component', props.className, _defineProperty({
|
|
6108
|
-
'p-button-icon-only': (props.icon || props.loading && props.loadingIcon) && !props.label,
|
|
6125
|
+
'p-button-icon-only': (props.icon || props.loading && props.loadingIcon) && !props.label && !props.children,
|
|
6109
6126
|
'p-button-vertical': (props.iconPos === 'top' || props.iconPos === 'bottom') && props.label,
|
|
6110
6127
|
'p-disabled': disabled,
|
|
6111
6128
|
'p-button-loading': props.loading,
|
|
@@ -6842,7 +6859,7 @@ this.primereact.inputnumber = (function (exports, React, hooks, inputtext, rippl
|
|
|
6842
6859
|
_decimal.current.lastIndex = 0;
|
|
6843
6860
|
|
|
6844
6861
|
if (_decimalLength) {
|
|
6845
|
-
|
|
6862
|
+
inputRef.current.setSelectionRange(selectionStart + 1, selectionStart + 1);
|
|
6846
6863
|
} else {
|
|
6847
6864
|
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
6848
6865
|
}
|
|
@@ -7168,7 +7185,15 @@ this.primereact.inputnumber = (function (exports, React, hooks, inputtext, rippl
|
|
|
7168
7185
|
};
|
|
7169
7186
|
|
|
7170
7187
|
var validateValue = function validateValue(value) {
|
|
7171
|
-
if (value === '-'
|
|
7188
|
+
if (value === '-') {
|
|
7189
|
+
return null;
|
|
7190
|
+
}
|
|
7191
|
+
|
|
7192
|
+
return validateValueByLimit(value);
|
|
7193
|
+
};
|
|
7194
|
+
|
|
7195
|
+
var validateValueByLimit = function validateValueByLimit(value) {
|
|
7196
|
+
if (utils.ObjectUtils.isEmpty(value)) {
|
|
7172
7197
|
return null;
|
|
7173
7198
|
}
|
|
7174
7199
|
|
|
@@ -7334,8 +7359,8 @@ this.primereact.inputnumber = (function (exports, React, hooks, inputtext, rippl
|
|
|
7334
7359
|
};
|
|
7335
7360
|
|
|
7336
7361
|
var changeValue = function changeValue() {
|
|
7362
|
+
updateInputValue(validateValueByLimit(props.value));
|
|
7337
7363
|
var newValue = validateValue(props.value);
|
|
7338
|
-
updateInputValue(newValue);
|
|
7339
7364
|
|
|
7340
7365
|
if (props.value !== null && props.value !== newValue) {
|
|
7341
7366
|
updateModel(null, newValue);
|
|
@@ -7934,9 +7959,7 @@ this.primereact.progressbar = (function (exports, React, utils) {
|
|
|
7934
7959
|
var createLabel = function createLabel() {
|
|
7935
7960
|
if (props.showValue && props.value != null) {
|
|
7936
7961
|
var label = props.displayValueTemplate ? props.displayValueTemplate(props.value) : props.value + props.unit;
|
|
7937
|
-
return
|
|
7938
|
-
className: "p-progressbar-label"
|
|
7939
|
-
}, label);
|
|
7962
|
+
return label;
|
|
7940
7963
|
}
|
|
7941
7964
|
|
|
7942
7965
|
return null;
|
|
@@ -7959,10 +7982,12 @@ this.primereact.progressbar = (function (exports, React, utils) {
|
|
|
7959
7982
|
className: "p-progressbar-value p-progressbar-value-animate",
|
|
7960
7983
|
style: {
|
|
7961
7984
|
width: props.value + '%',
|
|
7962
|
-
display: '
|
|
7985
|
+
display: 'flex',
|
|
7963
7986
|
backgroundColor: props.color
|
|
7964
7987
|
}
|
|
7965
|
-
}
|
|
7988
|
+
}, props.value != null && props.value !== 0 && props.showValue && /*#__PURE__*/React__namespace.createElement("div", {
|
|
7989
|
+
className: "p-progressbar-label"
|
|
7990
|
+
}, label)));
|
|
7966
7991
|
};
|
|
7967
7992
|
|
|
7968
7993
|
var createIndeterminate = function createIndeterminate() {
|
|
@@ -9104,14 +9129,14 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
|
|
|
9104
9129
|
|
|
9105
9130
|
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
9106
9131
|
className: "p-hidden-accessible p-dropdown-hidden-select"
|
|
9107
|
-
}, /*#__PURE__*/React__namespace.createElement("select",
|
|
9132
|
+
}, /*#__PURE__*/React__namespace.createElement("select", {
|
|
9108
9133
|
ref: inputRef,
|
|
9109
9134
|
required: props.required,
|
|
9110
9135
|
defaultValue: option.value,
|
|
9111
9136
|
name: props.name,
|
|
9112
9137
|
tabIndex: -1,
|
|
9113
9138
|
"aria-hidden": "true"
|
|
9114
|
-
},
|
|
9139
|
+
}, /*#__PURE__*/React__namespace.createElement("option", {
|
|
9115
9140
|
value: option.value
|
|
9116
9141
|
}, option.label)));
|
|
9117
9142
|
};
|
|
@@ -9194,7 +9219,6 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
|
|
|
9194
9219
|
var selectedOption = getSelectedOption();
|
|
9195
9220
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
9196
9221
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, Dropdown.defaultProps);
|
|
9197
|
-
var dataProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.DATA_PROPS);
|
|
9198
9222
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
9199
9223
|
var className = utils.classNames('p-dropdown p-component p-inputwrapper', {
|
|
9200
9224
|
'p-disabled': props.disabled,
|
|
@@ -9787,16 +9811,17 @@ this.primereact.dialog = (function (exports, React, PrimeReact, csstransition, h
|
|
|
9787
9811
|
|
|
9788
9812
|
var disableDocumentSettings = function disableDocumentSettings() {
|
|
9789
9813
|
unbindGlobalListeners();
|
|
9814
|
+
var isMaximized = props.maximizable && maximized;
|
|
9790
9815
|
|
|
9791
9816
|
if (props.modal) {
|
|
9792
9817
|
var hasBlockScroll = document.primeDialogParams && document.primeDialogParams.some(function (param) {
|
|
9793
9818
|
return param.hasBlockScroll;
|
|
9794
9819
|
});
|
|
9795
9820
|
|
|
9796
|
-
if (hasBlockScroll) {
|
|
9821
|
+
if (hasBlockScroll || isMaximized) {
|
|
9797
9822
|
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
9798
9823
|
}
|
|
9799
|
-
} else if (props.blockScroll ||
|
|
9824
|
+
} else if (props.blockScroll || isMaximized) {
|
|
9800
9825
|
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
9801
9826
|
}
|
|
9802
9827
|
};
|
|
@@ -10078,51 +10103,51 @@ this.primereact.dialog = (function (exports, React, PrimeReact, csstransition, h
|
|
|
10078
10103
|
Dialog.displayName = 'Dialog';
|
|
10079
10104
|
Dialog.defaultProps = {
|
|
10080
10105
|
__TYPE: 'Dialog',
|
|
10081
|
-
id: null,
|
|
10082
|
-
header: null,
|
|
10083
|
-
footer: null,
|
|
10084
|
-
visible: false,
|
|
10085
|
-
position: 'center',
|
|
10086
|
-
draggable: true,
|
|
10087
|
-
resizable: true,
|
|
10088
|
-
modal: true,
|
|
10089
|
-
onHide: null,
|
|
10090
|
-
onShow: null,
|
|
10091
|
-
headerStyle: null,
|
|
10092
|
-
headerClassName: null,
|
|
10093
|
-
contentStyle: null,
|
|
10094
|
-
contentClassName: null,
|
|
10095
|
-
closeOnEscape: true,
|
|
10096
|
-
dismissableMask: false,
|
|
10097
|
-
rtl: false,
|
|
10098
|
-
closable: true,
|
|
10099
|
-
style: null,
|
|
10100
|
-
className: null,
|
|
10101
|
-
maskStyle: null,
|
|
10102
|
-
maskClassName: null,
|
|
10103
|
-
showHeader: true,
|
|
10104
10106
|
appendTo: null,
|
|
10107
|
+
ariaCloseIconLabel: null,
|
|
10105
10108
|
baseZIndex: 0,
|
|
10106
|
-
maximizable: false,
|
|
10107
10109
|
blockScroll: false,
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
+
breakpoints: null,
|
|
10111
|
+
className: null,
|
|
10112
|
+
closable: true,
|
|
10113
|
+
closeOnEscape: true,
|
|
10114
|
+
contentClassName: null,
|
|
10115
|
+
contentStyle: null,
|
|
10116
|
+
dismissableMask: false,
|
|
10117
|
+
draggable: true,
|
|
10110
10118
|
focusOnShow: true,
|
|
10111
|
-
|
|
10112
|
-
|
|
10119
|
+
footer: null,
|
|
10120
|
+
header: null,
|
|
10121
|
+
headerClassName: null,
|
|
10122
|
+
headerStyle: null,
|
|
10123
|
+
icons: null,
|
|
10124
|
+
id: null,
|
|
10113
10125
|
keepInViewport: true,
|
|
10126
|
+
maskClassName: null,
|
|
10127
|
+
maskStyle: null,
|
|
10128
|
+
maximizable: false,
|
|
10114
10129
|
maximized: false,
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10130
|
+
minX: 0,
|
|
10131
|
+
minY: 0,
|
|
10132
|
+
modal: true,
|
|
10133
|
+
onClick: null,
|
|
10119
10134
|
onDrag: null,
|
|
10120
10135
|
onDragEnd: null,
|
|
10121
|
-
|
|
10136
|
+
onDragStart: null,
|
|
10137
|
+
onHide: null,
|
|
10138
|
+
onMaskClick: null,
|
|
10139
|
+
onMaximize: null,
|
|
10122
10140
|
onResize: null,
|
|
10123
10141
|
onResizeEnd: null,
|
|
10124
|
-
|
|
10125
|
-
|
|
10142
|
+
onResizeStart: null,
|
|
10143
|
+
onShow: null,
|
|
10144
|
+
position: 'center',
|
|
10145
|
+
resizable: true,
|
|
10146
|
+
rtl: false,
|
|
10147
|
+
showHeader: true,
|
|
10148
|
+
style: null,
|
|
10149
|
+
transitionOptions: null,
|
|
10150
|
+
visible: false
|
|
10126
10151
|
};
|
|
10127
10152
|
|
|
10128
10153
|
exports.Dialog = Dialog;
|
|
@@ -10577,7 +10602,7 @@ this.primereact.paginator = (function (exports, React, hooks, utils, api, ripple
|
|
|
10577
10602
|
appendTo: props.appendTo,
|
|
10578
10603
|
disabled: props.disabled,
|
|
10579
10604
|
placeholder: ariaLabel,
|
|
10580
|
-
|
|
10605
|
+
"aria-label": ariaLabel
|
|
10581
10606
|
}) : null;
|
|
10582
10607
|
|
|
10583
10608
|
if (props.template) {
|
|
@@ -10704,7 +10729,7 @@ this.primereact.paginator = (function (exports, React, hooks, utils, api, ripple
|
|
|
10704
10729
|
});
|
|
10705
10730
|
hooks.useUpdateEffect(function () {
|
|
10706
10731
|
if (!rppChanged.current) {
|
|
10707
|
-
changePage(
|
|
10732
|
+
changePage(props.first, props.rows);
|
|
10708
10733
|
}
|
|
10709
10734
|
|
|
10710
10735
|
rppChanged.current = false;
|