primereact 8.6.1 → 8.7.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/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 +21 -3
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +5 -3
- package/calendar/calendar.esm.js +21 -3
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +21 -3
- 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 +105 -68
- 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 +148 -130
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +11 -7
- package/datatable/datatable.esm.js +148 -130
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +149 -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 +21 -16
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +10 -7
- package/image/image.esm.js +21 -16
- package/image/image.esm.min.js +1 -1
- package/image/image.js +21 -16
- 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 -2
- 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 +739 -621
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +739 -621
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +739 -621
- 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 +510 -505
- package/resources/primereact.min.css +1 -1
- package/ripple/ripple.cjs.js +24 -5
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +24 -5
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +24 -5
- 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 +82 -69
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +1 -1
- package/splitter/splitter.esm.js +82 -69
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +83 -70
- package/splitter/splitter.min.js +1 -1
- package/tabview/tabview.d.ts +5 -4
- package/timeline/timeline.d.ts +1 -1
- 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.css +1 -1
- 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/index.d.ts +0 -105
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
|
-
|
|
2322
|
+
var _iterator = _createForOfIteratorHelper(value),
|
|
2323
|
+
_step;
|
|
2324
|
+
|
|
2325
|
+
try {
|
|
2326
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2327
|
+
var item = _step.value;
|
|
2325
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,16 +3569,38 @@ 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
|
+
isTouching.current = true;
|
|
3585
|
+
var offset = utils.DomHandler.getOffset(targetRef.current);
|
|
3586
|
+
var offsetX = event.targetTouches[0].pageX - offset.left + document.body.scrollTop - utils.DomHandler.getWidth(inkRef.current) / 2;
|
|
3587
|
+
var offsetY = event.targetTouches[0].pageY - offset.top + document.body.scrollLeft - utils.DomHandler.getHeight(inkRef.current) / 2;
|
|
3588
|
+
activateRipple(offsetX, offsetY);
|
|
3589
|
+
};
|
|
3590
|
+
|
|
3572
3591
|
var onMouseDown = function onMouseDown(event) {
|
|
3592
|
+
if (utils.DomHandler.isTouchDevice()) {
|
|
3593
|
+
// already started ripple with onTouchStart
|
|
3594
|
+
return;
|
|
3595
|
+
}
|
|
3596
|
+
|
|
3597
|
+
var offset = utils.DomHandler.getOffset(targetRef.current);
|
|
3598
|
+
var offsetX = event.pageX - offset.left + document.body.scrollTop - utils.DomHandler.getWidth(inkRef.current) / 2;
|
|
3599
|
+
var offsetY = event.pageY - offset.top + document.body.scrollLeft - utils.DomHandler.getHeight(inkRef.current) / 2;
|
|
3600
|
+
activateRipple(offsetX, offsetY);
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3603
|
+
var activateRipple = function activateRipple(offsetX, offsetY) {
|
|
3573
3604
|
if (!inkRef.current || getComputedStyle(inkRef.current, null).display === 'none') {
|
|
3574
3605
|
return;
|
|
3575
3606
|
}
|
|
@@ -3582,11 +3613,8 @@ this.primereact.ripple = (function (exports, React, PrimeReact, hooks, utils) {
|
|
|
3582
3613
|
inkRef.current.style.width = d + 'px';
|
|
3583
3614
|
}
|
|
3584
3615
|
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
var y = event.pageY - offset.top + document.body.scrollLeft - utils.DomHandler.getHeight(inkRef.current) / 2;
|
|
3588
|
-
inkRef.current.style.top = y + 'px';
|
|
3589
|
-
inkRef.current.style.left = x + 'px';
|
|
3616
|
+
inkRef.current.style.top = offsetY + 'px';
|
|
3617
|
+
inkRef.current.style.left = offsetX + 'px';
|
|
3590
3618
|
utils.DomHandler.addClass(inkRef.current, 'p-ink-active');
|
|
3591
3619
|
};
|
|
3592
3620
|
|
|
@@ -4646,6 +4674,8 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, hooks, portal,
|
|
|
4646
4674
|
updateTargetEvents: updateTargetEvents,
|
|
4647
4675
|
loadTargetEvents: loadTargetEvents,
|
|
4648
4676
|
unloadTargetEvents: unloadTargetEvents,
|
|
4677
|
+
show: show,
|
|
4678
|
+
hide: hide,
|
|
4649
4679
|
getElement: function getElement() {
|
|
4650
4680
|
return elementRef.current;
|
|
4651
4681
|
},
|
|
@@ -5915,7 +5945,6 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
|
|
|
5915
5945
|
var checked = isChecked();
|
|
5916
5946
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
5917
5947
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, Checkbox.defaultProps);
|
|
5918
|
-
var dataProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.DATA_PROPS);
|
|
5919
5948
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
5920
5949
|
var className = utils.classNames('p-checkbox p-component', {
|
|
5921
5950
|
'p-checkbox-checked': checked,
|
|
@@ -5957,7 +5986,7 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
|
|
|
5957
5986
|
disabled: props.disabled,
|
|
5958
5987
|
readOnly: props.readOnly,
|
|
5959
5988
|
required: props.required
|
|
5960
|
-
}, ariaProps
|
|
5989
|
+
}, ariaProps))), /*#__PURE__*/React__namespace.createElement("div", {
|
|
5961
5990
|
className: boxClass
|
|
5962
5991
|
}, icon)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
5963
5992
|
target: elementRef,
|
|
@@ -6105,7 +6134,7 @@ this.primereact.button = (function (exports, React, ripple, tooltip, utils) {
|
|
|
6105
6134
|
var disabled = props.disabled || props.loading;
|
|
6106
6135
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, Button.defaultProps);
|
|
6107
6136
|
var className = utils.classNames('p-button p-component', props.className, _defineProperty({
|
|
6108
|
-
'p-button-icon-only': (props.icon || props.loading && props.loadingIcon) && !props.label,
|
|
6137
|
+
'p-button-icon-only': (props.icon || props.loading && props.loadingIcon) && !props.label && !props.children,
|
|
6109
6138
|
'p-button-vertical': (props.iconPos === 'top' || props.iconPos === 'bottom') && props.label,
|
|
6110
6139
|
'p-disabled': disabled,
|
|
6111
6140
|
'p-button-loading': props.loading,
|
|
@@ -6842,7 +6871,7 @@ this.primereact.inputnumber = (function (exports, React, hooks, inputtext, rippl
|
|
|
6842
6871
|
_decimal.current.lastIndex = 0;
|
|
6843
6872
|
|
|
6844
6873
|
if (_decimalLength) {
|
|
6845
|
-
|
|
6874
|
+
inputRef.current.setSelectionRange(selectionStart + 1, selectionStart + 1);
|
|
6846
6875
|
} else {
|
|
6847
6876
|
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
6848
6877
|
}
|
|
@@ -7168,7 +7197,15 @@ this.primereact.inputnumber = (function (exports, React, hooks, inputtext, rippl
|
|
|
7168
7197
|
};
|
|
7169
7198
|
|
|
7170
7199
|
var validateValue = function validateValue(value) {
|
|
7171
|
-
if (value === '-'
|
|
7200
|
+
if (value === '-') {
|
|
7201
|
+
return null;
|
|
7202
|
+
}
|
|
7203
|
+
|
|
7204
|
+
return validateValueByLimit(value);
|
|
7205
|
+
};
|
|
7206
|
+
|
|
7207
|
+
var validateValueByLimit = function validateValueByLimit(value) {
|
|
7208
|
+
if (utils.ObjectUtils.isEmpty(value)) {
|
|
7172
7209
|
return null;
|
|
7173
7210
|
}
|
|
7174
7211
|
|
|
@@ -7334,8 +7371,8 @@ this.primereact.inputnumber = (function (exports, React, hooks, inputtext, rippl
|
|
|
7334
7371
|
};
|
|
7335
7372
|
|
|
7336
7373
|
var changeValue = function changeValue() {
|
|
7374
|
+
updateInputValue(validateValueByLimit(props.value));
|
|
7337
7375
|
var newValue = validateValue(props.value);
|
|
7338
|
-
updateInputValue(newValue);
|
|
7339
7376
|
|
|
7340
7377
|
if (props.value !== null && props.value !== newValue) {
|
|
7341
7378
|
updateModel(null, newValue);
|
|
@@ -7934,9 +7971,7 @@ this.primereact.progressbar = (function (exports, React, utils) {
|
|
|
7934
7971
|
var createLabel = function createLabel() {
|
|
7935
7972
|
if (props.showValue && props.value != null) {
|
|
7936
7973
|
var label = props.displayValueTemplate ? props.displayValueTemplate(props.value) : props.value + props.unit;
|
|
7937
|
-
return
|
|
7938
|
-
className: "p-progressbar-label"
|
|
7939
|
-
}, label);
|
|
7974
|
+
return label;
|
|
7940
7975
|
}
|
|
7941
7976
|
|
|
7942
7977
|
return null;
|
|
@@ -7959,10 +7994,12 @@ this.primereact.progressbar = (function (exports, React, utils) {
|
|
|
7959
7994
|
className: "p-progressbar-value p-progressbar-value-animate",
|
|
7960
7995
|
style: {
|
|
7961
7996
|
width: props.value + '%',
|
|
7962
|
-
display: '
|
|
7997
|
+
display: 'flex',
|
|
7963
7998
|
backgroundColor: props.color
|
|
7964
7999
|
}
|
|
7965
|
-
}
|
|
8000
|
+
}, props.value != null && props.value !== 0 && props.showValue && /*#__PURE__*/React__namespace.createElement("div", {
|
|
8001
|
+
className: "p-progressbar-label"
|
|
8002
|
+
}, label)));
|
|
7966
8003
|
};
|
|
7967
8004
|
|
|
7968
8005
|
var createIndeterminate = function createIndeterminate() {
|
|
@@ -9104,14 +9141,14 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
|
|
|
9104
9141
|
|
|
9105
9142
|
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
9106
9143
|
className: "p-hidden-accessible p-dropdown-hidden-select"
|
|
9107
|
-
}, /*#__PURE__*/React__namespace.createElement("select",
|
|
9144
|
+
}, /*#__PURE__*/React__namespace.createElement("select", {
|
|
9108
9145
|
ref: inputRef,
|
|
9109
9146
|
required: props.required,
|
|
9110
9147
|
defaultValue: option.value,
|
|
9111
9148
|
name: props.name,
|
|
9112
9149
|
tabIndex: -1,
|
|
9113
9150
|
"aria-hidden": "true"
|
|
9114
|
-
},
|
|
9151
|
+
}, /*#__PURE__*/React__namespace.createElement("option", {
|
|
9115
9152
|
value: option.value
|
|
9116
9153
|
}, option.label)));
|
|
9117
9154
|
};
|
|
@@ -9194,7 +9231,6 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
|
|
|
9194
9231
|
var selectedOption = getSelectedOption();
|
|
9195
9232
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
9196
9233
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, Dropdown.defaultProps);
|
|
9197
|
-
var dataProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.DATA_PROPS);
|
|
9198
9234
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
9199
9235
|
var className = utils.classNames('p-dropdown p-component p-inputwrapper', {
|
|
9200
9236
|
'p-disabled': props.disabled,
|
|
@@ -9787,16 +9823,17 @@ this.primereact.dialog = (function (exports, React, PrimeReact, csstransition, h
|
|
|
9787
9823
|
|
|
9788
9824
|
var disableDocumentSettings = function disableDocumentSettings() {
|
|
9789
9825
|
unbindGlobalListeners();
|
|
9826
|
+
var isMaximized = props.maximizable && maximized;
|
|
9790
9827
|
|
|
9791
9828
|
if (props.modal) {
|
|
9792
9829
|
var hasBlockScroll = document.primeDialogParams && document.primeDialogParams.some(function (param) {
|
|
9793
9830
|
return param.hasBlockScroll;
|
|
9794
9831
|
});
|
|
9795
9832
|
|
|
9796
|
-
if (hasBlockScroll) {
|
|
9833
|
+
if (hasBlockScroll || isMaximized) {
|
|
9797
9834
|
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
9798
9835
|
}
|
|
9799
|
-
} else if (props.blockScroll ||
|
|
9836
|
+
} else if (props.blockScroll || isMaximized) {
|
|
9800
9837
|
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
9801
9838
|
}
|
|
9802
9839
|
};
|
|
@@ -10078,51 +10115,51 @@ this.primereact.dialog = (function (exports, React, PrimeReact, csstransition, h
|
|
|
10078
10115
|
Dialog.displayName = 'Dialog';
|
|
10079
10116
|
Dialog.defaultProps = {
|
|
10080
10117
|
__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
10118
|
appendTo: null,
|
|
10119
|
+
ariaCloseIconLabel: null,
|
|
10105
10120
|
baseZIndex: 0,
|
|
10106
|
-
maximizable: false,
|
|
10107
10121
|
blockScroll: false,
|
|
10108
|
-
|
|
10109
|
-
|
|
10122
|
+
breakpoints: null,
|
|
10123
|
+
className: null,
|
|
10124
|
+
closable: true,
|
|
10125
|
+
closeOnEscape: true,
|
|
10126
|
+
contentClassName: null,
|
|
10127
|
+
contentStyle: null,
|
|
10128
|
+
dismissableMask: false,
|
|
10129
|
+
draggable: true,
|
|
10110
10130
|
focusOnShow: true,
|
|
10111
|
-
|
|
10112
|
-
|
|
10131
|
+
footer: null,
|
|
10132
|
+
header: null,
|
|
10133
|
+
headerClassName: null,
|
|
10134
|
+
headerStyle: null,
|
|
10135
|
+
icons: null,
|
|
10136
|
+
id: null,
|
|
10113
10137
|
keepInViewport: true,
|
|
10138
|
+
maskClassName: null,
|
|
10139
|
+
maskStyle: null,
|
|
10140
|
+
maximizable: false,
|
|
10114
10141
|
maximized: false,
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10142
|
+
minX: 0,
|
|
10143
|
+
minY: 0,
|
|
10144
|
+
modal: true,
|
|
10145
|
+
onClick: null,
|
|
10119
10146
|
onDrag: null,
|
|
10120
10147
|
onDragEnd: null,
|
|
10121
|
-
|
|
10148
|
+
onDragStart: null,
|
|
10149
|
+
onHide: null,
|
|
10150
|
+
onMaskClick: null,
|
|
10151
|
+
onMaximize: null,
|
|
10122
10152
|
onResize: null,
|
|
10123
10153
|
onResizeEnd: null,
|
|
10124
|
-
|
|
10125
|
-
|
|
10154
|
+
onResizeStart: null,
|
|
10155
|
+
onShow: null,
|
|
10156
|
+
position: 'center',
|
|
10157
|
+
resizable: true,
|
|
10158
|
+
rtl: false,
|
|
10159
|
+
showHeader: true,
|
|
10160
|
+
style: null,
|
|
10161
|
+
transitionOptions: null,
|
|
10162
|
+
visible: false
|
|
10126
10163
|
};
|
|
10127
10164
|
|
|
10128
10165
|
exports.Dialog = Dialog;
|
|
@@ -10577,7 +10614,7 @@ this.primereact.paginator = (function (exports, React, hooks, utils, api, ripple
|
|
|
10577
10614
|
appendTo: props.appendTo,
|
|
10578
10615
|
disabled: props.disabled,
|
|
10579
10616
|
placeholder: ariaLabel,
|
|
10580
|
-
|
|
10617
|
+
"aria-label": ariaLabel
|
|
10581
10618
|
}) : null;
|
|
10582
10619
|
|
|
10583
10620
|
if (props.template) {
|
|
@@ -10704,7 +10741,7 @@ this.primereact.paginator = (function (exports, React, hooks, utils, api, ripple
|
|
|
10704
10741
|
});
|
|
10705
10742
|
hooks.useUpdateEffect(function () {
|
|
10706
10743
|
if (!rppChanged.current) {
|
|
10707
|
-
changePage(
|
|
10744
|
+
changePage(props.first, props.rows);
|
|
10708
10745
|
}
|
|
10709
10746
|
|
|
10710
10747
|
rppChanged.current = false;
|