primevue 3.7.0 → 3.8.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.
Files changed (229) hide show
  1. package/autocomplete/AutoComplete.d.ts +1 -0
  2. package/autocomplete/AutoComplete.vue +8 -1
  3. package/autocomplete/autocomplete.cjs.js +8 -1
  4. package/autocomplete/autocomplete.cjs.min.js +1 -1
  5. package/autocomplete/autocomplete.esm.js +8 -1
  6. package/autocomplete/autocomplete.esm.min.js +1 -1
  7. package/autocomplete/autocomplete.js +8 -1
  8. package/autocomplete/autocomplete.min.js +1 -1
  9. package/blockui/BlockUI.vue +1 -1
  10. package/blockui/blockui.cjs.js +1 -1
  11. package/blockui/blockui.cjs.min.js +1 -1
  12. package/blockui/blockui.esm.js +1 -1
  13. package/blockui/blockui.esm.min.js +1 -1
  14. package/blockui/blockui.js +1 -1
  15. package/blockui/blockui.min.js +1 -1
  16. package/breadcrumb/Breadcrumb.vue +4 -0
  17. package/breadcrumb/breadcrumb.cjs.js +1 -1
  18. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  19. package/breadcrumb/breadcrumb.esm.js +1 -1
  20. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  21. package/breadcrumb/breadcrumb.js +1 -1
  22. package/breadcrumb/breadcrumb.min.js +1 -1
  23. package/confirmationservice/ConfirmationService.d.ts +3 -2
  24. package/core/core.js +7574 -0
  25. package/core/core.min.js +47 -0
  26. package/datatable/BodyCell.vue +36 -17
  27. package/datatable/ColumnFilter.vue +3 -3
  28. package/datatable/DataTable.d.ts +1 -1
  29. package/datatable/DataTable.vue +109 -69
  30. package/datatable/FooterCell.vue +2 -2
  31. package/datatable/HeaderCell.vue +2 -2
  32. package/datatable/TableBody.vue +10 -5
  33. package/datatable/TableFooter.vue +2 -1
  34. package/datatable/TableHeader.vue +3 -2
  35. package/datatable/datatable.cjs.js +192 -122
  36. package/datatable/datatable.cjs.min.js +1 -1
  37. package/datatable/datatable.esm.js +192 -122
  38. package/datatable/datatable.esm.min.js +1 -1
  39. package/datatable/datatable.js +192 -122
  40. package/datatable/datatable.min.js +1 -1
  41. package/dock/Dock.d.ts +1 -0
  42. package/dock/Dock.vue +1 -1
  43. package/dock/DockSub.vue +13 -8
  44. package/dock/dock.cjs.js +24 -10
  45. package/dock/dock.cjs.min.js +1 -1
  46. package/dock/dock.esm.js +20 -10
  47. package/dock/dock.esm.min.js +1 -1
  48. package/dock/dock.js +25 -12
  49. package/dock/dock.min.js +1 -1
  50. package/dropdown/Dropdown.vue +9 -8
  51. package/dropdown/dropdown.cjs.js +13 -11
  52. package/dropdown/dropdown.cjs.min.js +1 -1
  53. package/dropdown/dropdown.esm.js +13 -11
  54. package/dropdown/dropdown.esm.min.js +1 -1
  55. package/dropdown/dropdown.js +13 -11
  56. package/dropdown/dropdown.min.js +1 -1
  57. package/galleria/Galleria.vue +1 -0
  58. package/galleria/GalleriaContent.vue +10 -1
  59. package/galleria/galleria.cjs.js +11 -2
  60. package/galleria/galleria.cjs.min.js +1 -1
  61. package/galleria/galleria.esm.js +11 -2
  62. package/galleria/galleria.esm.min.js +1 -1
  63. package/galleria/galleria.js +11 -2
  64. package/galleria/galleria.min.js +1 -1
  65. package/inplace/Inplace.d.ts +1 -0
  66. package/inplace/Inplace.vue +12 -1
  67. package/inplace/inplace.cjs.js +13 -2
  68. package/inplace/inplace.cjs.min.js +1 -1
  69. package/inplace/inplace.esm.js +13 -2
  70. package/inplace/inplace.esm.min.js +1 -1
  71. package/inplace/inplace.js +13 -2
  72. package/inplace/inplace.min.js +1 -1
  73. package/inputnumber/InputNumber.d.ts +2 -0
  74. package/inputnumber/InputNumber.vue +84 -35
  75. package/inputnumber/inputnumber.cjs.js +84 -35
  76. package/inputnumber/inputnumber.cjs.min.js +1 -1
  77. package/inputnumber/inputnumber.esm.js +84 -35
  78. package/inputnumber/inputnumber.esm.min.js +1 -1
  79. package/inputnumber/inputnumber.js +84 -35
  80. package/inputnumber/inputnumber.min.js +1 -1
  81. package/inputswitch/InputSwitch.vue +6 -3
  82. package/inputswitch/inputswitch.cjs.js +6 -3
  83. package/inputswitch/inputswitch.cjs.min.js +1 -1
  84. package/inputswitch/inputswitch.esm.js +6 -3
  85. package/inputswitch/inputswitch.esm.min.js +1 -1
  86. package/inputswitch/inputswitch.js +6 -3
  87. package/inputswitch/inputswitch.min.js +1 -1
  88. package/knob/Knob.vue +1 -1
  89. package/knob/knob.cjs.js +1 -1
  90. package/knob/knob.esm.js +1 -1
  91. package/knob/knob.js +1 -1
  92. package/overlaypanel/OverlayPanel.d.ts +2 -0
  93. package/overlaypanel/OverlayPanel.vue +4 -1
  94. package/overlaypanel/overlaypanel.cjs.js +7 -3
  95. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  96. package/overlaypanel/overlaypanel.esm.js +7 -3
  97. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  98. package/overlaypanel/overlaypanel.js +7 -3
  99. package/overlaypanel/overlaypanel.min.js +1 -1
  100. package/package.json +1 -1
  101. package/paginator/CurrentPageReport.vue +5 -1
  102. package/paginator/JumpToPageInput.vue +1 -1
  103. package/paginator/Paginator.vue +6 -3
  104. package/paginator/paginator.cjs.js +12 -4
  105. package/paginator/paginator.cjs.min.js +1 -1
  106. package/paginator/paginator.esm.js +12 -4
  107. package/paginator/paginator.esm.min.js +1 -1
  108. package/paginator/paginator.js +12 -4
  109. package/paginator/paginator.min.js +1 -1
  110. package/panelmenu/PanelMenuSub.vue +4 -4
  111. package/panelmenu/panelmenu.cjs.js +4 -4
  112. package/panelmenu/panelmenu.cjs.min.js +1 -1
  113. package/panelmenu/panelmenu.esm.js +4 -4
  114. package/panelmenu/panelmenu.esm.min.js +1 -1
  115. package/panelmenu/panelmenu.js +4 -4
  116. package/panelmenu/panelmenu.min.js +1 -1
  117. package/resources/primevue.css +3 -0
  118. package/resources/primevue.min.css +1 -1
  119. package/resources/themes/arya-blue/theme.css +6 -1
  120. package/resources/themes/arya-green/theme.css +6 -1
  121. package/resources/themes/arya-orange/theme.css +6 -1
  122. package/resources/themes/arya-purple/theme.css +6 -1
  123. package/resources/themes/bootstrap4-dark-blue/theme.css +6 -1
  124. package/resources/themes/bootstrap4-dark-purple/theme.css +6 -1
  125. package/resources/themes/bootstrap4-light-blue/theme.css +6 -1
  126. package/resources/themes/bootstrap4-light-purple/theme.css +6 -1
  127. package/resources/themes/fluent-light/theme.css +6 -1
  128. package/resources/themes/luna-amber/theme.css +6 -1
  129. package/resources/themes/luna-blue/theme.css +6 -1
  130. package/resources/themes/luna-green/theme.css +6 -1
  131. package/resources/themes/luna-pink/theme.css +6 -1
  132. package/resources/themes/md-dark-deeppurple/theme.css +6 -1
  133. package/resources/themes/md-dark-indigo/theme.css +6 -1
  134. package/resources/themes/md-light-deeppurple/theme.css +6 -1
  135. package/resources/themes/md-light-indigo/theme.css +6 -1
  136. package/resources/themes/mdc-dark-deeppurple/theme.css +6 -1
  137. package/resources/themes/mdc-dark-indigo/theme.css +6 -1
  138. package/resources/themes/mdc-light-deeppurple/theme.css +6 -1
  139. package/resources/themes/mdc-light-indigo/theme.css +6 -1
  140. package/resources/themes/nova/theme.css +6 -1
  141. package/resources/themes/nova-accent/theme.css +6 -1
  142. package/resources/themes/nova-alt/theme.css +6 -1
  143. package/resources/themes/nova-vue/theme.css +6 -1
  144. package/resources/themes/rhea/theme.css +6 -1
  145. package/resources/themes/saga-blue/theme.css +6 -1
  146. package/resources/themes/saga-green/theme.css +6 -1
  147. package/resources/themes/saga-orange/theme.css +6 -1
  148. package/resources/themes/saga-purple/theme.css +6 -1
  149. package/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
  150. package/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
  151. package/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
  152. package/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
  153. package/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
  154. package/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
  155. package/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
  156. package/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
  157. package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
  158. package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
  159. package/resources/themes/tailwind-light/theme.css +5440 -0
  160. package/resources/themes/vela-blue/theme.css +6 -1
  161. package/resources/themes/vela-green/theme.css +6 -1
  162. package/resources/themes/vela-orange/theme.css +6 -1
  163. package/resources/themes/vela-purple/theme.css +6 -1
  164. package/speeddial/SpeedDial.vue +2 -1
  165. package/speeddial/speeddial.cjs.js +2 -1
  166. package/speeddial/speeddial.cjs.min.js +1 -1
  167. package/speeddial/speeddial.esm.js +2 -1
  168. package/speeddial/speeddial.esm.min.js +1 -1
  169. package/speeddial/speeddial.js +2 -1
  170. package/speeddial/speeddial.min.js +1 -1
  171. package/splitter/Splitter.vue +5 -3
  172. package/splitter/splitter.cjs.js +4 -2
  173. package/splitter/splitter.cjs.min.js +1 -1
  174. package/splitter/splitter.esm.js +5 -3
  175. package/splitter/splitter.esm.min.js +1 -1
  176. package/splitter/splitter.js +4 -2
  177. package/splitter/splitter.min.js +1 -1
  178. package/tabmenu/TabMenu.vue +4 -0
  179. package/tabmenu/tabmenu.cjs.js +1 -1
  180. package/tabmenu/tabmenu.cjs.min.js +1 -1
  181. package/tabmenu/tabmenu.esm.js +1 -1
  182. package/tabmenu/tabmenu.esm.min.js +1 -1
  183. package/tabmenu/tabmenu.js +1 -1
  184. package/tabmenu/tabmenu.min.js +1 -1
  185. package/terminal/terminal.js +1 -1
  186. package/terminal/terminal.min.js +1 -1
  187. package/tieredmenu/TieredMenuSub.vue +1 -1
  188. package/tieredmenu/tieredmenu.cjs.js +1 -1
  189. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  190. package/tieredmenu/tieredmenu.esm.js +1 -1
  191. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  192. package/tieredmenu/tieredmenu.js +1 -1
  193. package/tieredmenu/tieredmenu.min.js +1 -1
  194. package/toastservice/ToastService.d.ts +3 -2
  195. package/tooltip/tooltip.cjs.js +10 -3
  196. package/tooltip/tooltip.cjs.min.js +1 -1
  197. package/tooltip/tooltip.esm.js +10 -3
  198. package/tooltip/tooltip.esm.min.js +1 -1
  199. package/tooltip/tooltip.js +10 -3
  200. package/tooltip/tooltip.min.js +1 -1
  201. package/treetable/BodyCell.vue +2 -3
  202. package/treetable/FooterCell.vue +2 -2
  203. package/treetable/HeaderCell.vue +2 -2
  204. package/treetable/TreeTable.vue +2 -2
  205. package/treetable/TreeTableRow.vue +2 -2
  206. package/treetable/treetable.cjs.js +6 -6
  207. package/treetable/treetable.cjs.min.js +1 -1
  208. package/treetable/treetable.esm.js +7 -7
  209. package/treetable/treetable.esm.min.js +1 -1
  210. package/treetable/treetable.js +6 -6
  211. package/treetable/treetable.min.js +1 -1
  212. package/utils/Utils.d.ts +80 -0
  213. package/utils/package.json +3 -2
  214. package/utils/utils.cjs.js +126 -108
  215. package/utils/utils.cjs.min.js +1 -1
  216. package/utils/utils.esm.js +126 -108
  217. package/utils/utils.esm.min.js +1 -1
  218. package/utils/utils.js +126 -108
  219. package/utils/utils.min.js +1 -1
  220. package/vetur-attributes.json +12 -0
  221. package/vetur-tags.json +4 -1
  222. package/virtualscroller/VirtualScroller.vue +1 -1
  223. package/virtualscroller/virtualscroller.cjs.js +1 -1
  224. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  225. package/virtualscroller/virtualscroller.esm.js +1 -1
  226. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  227. package/virtualscroller/virtualscroller.js +1 -1
  228. package/virtualscroller/virtualscroller.min.js +1 -1
  229. package/web-types.json +88 -5
@@ -1,32 +1,32 @@
1
- class DomHandler {
1
+ var DomHandler = {
2
2
 
3
- static innerWidth(el) {
3
+ innerWidth(el) {
4
4
  let width = el.offsetWidth;
5
5
  let style = getComputedStyle(el);
6
6
 
7
7
  width += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
8
8
  return width;
9
- }
9
+ },
10
10
 
11
- static width(el) {
11
+ width(el) {
12
12
  let width = el.offsetWidth;
13
13
  let style = getComputedStyle(el);
14
14
 
15
15
  width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
16
16
  return width;
17
- }
17
+ },
18
18
 
19
- static getWindowScrollTop() {
19
+ getWindowScrollTop() {
20
20
  let doc = document.documentElement;
21
21
  return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
22
- }
22
+ },
23
23
 
24
- static getWindowScrollLeft() {
24
+ getWindowScrollLeft() {
25
25
  let doc = document.documentElement;
26
26
  return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
27
- }
27
+ },
28
28
 
29
- static getOuterWidth(el, margin) {
29
+ getOuterWidth(el, margin) {
30
30
  if (el) {
31
31
  let width = el.offsetWidth;
32
32
 
@@ -40,9 +40,9 @@ class DomHandler {
40
40
  else {
41
41
  return 0;
42
42
  }
43
- }
43
+ },
44
44
 
45
- static getOuterHeight(el, margin) {
45
+ getOuterHeight(el, margin) {
46
46
  if (el) {
47
47
  let height = el.offsetHeight;
48
48
 
@@ -56,9 +56,9 @@ class DomHandler {
56
56
  else {
57
57
  return 0;
58
58
  }
59
- }
59
+ },
60
60
 
61
- static getClientHeight(el, margin) {
61
+ getClientHeight(el, margin) {
62
62
  if (el) {
63
63
  let height = el.clientHeight;
64
64
 
@@ -71,9 +71,9 @@ class DomHandler {
71
71
  } else {
72
72
  return 0;
73
73
  }
74
- }
74
+ },
75
75
 
76
- static getViewport() {
76
+ getViewport() {
77
77
  let win = window,
78
78
  d = document,
79
79
  e = d.documentElement,
@@ -82,18 +82,18 @@ class DomHandler {
82
82
  h = win.innerHeight || e.clientHeight || g.clientHeight;
83
83
 
84
84
  return {width: w, height: h};
85
- }
85
+ },
86
86
 
87
- static getOffset(el) {
87
+ getOffset(el) {
88
88
  var rect = el.getBoundingClientRect();
89
89
 
90
90
  return {
91
91
  top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
92
92
  left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0),
93
93
  };
94
- }
94
+ },
95
95
 
96
- static index(element) {
96
+ index(element) {
97
97
  let children = element.parentNode.childNodes;
98
98
  let num = 0;
99
99
  for (var i = 0; i < children.length; i++) {
@@ -101,9 +101,9 @@ class DomHandler {
101
101
  if (children[i].nodeType === 1) num++;
102
102
  }
103
103
  return -1;
104
- }
104
+ },
105
105
 
106
- static addMultipleClasses(element, className) {
106
+ addMultipleClasses(element, className) {
107
107
  if (element.classList) {
108
108
  let styles = className.split(' ');
109
109
  for (let i = 0; i < styles.length; i++) {
@@ -117,23 +117,23 @@ class DomHandler {
117
117
  element.className += ' ' + styles[i];
118
118
  }
119
119
  }
120
- }
120
+ },
121
121
 
122
- static addClass(element, className) {
122
+ addClass(element, className) {
123
123
  if (element.classList)
124
124
  element.classList.add(className);
125
125
  else
126
126
  element.className += ' ' + className;
127
- }
127
+ },
128
128
 
129
- static removeClass(element, className) {
129
+ removeClass(element, className) {
130
130
  if (element.classList)
131
131
  element.classList.remove(className);
132
132
  else
133
133
  element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
134
- }
134
+ },
135
135
 
136
- static hasClass(element, className) {
136
+ hasClass(element, className) {
137
137
  if (element) {
138
138
  if (element.classList)
139
139
  return element.classList.contains(className);
@@ -142,35 +142,35 @@ class DomHandler {
142
142
  }
143
143
 
144
144
  return false;
145
- }
145
+ },
146
146
 
147
- static find(element, selector) {
147
+ find(element, selector) {
148
148
  return element.querySelectorAll(selector);
149
- }
149
+ },
150
150
 
151
- static findSingle(element, selector) {
151
+ findSingle(element, selector) {
152
152
  return element.querySelector(selector);
153
- }
153
+ },
154
154
 
155
- static getHeight(el) {
155
+ getHeight(el) {
156
156
  let height = el.offsetHeight;
157
157
  let style = getComputedStyle(el);
158
158
 
159
159
  height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
160
160
 
161
161
  return height;
162
- }
162
+ },
163
163
 
164
- static getWidth(el) {
164
+ getWidth(el) {
165
165
  let width = el.offsetWidth;
166
166
  let style = getComputedStyle(el);
167
167
 
168
168
  width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
169
169
 
170
170
  return width;
171
- }
171
+ },
172
172
 
173
- static absolutePosition(element, target) {
173
+ absolutePosition(element, target) {
174
174
  let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
175
175
  let elementOuterHeight = elementDimensions.height;
176
176
  let elementOuterWidth = elementDimensions.width;
@@ -202,9 +202,9 @@ class DomHandler {
202
202
 
203
203
  element.style.top = top + 'px';
204
204
  element.style.left = left + 'px';
205
- }
205
+ },
206
206
 
207
- static relativePosition(element, target) {
207
+ relativePosition(element, target) {
208
208
  let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
209
209
  const targetHeight = target.offsetHeight;
210
210
  const targetOffset = target.getBoundingClientRect();
@@ -238,13 +238,13 @@ class DomHandler {
238
238
 
239
239
  element.style.top = top + 'px';
240
240
  element.style.left = left + 'px';
241
- }
241
+ },
242
242
 
243
- static getParents(element, parents = []) {
243
+ getParents(element, parents = []) {
244
244
  return element['parentNode'] === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));
245
- }
245
+ },
246
246
 
247
- static getScrollableParents(element) {
247
+ getScrollableParents(element) {
248
248
  let scrollableParents = [];
249
249
 
250
250
  if (element) {
@@ -274,9 +274,9 @@ class DomHandler {
274
274
  }
275
275
 
276
276
  return scrollableParents;
277
- }
277
+ },
278
278
 
279
- static getHiddenElementOuterHeight(element) {
279
+ getHiddenElementOuterHeight(element) {
280
280
  element.style.visibility = 'hidden';
281
281
  element.style.display = 'block';
282
282
  let elementHeight = element.offsetHeight;
@@ -284,9 +284,9 @@ class DomHandler {
284
284
  element.style.visibility = 'visible';
285
285
 
286
286
  return elementHeight;
287
- }
287
+ },
288
288
 
289
- static getHiddenElementOuterWidth(element) {
289
+ getHiddenElementOuterWidth(element) {
290
290
  element.style.visibility = 'hidden';
291
291
  element.style.display = 'block';
292
292
  let elementWidth = element.offsetWidth;
@@ -294,9 +294,9 @@ class DomHandler {
294
294
  element.style.visibility = 'visible';
295
295
 
296
296
  return elementWidth;
297
- }
297
+ },
298
298
 
299
- static getHiddenElementDimensions(element) {
299
+ getHiddenElementDimensions(element) {
300
300
  var dimensions = {};
301
301
  element.style.visibility = 'hidden';
302
302
  element.style.display = 'block';
@@ -306,9 +306,9 @@ class DomHandler {
306
306
  element.style.visibility = 'visible';
307
307
 
308
308
  return dimensions;
309
- }
309
+ },
310
310
 
311
- static fadeIn(element, duration) {
311
+ fadeIn(element, duration) {
312
312
  element.style.opacity = 0;
313
313
 
314
314
  var last = +new Date();
@@ -324,9 +324,9 @@ class DomHandler {
324
324
  };
325
325
 
326
326
  tick();
327
- }
327
+ },
328
328
 
329
- static fadeOut(element, ms) {
329
+ fadeOut(element, ms) {
330
330
  var opacity = 1,
331
331
  interval = 50,
332
332
  duration = ms,
@@ -342,22 +342,22 @@ class DomHandler {
342
342
 
343
343
  element.style.opacity = opacity;
344
344
  }, interval);
345
- }
345
+ },
346
346
 
347
- static getUserAgent() {
347
+ getUserAgent() {
348
348
  return navigator.userAgent;
349
- }
349
+ },
350
350
 
351
- static appendChild(element, target) {
351
+ appendChild(element, target) {
352
352
  if(this.isElement(target))
353
353
  target.appendChild(element);
354
354
  else if(target.el && target.elElement)
355
355
  target.elElement.appendChild(element);
356
356
  else
357
357
  throw new Error('Cannot append ' + target + ' to ' + element);
358
- }
358
+ },
359
359
 
360
- static scrollInView(container, item) {
360
+ scrollInView(container, item) {
361
361
  let borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');
362
362
  let borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
363
363
  let paddingTopValue = getComputedStyle(container).getPropertyValue('paddingTop');
@@ -375,9 +375,9 @@ class DomHandler {
375
375
  else if ((offset + itemHeight) > elementHeight) {
376
376
  container.scrollTop = scroll + offset - elementHeight + itemHeight;
377
377
  }
378
- }
378
+ },
379
379
 
380
- static clearSelection() {
380
+ clearSelection() {
381
381
  if(window.getSelection) {
382
382
  if(window.getSelection().empty) {
383
383
  window.getSelection().empty();
@@ -392,9 +392,9 @@ class DomHandler {
392
392
  //ignore IE bug
393
393
  }
394
394
  }
395
- }
395
+ },
396
396
 
397
- static calculateScrollbarWidth() {
397
+ calculateScrollbarWidth() {
398
398
  if(this.calculatedScrollbarWidth != null)
399
399
  return this.calculatedScrollbarWidth;
400
400
 
@@ -408,9 +408,9 @@ class DomHandler {
408
408
  this.calculatedScrollbarWidth = scrollbarWidth;
409
409
 
410
410
  return scrollbarWidth;
411
- }
411
+ },
412
412
 
413
- static getBrowser() {
413
+ getBrowser() {
414
414
  if(!this.browser) {
415
415
  let matched = this.resolveUserAgent();
416
416
  this.browser = {};
@@ -428,9 +428,9 @@ class DomHandler {
428
428
  }
429
429
 
430
430
  return this.browser;
431
- }
431
+ },
432
432
 
433
- static resolveUserAgent() {
433
+ resolveUserAgent() {
434
434
  let ua = navigator.userAgent.toLowerCase();
435
435
  let match = /(chrome)[ ]([\w.]+)/.exec(ua) ||
436
436
  /(webkit)[ ]([\w.]+)/.exec(ua) ||
@@ -443,18 +443,18 @@ class DomHandler {
443
443
  browser: match[1] || "",
444
444
  version: match[2] || "0"
445
445
  };
446
- }
446
+ },
447
447
 
448
- static isVisible(element) {
448
+ isVisible(element) {
449
449
  return element.offsetParent != null;
450
- }
450
+ },
451
451
 
452
- static invokeElementMethod(element, methodName, args) {
452
+ invokeElementMethod(element, methodName, args) {
453
453
  (element)[methodName].apply(element, args);
454
- }
454
+ },
455
455
 
456
- static getFocusableElements(element) {
457
- let focusableElements = DomHandler.find(element, `button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
456
+ getFocusableElements(element) {
457
+ let focusableElements = this.find(element, `button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
458
458
  [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
459
459
  input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
460
460
  textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
@@ -468,9 +468,14 @@ class DomHandler {
468
468
  }
469
469
 
470
470
  return visibleFocusableElements;
471
- }
471
+ },
472
+
473
+ getFirstFocusableElement(element) {
474
+ const focusableElements = this.getFocusableElements(element);
475
+ return focusableElements.length > 0 ? focusableElements[0] : null;
476
+ },
472
477
 
473
- static isClickable(element) {
478
+ isClickable(element) {
474
479
  const targetNode = element.nodeName;
475
480
  const parentNode = element.parentElement && element.parentElement.nodeName;
476
481
 
@@ -479,9 +484,9 @@ class DomHandler {
479
484
  this.hasClass(element, 'p-button') || this.hasClass(element.parentElement, 'p-button') ||
480
485
  this.hasClass(element.parentElement, 'p-checkbox') || this.hasClass(element.parentElement, 'p-radiobutton')
481
486
  );
482
- }
487
+ },
483
488
 
484
- static applyStyle(element, style) {
489
+ applyStyle(element, style) {
485
490
  if (typeof style === 'string') {
486
491
  element.style.cssText = this.style;
487
492
  }
@@ -490,20 +495,20 @@ class DomHandler {
490
495
  element.style[prop] = style[prop];
491
496
  }
492
497
  }
493
- }
498
+ },
494
499
 
495
- static isIOS() {
500
+ isIOS() {
496
501
  return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream'];
497
- }
502
+ },
498
503
 
499
- static isAndroid() {
504
+ isAndroid() {
500
505
  return /(android)/i.test(navigator.userAgent);
501
- }
506
+ },
502
507
 
503
- static isTouchDevice() {
508
+ isTouchDevice() {
504
509
  return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0));
505
510
  }
506
- }
511
+ };
507
512
 
508
513
  class ConnectedOverlayScrollHandler {
509
514
 
@@ -535,16 +540,16 @@ class ConnectedOverlayScrollHandler {
535
540
  }
536
541
  }
537
542
 
538
- class ObjectUtils {
543
+ var ObjectUtils = {
539
544
 
540
- static equals(obj1, obj2, field) {
545
+ equals(obj1, obj2, field) {
541
546
  if (field)
542
547
  return (this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field));
543
548
  else
544
549
  return this.deepEquals(obj1, obj2);
545
- }
550
+ },
546
551
 
547
- static deepEquals(a, b) {
552
+ deepEquals(a, b) {
548
553
  if (a === b) return true;
549
554
 
550
555
  if (a && b && typeof a == 'object' && typeof b == 'object') {
@@ -592,9 +597,9 @@ class ObjectUtils {
592
597
  }
593
598
 
594
599
  return a !== a && b !== b;
595
- }
600
+ },
596
601
 
597
- static resolveFieldData(data, field) {
602
+ resolveFieldData(data, field) {
598
603
  if (data && Object.keys(data).length && field) {
599
604
  if (this.isFunction(field)) {
600
605
  return field(data);
@@ -617,13 +622,13 @@ class ObjectUtils {
617
622
  else {
618
623
  return null;
619
624
  }
620
- }
625
+ },
621
626
 
622
- static isFunction(obj) {
627
+ isFunction(obj) {
623
628
  return !!(obj && obj.constructor && obj.call && obj.apply);
624
- }
629
+ },
625
630
 
626
- static filter(value, fields, filterValue) {
631
+ filter(value, fields, filterValue) {
627
632
  var filteredItems = [];
628
633
 
629
634
  if (value) {
@@ -638,9 +643,9 @@ class ObjectUtils {
638
643
  }
639
644
 
640
645
  return filteredItems;
641
- }
646
+ },
642
647
 
643
- static reorderArray(value, from, to) {
648
+ reorderArray(value, from, to) {
644
649
  let target;
645
650
  if (value && (from !== to)) {
646
651
  if (to >= value.length) {
@@ -651,9 +656,9 @@ class ObjectUtils {
651
656
  }
652
657
  value.splice(to, 0, value.splice(from, 1)[0]);
653
658
  }
654
- }
659
+ },
655
660
 
656
- static findIndexInList(value, list) {
661
+ findIndexInList(value, list) {
657
662
  let index = -1;
658
663
 
659
664
  if (list) {
@@ -666,9 +671,9 @@ class ObjectUtils {
666
671
  }
667
672
 
668
673
  return index;
669
- }
674
+ },
670
675
 
671
- static contains(value, list) {
676
+ contains(value, list) {
672
677
  if (value != null && list && list.length) {
673
678
  for (let val of list) {
674
679
  if (this.equals(value, val))
@@ -677,9 +682,9 @@ class ObjectUtils {
677
682
  }
678
683
 
679
684
  return false;
680
- }
685
+ },
681
686
 
682
- static insertIntoOrderedArray(item, index, arr, sourceArr) {
687
+ insertIntoOrderedArray(item, index, arr, sourceArr) {
683
688
  if (arr.length > 0) {
684
689
  let injected = false;
685
690
  for (let i = 0; i < arr.length; i++) {
@@ -698,9 +703,9 @@ class ObjectUtils {
698
703
  else {
699
704
  arr.push(item);
700
705
  }
701
- }
706
+ },
702
707
 
703
- static removeAccents(str) {
708
+ removeAccents(str) {
704
709
  if (str && str.search(/[\xC0-\xFF]/g) > -1) {
705
710
  str = str
706
711
  .replace(/[\xC0-\xC5]/g, "A")
@@ -727,8 +732,21 @@ class ObjectUtils {
727
732
  }
728
733
 
729
734
  return str;
730
- }
731
- }
735
+ },
736
+
737
+ getVNodeProp(vnode, prop) {
738
+ let props = vnode.props;
739
+ if (props) {
740
+ let kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
741
+ let propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
742
+
743
+ return ((vnode.type.props[prop].type === Boolean && props[propName] === '') ? true : props[propName]);
744
+ }
745
+
746
+ return null;
747
+ }
748
+
749
+ };
732
750
 
733
751
  function handler() {
734
752
  let zIndexes = [];
@@ -1 +1 @@
1
- class e{static innerWidth(e){let t=e.offsetWidth,i=getComputedStyle(e);return t+=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),t}static width(e){let t=e.offsetWidth,i=getComputedStyle(e);return t-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),t}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static getOuterWidth(e,t){if(e){let i=e.offsetWidth;if(t){let t=getComputedStyle(e);i+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return i}return 0}static getOuterHeight(e,t){if(e){let i=e.offsetHeight;if(t){let t=getComputedStyle(e);i+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return i}return 0}static getClientHeight(e,t){if(e){let i=e.clientHeight;if(t){let t=getComputedStyle(e);i+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return i}return 0}static getViewport(){let e=window,t=document,i=t.documentElement,l=t.getElementsByTagName("body")[0];return{width:e.innerWidth||i.clientWidth||l.clientWidth,height:e.innerHeight||i.clientHeight||l.clientHeight}}static getOffset(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static index(e){let t=e.parentNode.childNodes,i=0;for(var l=0;l<t.length;l++){if(t[l]===e)return i;1===t[l].nodeType&&i++}return-1}static addMultipleClasses(e,t){if(e.classList){let i=t.split(" ");for(let t=0;t<i.length;t++)e.classList.add(i[t])}else{let i=t.split(" ");for(let t=0;t<i.length;t++)e.className+=" "+i[t]}}static addClass(e,t){e.classList?e.classList.add(t):e.className+=" "+t}static removeClass(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}static hasClass(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}static find(e,t){return e.querySelectorAll(t)}static findSingle(e,t){return e.querySelector(t)}static getHeight(e){let t=e.offsetHeight,i=getComputedStyle(e);return t-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),t}static getWidth(e){let t=e.offsetWidth,i=getComputedStyle(e);return t-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),t}static absolutePosition(e,t){let i,l,n=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=n.height,r=n.width,o=t.offsetHeight,a=t.offsetWidth,d=t.getBoundingClientRect(),c=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),h=this.getViewport();d.top+o+s>h.height?(i=d.top+c-s,e.style.transformOrigin="bottom",i<0&&(i=c)):(i=o+d.top+c,e.style.transformOrigin="top"),l=d.left+r>h.width?Math.max(0,d.left+p+a-r):d.left+p,e.style.top=i+"px",e.style.left=l+"px"}static relativePosition(e,t){let i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const l=t.offsetHeight,n=t.getBoundingClientRect(),s=this.getViewport();let r,o;n.top+l+i.height>s.height?(r=-1*i.height,e.style.transformOrigin="bottom",n.top+r<0&&(r=-1*n.top)):(r=l,e.style.transformOrigin="top"),o=i.width>s.width?-1*n.left:n.left+i.width>s.width?-1*(n.left+i.width-s.width):0,e.style.top=r+"px",e.style.left=o+"px"}static getParents(e,t=[]){return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}static getScrollableParents(e){let t=[];if(e){let i=this.getParents(e);const l=/(auto|scroll)/,n=e=>{let t=window.getComputedStyle(e,null);return l.test(t.getPropertyValue("overflow"))||l.test(t.getPropertyValue("overflowX"))||l.test(t.getPropertyValue("overflowY"))};for(let e of i){let i=1===e.nodeType&&e.dataset.scrollselectors;if(i){let l=i.split(",");for(let i of l){let l=this.findSingle(e,i);l&&n(l)&&t.push(l)}}9!==e.nodeType&&n(e)&&t.push(e)}}return t}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}static getHiddenElementDimensions(e){var t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}static fadeIn(e,t){e.style.opacity=0;var i=+new Date,l=0,n=function(){l=+e.style.opacity+((new Date).getTime()-i)/t,e.style.opacity=l,i=+new Date,+l<1&&(window.requestAnimationFrame&&requestAnimationFrame(n)||setTimeout(n,16))};n()}static fadeOut(e,t){var i=1,l=50/t;let n=setInterval((()=>{(i-=l)<=0&&(i=0,clearInterval(n)),e.style.opacity=i}),50)}static getUserAgent(){return navigator.userAgent}static appendChild(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.elElement)throw new Error("Cannot append "+t+" to "+e);t.elElement.appendChild(e)}}static scrollInView(e,t){let i=getComputedStyle(e).getPropertyValue("borderTopWidth"),l=i?parseFloat(i):0,n=getComputedStyle(e).getPropertyValue("paddingTop"),s=n?parseFloat(n):0,r=e.getBoundingClientRect(),o=t.getBoundingClientRect().top+document.body.scrollTop-(r.top+document.body.scrollTop)-l-s,a=e.scrollTop,d=e.clientHeight,c=this.getOuterHeight(t);o<0?e.scrollTop=a+o:o+c>d&&(e.scrollTop=a+o-d+c)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}static calculateScrollbarWidth(){if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}static isVisible(e){return null!=e.offsetParent}static invokeElementMethod(e,t,i){e[t].apply(e,i)}static getFocusableElements(t){let i=e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'),l=[];for(let e of i)"none"!=getComputedStyle(e).display&&"hidden"!=getComputedStyle(e).visibility&&l.push(e);return l}static isClickable(e){const t=e.nodeName,i=e.parentElement&&e.parentElement.nodeName;return"INPUT"==t||"BUTTON"==t||"A"==t||"INPUT"==i||"BUTTON"==i||"A"==i||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")}static applyStyle(e,t){if("string"==typeof t)e.style.cssText=this.style;else for(let i in this.style)e.style[i]=t[i]}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}}class t{constructor(e,t=(()=>{})){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=e.getScrollableParents(this.element);for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}class i{static equals(e,t,i){return i?this.resolveFieldData(e,i)===this.resolveFieldData(t,i):this.deepEquals(e,t)}static deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var i,l,n,s=Array.isArray(e),r=Array.isArray(t);if(s&&r){if((l=e.length)!=t.length)return!1;for(i=l;0!=i--;)if(!this.deepEquals(e[i],t[i]))return!1;return!0}if(s!=r)return!1;var o=e instanceof Date,a=t instanceof Date;if(o!=a)return!1;if(o&&a)return e.getTime()==t.getTime();var d=e instanceof RegExp,c=t instanceof RegExp;if(d!=c)return!1;if(d&&c)return e.toString()==t.toString();var p=Object.keys(e);if((l=p.length)!==Object.keys(t).length)return!1;for(i=l;0!=i--;)if(!Object.prototype.hasOwnProperty.call(t,p[i]))return!1;for(i=l;0!=i--;)if(n=p[i],!this.deepEquals(e[n],t[n]))return!1;return!0}return e!=e&&t!=t}static resolveFieldData(e,t){if(e&&Object.keys(e).length&&t){if(this.isFunction(t))return t(e);if(-1===t.indexOf("."))return e[t];{let n=t.split("."),s=e;for(var i=0,l=n.length;i<l;++i){if(null==s)return null;s=s[n[i]]}return s}}return null}static isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)}static filter(e,t,i){var l=[];if(e)for(let n of e)for(let e of t)if(String(this.resolveFieldData(n,e)).toLowerCase().indexOf(i.toLowerCase())>-1){l.push(n);break}return l}static reorderArray(e,t,i){let l;if(e&&t!==i){if(i>=e.length)for(l=i-e.length;1+l--;)e.push(void 0);e.splice(i,0,e.splice(t,1)[0])}}static findIndexInList(e,t){let i=-1;if(t)for(let l=0;l<t.length;l++)if(t[l]===e){i=l;break}return i}static contains(e,t){if(null!=e&&t&&t.length)for(let i of t)if(this.equals(e,i))return!0;return!1}static insertIntoOrderedArray(e,t,i,l){if(i.length>0){let n=!1;for(let s=0;s<i.length;s++){if(this.findIndexInList(i[s],l)>t){i.splice(s,0,e),n=!0;break}}n||i.push(e)}else i.push(e)}static removeAccents(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}}var l=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,i,l)=>{i&&(i.style.zIndex=String(((t,i)=>{let l=e.length>0?e[e.length-1]:{key:t,value:i},n=l.value+(l.key===t?0:i)+1;return e.push({key:t,value:n}),n})(t,l)))},clear:i=>{var l;i&&(l=t(i),e=e.filter((e=>e.value!==l)),i.style.zIndex="")},getCurrent:()=>e.length>0?e[e.length-1].value:0}}(),n=0;function s(e="pv_id_"){return`${e}${++n}`}function r(){const e=new Map;return{on(t,i){let l=e.get(t);l?l.push(i):l=[i],e.set(t,l)},off(t,i){let l=e.get(t);l&&l.splice(l.indexOf(i)>>>0,1)},emit(t,i){let l=e.get(t);l&&l.slice().map((e=>{e(i)}))}}}export{t as ConnectedOverlayScrollHandler,e as DomHandler,r as EventBus,i as ObjectUtils,s as UniqueComponentId,l as ZIndexUtils};
1
+ var e={innerWidth(e){let t=e.offsetWidth,l=getComputedStyle(e);return t+=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),t},width(e){let t=e.offsetWidth,l=getComputedStyle(e);return t-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),t},getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth(e,t){if(e){let l=e.offsetWidth;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return l}return 0},getOuterHeight(e,t){if(e){let l=e.offsetHeight;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return l}return 0},getClientHeight(e,t){if(e){let l=e.clientHeight;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return l}return 0},getViewport(){let e=window,t=document,l=t.documentElement,n=t.getElementsByTagName("body")[0];return{width:e.innerWidth||l.clientWidth||n.clientWidth,height:e.innerHeight||l.clientHeight||n.clientHeight}},getOffset(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}},index(e){let t=e.parentNode.childNodes,l=0;for(var n=0;n<t.length;n++){if(t[n]===e)return l;1===t[n].nodeType&&l++}return-1},addMultipleClasses(e,t){if(e.classList){let l=t.split(" ");for(let t=0;t<l.length;t++)e.classList.add(l[t])}else{let l=t.split(" ");for(let t=0;t<l.length;t++)e.className+=" "+l[t]}},addClass(e,t){e.classList?e.classList.add(t):e.className+=" "+t},removeClass(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},hasClass:(e,t)=>!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)),find:(e,t)=>e.querySelectorAll(t),findSingle:(e,t)=>e.querySelector(t),getHeight(e){let t=e.offsetHeight,l=getComputedStyle(e);return t-=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),t},getWidth(e){let t=e.offsetWidth,l=getComputedStyle(e);return t-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)+parseFloat(l.borderLeftWidth)+parseFloat(l.borderRightWidth),t},absolutePosition(e,t){let l,n,i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=i.height,o=i.width,s=t.offsetHeight,a=t.offsetWidth,d=t.getBoundingClientRect(),p=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),h=this.getViewport();d.top+s+r>h.height?(l=d.top+p-r,e.style.transformOrigin="bottom",l<0&&(l=p)):(l=s+d.top+p,e.style.transformOrigin="top"),n=d.left+o>h.width?Math.max(0,d.left+c+a-o):d.left+c,e.style.top=l+"px",e.style.left=n+"px"},relativePosition(e,t){let l=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const n=t.offsetHeight,i=t.getBoundingClientRect(),r=this.getViewport();let o,s;i.top+n+l.height>r.height?(o=-1*l.height,e.style.transformOrigin="bottom",i.top+o<0&&(o=-1*i.top)):(o=n,e.style.transformOrigin="top"),s=l.width>r.width?-1*i.left:i.left+l.width>r.width?-1*(i.left+l.width-r.width):0,e.style.top=o+"px",e.style.left=s+"px"},getParents(e,t=[]){return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},getScrollableParents(e){let t=[];if(e){let l=this.getParents(e);const n=/(auto|scroll)/,i=e=>{let t=window.getComputedStyle(e,null);return n.test(t.getPropertyValue("overflow"))||n.test(t.getPropertyValue("overflowX"))||n.test(t.getPropertyValue("overflowY"))};for(let e of l){let l=1===e.nodeType&&e.dataset.scrollselectors;if(l){let n=l.split(",");for(let l of n){let n=this.findSingle(e,l);n&&i(n)&&t.push(n)}}9!==e.nodeType&&i(e)&&t.push(e)}}return t},getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t},getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t},getHiddenElementDimensions(e){var t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t},fadeIn(e,t){e.style.opacity=0;var l=+new Date,n=0,i=function(){n=+e.style.opacity+((new Date).getTime()-l)/t,e.style.opacity=n,l=+new Date,+n<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))};i()},fadeOut(e,t){var l=1,n=50/t;let i=setInterval((()=>{(l-=n)<=0&&(l=0,clearInterval(i)),e.style.opacity=l}),50)},getUserAgent:()=>navigator.userAgent,appendChild(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.elElement)throw new Error("Cannot append "+t+" to "+e);t.elElement.appendChild(e)}},scrollInView(e,t){let l=getComputedStyle(e).getPropertyValue("borderTopWidth"),n=l?parseFloat(l):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),r=i?parseFloat(i):0,o=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-n-r,a=e.scrollTop,d=e.clientHeight,p=this.getOuterHeight(t);s<0?e.scrollTop=a+s:s+p>d&&(e.scrollTop=a+s-d+p)},clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},calculateScrollbarWidth(){if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},isVisible:e=>null!=e.offsetParent,invokeElementMethod(e,t,l){e[t].apply(e,l)},getFocusableElements(e){let t=this.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'),l=[];for(let e of t)"none"!=getComputedStyle(e).display&&"hidden"!=getComputedStyle(e).visibility&&l.push(e);return l},getFirstFocusableElement(e){const t=this.getFocusableElements(e);return t.length>0?t[0]:null},isClickable(e){const t=e.nodeName,l=e.parentElement&&e.parentElement.nodeName;return"INPUT"==t||"BUTTON"==t||"A"==t||"INPUT"==l||"BUTTON"==l||"A"==l||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")},applyStyle(e,t){if("string"==typeof t)e.style.cssText=this.style;else for(let l in this.style)e.style[l]=t[l]},isIOS:()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,isAndroid:()=>/(android)/i.test(navigator.userAgent),isTouchDevice:()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0};class t{constructor(e,t=(()=>{})){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=e.getScrollableParents(this.element);for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}var l={equals(e,t,l){return l?this.resolveFieldData(e,l)===this.resolveFieldData(t,l):this.deepEquals(e,t)},deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var l,n,i,r=Array.isArray(e),o=Array.isArray(t);if(r&&o){if((n=e.length)!=t.length)return!1;for(l=n;0!=l--;)if(!this.deepEquals(e[l],t[l]))return!1;return!0}if(r!=o)return!1;var s=e instanceof Date,a=t instanceof Date;if(s!=a)return!1;if(s&&a)return e.getTime()==t.getTime();var d=e instanceof RegExp,p=t instanceof RegExp;if(d!=p)return!1;if(d&&p)return e.toString()==t.toString();var c=Object.keys(e);if((n=c.length)!==Object.keys(t).length)return!1;for(l=n;0!=l--;)if(!Object.prototype.hasOwnProperty.call(t,c[l]))return!1;for(l=n;0!=l--;)if(i=c[l],!this.deepEquals(e[i],t[i]))return!1;return!0}return e!=e&&t!=t},resolveFieldData(e,t){if(e&&Object.keys(e).length&&t){if(this.isFunction(t))return t(e);if(-1===t.indexOf("."))return e[t];{let i=t.split("."),r=e;for(var l=0,n=i.length;l<n;++l){if(null==r)return null;r=r[i[l]]}return r}}return null},isFunction:e=>!!(e&&e.constructor&&e.call&&e.apply),filter(e,t,l){var n=[];if(e)for(let i of e)for(let e of t)if(String(this.resolveFieldData(i,e)).toLowerCase().indexOf(l.toLowerCase())>-1){n.push(i);break}return n},reorderArray(e,t,l){let n;if(e&&t!==l){if(l>=e.length)for(n=l-e.length;1+n--;)e.push(void 0);e.splice(l,0,e.splice(t,1)[0])}},findIndexInList(e,t){let l=-1;if(t)for(let n=0;n<t.length;n++)if(t[n]===e){l=n;break}return l},contains(e,t){if(null!=e&&t&&t.length)for(let l of t)if(this.equals(e,l))return!0;return!1},insertIntoOrderedArray(e,t,l,n){if(l.length>0){let i=!1;for(let r=0;r<l.length;r++){if(this.findIndexInList(l[r],n)>t){l.splice(r,0,e),i=!0;break}}i||l.push(e)}else l.push(e)},removeAccents:e=>(e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e),getVNodeProp(e,t){let l=e.props;if(l){let n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=Object.prototype.hasOwnProperty.call(l,n)?n:t;return e.type.props[t].type===Boolean&&""===l[i]||l[i]}return null}};var n=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,l,n)=>{l&&(l.style.zIndex=String(((t,l)=>{let n=e.length>0?e[e.length-1]:{key:t,value:l},i=n.value+(n.key===t?0:l)+1;return e.push({key:t,value:i}),i})(t,n)))},clear:l=>{var n;l&&(n=t(l),e=e.filter((e=>e.value!==n)),l.style.zIndex="")},getCurrent:()=>e.length>0?e[e.length-1].value:0}}(),i=0;function r(e="pv_id_"){return`${e}${++i}`}function o(){const e=new Map;return{on(t,l){let n=e.get(t);n?n.push(l):n=[l],e.set(t,n)},off(t,l){let n=e.get(t);n&&n.splice(n.indexOf(l)>>>0,1)},emit(t,l){let n=e.get(t);n&&n.slice().map((e=>{e(l)}))}}}export{t as ConnectedOverlayScrollHandler,e as DomHandler,o as EventBus,l as ObjectUtils,r as UniqueComponentId,n as ZIndexUtils};