primevue 4.3.5 → 4.3.7

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 (298) hide show
  1. package/accordion/index.mjs.map +1 -1
  2. package/accordioncontent/AccordionContent.vue +2 -2
  3. package/accordioncontent/index.mjs +2 -2
  4. package/accordioncontent/index.mjs.map +1 -1
  5. package/accordionheader/AccordionHeader.vue +2 -2
  6. package/accordionheader/index.mjs +2 -2
  7. package/accordionheader/index.mjs.map +1 -1
  8. package/accordionpanel/index.mjs.map +1 -1
  9. package/accordionpanel/style/index.mjs.map +1 -1
  10. package/accordiontab/index.mjs.map +1 -1
  11. package/animateonscroll/index.mjs.map +1 -1
  12. package/autocomplete/AutoComplete.vue +3 -1
  13. package/autocomplete/index.mjs +2 -1
  14. package/autocomplete/index.mjs.map +1 -1
  15. package/autocomplete/style/index.mjs +6 -5
  16. package/autocomplete/style/index.mjs.map +1 -1
  17. package/avatar/index.mjs.map +1 -1
  18. package/avatar/style/index.mjs.map +1 -1
  19. package/avatargroup/index.mjs.map +1 -1
  20. package/badge/index.mjs.map +1 -1
  21. package/badge/style/index.mjs.map +1 -1
  22. package/badgedirective/index.mjs.map +1 -1
  23. package/blockui/index.mjs.map +1 -1
  24. package/breadcrumb/index.mjs.map +1 -1
  25. package/breadcrumb/style/index.mjs.map +1 -1
  26. package/button/Button.vue +1 -1
  27. package/button/index.d.ts +4 -0
  28. package/button/index.mjs +5 -4
  29. package/button/index.mjs.map +1 -1
  30. package/button/style/index.mjs.map +1 -1
  31. package/buttongroup/index.mjs.map +1 -1
  32. package/calendar/index.d.ts +2 -2
  33. package/calendar/index.mjs.map +1 -1
  34. package/card/index.mjs.map +1 -1
  35. package/carousel/index.mjs.map +1 -1
  36. package/carousel/style/index.mjs.map +1 -1
  37. package/cascadeselect/index.mjs.map +1 -1
  38. package/cascadeselect/style/index.mjs.map +1 -1
  39. package/chart/index.mjs.map +1 -1
  40. package/checkbox/index.mjs.map +1 -1
  41. package/checkbox/style/index.mjs.map +1 -1
  42. package/checkboxgroup/index.mjs.map +1 -1
  43. package/chip/Chip.vue +1 -1
  44. package/chip/index.mjs +1 -1
  45. package/chip/index.mjs.map +1 -1
  46. package/chips/index.mjs.map +1 -1
  47. package/colorpicker/ColorPicker.vue +1 -1
  48. package/colorpicker/index.mjs +1 -1
  49. package/colorpicker/index.mjs.map +1 -1
  50. package/colorpicker/style/index.mjs.map +1 -1
  51. package/column/index.mjs.map +1 -1
  52. package/columngroup/index.mjs.map +1 -1
  53. package/confirmationservice/index.mjs.map +1 -1
  54. package/confirmdialog/index.mjs.map +1 -1
  55. package/confirmpopup/index.mjs.map +1 -1
  56. package/contextmenu/index.mjs.map +1 -1
  57. package/contextmenu/style/index.mjs.map +1 -1
  58. package/datatable/BodyCell.vue +2 -2
  59. package/datatable/ColumnFilter.vue +2 -13
  60. package/datatable/DataTable.vue +1 -1
  61. package/datatable/TableHeader.vue +2 -0
  62. package/datatable/index.d.ts +3 -3
  63. package/datatable/index.mjs +22 -32
  64. package/datatable/index.mjs.map +1 -1
  65. package/datatable/style/index.mjs.map +1 -1
  66. package/dataview/index.mjs.map +1 -1
  67. package/dataview/style/index.mjs.map +1 -1
  68. package/datepicker/DatePicker.vue +14 -3
  69. package/datepicker/index.d.ts +2 -2
  70. package/datepicker/index.mjs +15 -6
  71. package/datepicker/index.mjs.map +1 -1
  72. package/datepicker/style/index.mjs.map +1 -1
  73. package/deferredcontent/index.mjs.map +1 -1
  74. package/dialog/Dialog.vue +1 -1
  75. package/dialog/index.mjs +1 -1
  76. package/dialog/index.mjs.map +1 -1
  77. package/dialog/style/index.mjs.map +1 -1
  78. package/dialogservice/index.mjs.map +1 -1
  79. package/divider/index.mjs.map +1 -1
  80. package/divider/style/index.mjs.map +1 -1
  81. package/dock/index.mjs.map +1 -1
  82. package/dock/style/index.mjs.map +1 -1
  83. package/drawer/index.mjs.map +1 -1
  84. package/drawer/style/index.mjs.map +1 -1
  85. package/dropdown/index.mjs.map +1 -1
  86. package/dynamicdialog/index.mjs.map +1 -1
  87. package/editor/index.mjs.map +1 -1
  88. package/editor/style/index.mjs.map +1 -1
  89. package/fieldset/index.mjs.map +1 -1
  90. package/fieldset/style/index.mjs.map +1 -1
  91. package/fileupload/FileUpload.vue +27 -25
  92. package/fileupload/index.d.ts +5 -0
  93. package/fileupload/index.mjs +4 -2
  94. package/fileupload/index.mjs.map +1 -1
  95. package/fileupload/style/index.d.ts +5 -1
  96. package/fileupload/style/index.mjs +2 -1
  97. package/fileupload/style/index.mjs.map +1 -1
  98. package/floatlabel/index.mjs.map +1 -1
  99. package/floatlabel/style/index.mjs.map +1 -1
  100. package/fluid/index.mjs.map +1 -1
  101. package/focustrap/index.mjs.map +1 -1
  102. package/galleria/index.mjs.map +1 -1
  103. package/galleria/style/index.mjs.map +1 -1
  104. package/iconfield/index.mjs.map +1 -1
  105. package/iftalabel/index.mjs.map +1 -1
  106. package/image/index.mjs.map +1 -1
  107. package/image/style/index.mjs.map +1 -1
  108. package/imagecompare/index.mjs.map +1 -1
  109. package/inlinemessage/index.mjs.map +1 -1
  110. package/inlinemessage/style/index.mjs.map +1 -1
  111. package/inplace/index.mjs.map +1 -1
  112. package/inplace/style/index.mjs.map +1 -1
  113. package/inputchips/index.mjs.map +1 -1
  114. package/inputchips/style/index.mjs.map +1 -1
  115. package/inputgroup/index.mjs.map +1 -1
  116. package/inputgroupaddon/index.mjs.map +1 -1
  117. package/inputicon/InputIcon.vue +1 -1
  118. package/inputicon/index.mjs +3 -1
  119. package/inputicon/index.mjs.map +1 -1
  120. package/inputmask/index.mjs.map +1 -1
  121. package/inputmask/style/index.mjs.map +1 -1
  122. package/inputnumber/InputNumber.vue +14 -2
  123. package/inputnumber/index.mjs +13 -2
  124. package/inputnumber/index.mjs.map +1 -1
  125. package/inputnumber/style/index.mjs.map +1 -1
  126. package/inputotp/index.mjs.map +1 -1
  127. package/inputswitch/index.mjs.map +1 -1
  128. package/inputtext/index.mjs.map +1 -1
  129. package/inputtext/style/index.mjs.map +1 -1
  130. package/keyfilter/index.mjs.map +1 -1
  131. package/knob/index.mjs +2 -2
  132. package/knob/index.mjs.map +1 -1
  133. package/knob/style/index.mjs.map +1 -1
  134. package/listbox/BaseListbox.vue +4 -0
  135. package/listbox/Listbox.vue +8 -6
  136. package/listbox/index.d.ts +5 -0
  137. package/listbox/index.mjs +12 -6
  138. package/listbox/index.mjs.map +1 -1
  139. package/listbox/style/index.mjs +1 -0
  140. package/listbox/style/index.mjs.map +1 -1
  141. package/megamenu/index.d.ts +0 -1
  142. package/megamenu/index.mjs.map +1 -1
  143. package/megamenu/style/index.mjs.map +1 -1
  144. package/menu/Menu.vue +2 -2
  145. package/menu/index.mjs +1 -1
  146. package/menu/index.mjs.map +1 -1
  147. package/menu/style/index.mjs.map +1 -1
  148. package/menubar/MenubarSub.vue +0 -1
  149. package/menubar/index.d.ts +0 -2
  150. package/menubar/index.mjs +1 -2
  151. package/menubar/index.mjs.map +1 -1
  152. package/menubar/style/index.mjs.map +1 -1
  153. package/message/index.mjs.map +1 -1
  154. package/message/style/index.mjs.map +1 -1
  155. package/metergroup/index.mjs.map +1 -1
  156. package/metergroup/style/index.mjs.map +1 -1
  157. package/multiselect/MultiSelect.vue +11 -6
  158. package/multiselect/index.mjs +10 -6
  159. package/multiselect/index.mjs.map +1 -1
  160. package/multiselect/style/index.mjs.map +1 -1
  161. package/orderlist/index.mjs.map +1 -1
  162. package/organizationchart/index.mjs.map +1 -1
  163. package/organizationchart/style/index.mjs.map +1 -1
  164. package/overlaybadge/index.mjs.map +1 -1
  165. package/overlaypanel/index.mjs.map +1 -1
  166. package/package.json +6 -6
  167. package/paginator/index.mjs.map +1 -1
  168. package/paginator/style/index.mjs.map +1 -1
  169. package/panel/index.mjs.map +1 -1
  170. package/panel/style/index.mjs.map +1 -1
  171. package/panelmenu/index.mjs.map +1 -1
  172. package/panelmenu/style/index.mjs.map +1 -1
  173. package/passthrough/index.mjs.map +1 -1
  174. package/password/Password.vue +0 -1
  175. package/password/index.mjs +1 -4
  176. package/password/index.mjs.map +1 -1
  177. package/password/style/index.mjs.map +1 -1
  178. package/picklist/PickList.vue +8 -11
  179. package/picklist/index.mjs +15 -7
  180. package/picklist/index.mjs.map +1 -1
  181. package/popover/index.mjs.map +1 -1
  182. package/portal/index.mjs.map +1 -1
  183. package/progressbar/index.mjs.map +1 -1
  184. package/progressbar/style/index.mjs.map +1 -1
  185. package/progressspinner/index.mjs.map +1 -1
  186. package/radiobutton/index.mjs.map +1 -1
  187. package/radiobutton/style/index.mjs.map +1 -1
  188. package/radiobuttongroup/index.mjs.map +1 -1
  189. package/rating/Rating.vue +2 -2
  190. package/rating/index.d.ts +10 -0
  191. package/rating/index.mjs +7 -1
  192. package/rating/index.mjs.map +1 -1
  193. package/rating/style/index.mjs.map +1 -1
  194. package/ripple/index.mjs.map +1 -1
  195. package/row/index.mjs.map +1 -1
  196. package/scrollpanel/ScrollPanel.vue +3 -1
  197. package/scrollpanel/index.mjs +2 -1
  198. package/scrollpanel/index.mjs.map +1 -1
  199. package/scrolltop/index.mjs.map +1 -1
  200. package/scrolltop/style/index.mjs.map +1 -1
  201. package/select/Select.vue +2 -2
  202. package/select/index.mjs +2 -2
  203. package/select/index.mjs.map +1 -1
  204. package/select/style/index.mjs.map +1 -1
  205. package/selectbutton/BaseSelectButton.vue +4 -0
  206. package/selectbutton/index.d.ts +25 -0
  207. package/selectbutton/index.mjs +4 -0
  208. package/selectbutton/index.mjs.map +1 -1
  209. package/selectbutton/style/index.mjs +5 -2
  210. package/selectbutton/style/index.mjs.map +1 -1
  211. package/sidebar/index.mjs.map +1 -1
  212. package/skeleton/index.mjs.map +1 -1
  213. package/skeleton/style/index.mjs.map +1 -1
  214. package/slider/index.d.ts +3 -3
  215. package/slider/index.mjs.map +1 -1
  216. package/slider/style/index.mjs.map +1 -1
  217. package/speeddial/index.mjs.map +1 -1
  218. package/speeddial/style/index.mjs.map +1 -1
  219. package/splitbutton/index.mjs.map +1 -1
  220. package/splitbutton/style/index.mjs.map +1 -1
  221. package/splitter/index.mjs.map +1 -1
  222. package/splitter/style/index.mjs.map +1 -1
  223. package/splitterpanel/index.mjs.map +1 -1
  224. package/splitterpanel/style/index.mjs.map +1 -1
  225. package/step/index.mjs.map +1 -1
  226. package/step/style/index.mjs.map +1 -1
  227. package/stepitem/index.mjs.map +1 -1
  228. package/stepitem/style/index.mjs.map +1 -1
  229. package/steplist/index.mjs.map +1 -1
  230. package/steppanel/index.mjs.map +1 -1
  231. package/steppanel/style/index.mjs.map +1 -1
  232. package/steppanels/index.mjs.map +1 -1
  233. package/stepper/index.mjs.map +1 -1
  234. package/stepper/style/index.mjs.map +1 -1
  235. package/steps/index.mjs.map +1 -1
  236. package/steps/style/index.mjs.map +1 -1
  237. package/styleclass/index.mjs.map +1 -1
  238. package/tab/index.mjs.map +1 -1
  239. package/tab/style/index.mjs.map +1 -1
  240. package/tablist/TabList.vue +1 -1
  241. package/tablist/index.mjs +1 -1
  242. package/tablist/index.mjs.map +1 -1
  243. package/tablist/style/index.mjs +1 -6
  244. package/tablist/style/index.mjs.map +1 -1
  245. package/tabmenu/index.mjs.map +1 -1
  246. package/tabmenu/style/index.mjs.map +1 -1
  247. package/tabpanel/index.mjs.map +1 -1
  248. package/tabpanel/style/index.mjs.map +1 -1
  249. package/tabpanels/index.mjs.map +1 -1
  250. package/tabs/index.mjs.map +1 -1
  251. package/tabs/style/index.mjs.map +1 -1
  252. package/tabview/index.mjs.map +1 -1
  253. package/tabview/style/index.mjs.map +1 -1
  254. package/tag/index.mjs.map +1 -1
  255. package/tag/style/index.mjs.map +1 -1
  256. package/terminal/index.mjs.map +1 -1
  257. package/textarea/Textarea.vue +11 -7
  258. package/textarea/index.mjs +10 -7
  259. package/textarea/index.mjs.map +1 -1
  260. package/textarea/style/index.mjs.map +1 -1
  261. package/tieredmenu/index.mjs.map +1 -1
  262. package/tieredmenu/style/index.mjs.map +1 -1
  263. package/timeline/index.mjs.map +1 -1
  264. package/timeline/style/index.mjs.map +1 -1
  265. package/toast/Toast.vue +3 -0
  266. package/toast/ToastMessage.vue +20 -8
  267. package/toast/index.d.ts +16 -4
  268. package/toast/index.mjs +26 -13
  269. package/toast/index.mjs.map +1 -1
  270. package/toast/style/index.mjs.map +1 -1
  271. package/toastservice/index.mjs.map +1 -1
  272. package/togglebutton/BaseToggleButton.vue +4 -0
  273. package/togglebutton/index.d.ts +5 -0
  274. package/togglebutton/index.mjs +4 -0
  275. package/togglebutton/index.mjs.map +1 -1
  276. package/togglebutton/style/index.mjs +1 -0
  277. package/togglebutton/style/index.mjs.map +1 -1
  278. package/toggleswitch/index.mjs.map +1 -1
  279. package/toggleswitch/style/index.mjs.map +1 -1
  280. package/toolbar/index.mjs.map +1 -1
  281. package/tooltip/index.mjs.map +1 -1
  282. package/tree/TreeNode.vue +2 -1
  283. package/tree/index.mjs +3 -2
  284. package/tree/index.mjs.map +1 -1
  285. package/tree/style/index.mjs.map +1 -1
  286. package/treeselect/index.mjs.map +1 -1
  287. package/treeselect/style/index.mjs.map +1 -1
  288. package/treetable/TreeTable.vue +1 -1
  289. package/treetable/index.mjs +1 -1
  290. package/treetable/index.mjs.map +1 -1
  291. package/treetable/style/index.mjs.map +1 -1
  292. package/umd/primevue.min.js +1 -12213
  293. package/useconfirm/index.mjs.map +1 -1
  294. package/usedialog/index.mjs.map +1 -1
  295. package/usetoast/index.mjs.map +1 -1
  296. package/virtualscroller/index.mjs.map +1 -1
  297. package/virtualscroller/style/index.mjs.map +1 -1
  298. package/web-types.json +1 -1
@@ -20,17 +20,6 @@
20
20
  <component :is="filterIconTemplate || (hasFilter() ? 'FilterFillIcon' : 'FilterIcon')" :class="slotProps.class" v-bind="getColumnPT('filterMenuIcon')" />
21
21
  </template>
22
22
  </Button>
23
- <Button
24
- v-if="showClearButton && display === 'row' && hasRowFilter()"
25
- :class="cx('pcColumnFilterClearButton')"
26
- :unstyled="unstyled"
27
- @click="clearFilter()"
28
- v-bind="{ ...getColumnPT('pcColumnFilterClearButton', ptmHeaderFilterClearParams), ...filterButtonProps.inline.clear }"
29
- >
30
- <template #icon="slotProps">
31
- <component :is="filterClearIconTemplate || 'FilterSlashIcon'" :class="slotProps.class" v-bind="getColumnPT('filterClearIcon')" />
32
- </template>
33
- </Button>
34
23
  <Portal>
35
24
  <transition name="p-connected-overlay" @enter="onOverlayEnter" @after-enter="onOverlayAfterEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave" v-bind="getColumnPT('transition')">
36
25
  <div
@@ -135,7 +124,7 @@
135
124
  type="button"
136
125
  :class="cx('pcFilterClearButton')"
137
126
  :label="clearButtonLabel"
138
- @click="clearFilter"
127
+ @click="clearFilter()"
139
128
  :unstyled="unstyled"
140
129
  v-bind="filterButtonProps.popover.clear"
141
130
  :pt="getColumnPT('pcFilterClearButton')"
@@ -213,7 +202,7 @@ export default {
213
202
  },
214
203
  showClearButton: {
215
204
  type: Boolean,
216
- default: false
205
+ default: true
217
206
  },
218
207
  showApplyButton: {
219
208
  type: Boolean,
@@ -1028,7 +1028,7 @@ export default {
1028
1028
  focusedItem && focusedItem !== firstSelectedRow && (focusedItem.tabIndex = '-1');
1029
1029
  } else {
1030
1030
  rows[0].tabIndex = '0';
1031
- focusedItem !== rows[0] && (rows[rowIndex].tabIndex = '-1');
1031
+ focusedItem !== rows[0] && rows[rowIndex] && (rows[rowIndex].tabIndex = '-1');
1032
1032
  }
1033
1033
  }
1034
1034
  },
@@ -71,6 +71,8 @@
71
71
  :filters="filters"
72
72
  :filterDisplay="filterDisplay"
73
73
  :filtersStore="filtersStore"
74
+ :filterInputProps="filterInputProps"
75
+ :filterButtonProps="filterButtonProps"
74
76
  @filter-change="$emit('filter-change', $event)"
75
77
  @filter-apply="$emit('filter-apply')"
76
78
  @operator-change="$emit('operator-change', $event)"
@@ -317,7 +317,7 @@ export interface DataTableRowClickEvent<T = any> {
317
317
 
318
318
  /**
319
319
  * Custom row double click event.
320
- * @see {@link DataTableEmitsOptions['row-dblclick']]}
320
+ * @see {@link DataTableEmitsOptions['row-dblclick']}
321
321
  * @extends DataTableRowClickEvent
322
322
  */
323
323
  export interface DataTableRowDoubleClickEvent extends DataTableRowClickEvent {}
@@ -884,7 +884,7 @@ export interface DataTableProps<T = any> {
884
884
  /**
885
885
  * An array of objects to display.
886
886
  */
887
- value?: T[] | undefined | null;
887
+ value?: readonly T[] | undefined | null;
888
888
  /**
889
889
  * Name of the field that uniquely identifies the a record in the data.
890
890
  */
@@ -1103,7 +1103,7 @@ export interface DataTableProps<T = any> {
1103
1103
  /**
1104
1104
  * One or more field names to use in row grouping.
1105
1105
  */
1106
- groupRowsBy?: ((field: NoInfer<T>) => object) | keyof T[] | keyof T | undefined;
1106
+ groupRowsBy?: ((field: NoInfer<T>) => object) | (keyof T)[] | keyof T | undefined;
1107
1107
  /**
1108
1108
  * Whether the row groups can be expandable.
1109
1109
  * @defaultValue false
@@ -12,7 +12,7 @@ import BaseComponent from '@primevue/core/basecomponent';
12
12
  import DataTableStyle from 'primevue/datatable/style';
13
13
  import ChevronDownIcon from '@primevue/icons/chevrondown';
14
14
  import ChevronRightIcon from '@primevue/icons/chevronright';
15
- import { mergeProps, resolveComponent, createBlock, openBlock, withCtx, createCommentVNode, resolveDynamicComponent, normalizeClass, resolveDirective, createElementBlock, withDirectives, Fragment, createTextVNode, toDisplayString, createElementVNode, withModifiers, renderList, createVNode, Transition, withKeys, normalizeProps, renderSlot, createSlots } from 'vue';
15
+ import { mergeProps, resolveComponent, createBlock, openBlock, withCtx, createCommentVNode, resolveDynamicComponent, normalizeClass, resolveDirective, createElementBlock, withDirectives, Fragment, withModifiers, createTextVNode, toDisplayString, createElementVNode, renderList, createVNode, Transition, withKeys, normalizeProps, renderSlot, createSlots } from 'vue';
16
16
  import BarsIcon from '@primevue/icons/bars';
17
17
  import CheckIcon from '@primevue/icons/check';
18
18
  import PencilIcon from '@primevue/icons/pencil';
@@ -532,8 +532,8 @@ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
532
532
 
533
533
  script$b.render = render$b;
534
534
 
535
- function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = false, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (c = i[4] || 3, u = i[5] === e ? i[3] : i[5], i[4] = 3, i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = true, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), true), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
536
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
535
+ function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = false, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = true, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), true), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
536
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
537
537
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
538
538
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
539
539
  var script$a = {
@@ -1011,7 +1011,7 @@ var script$a = {
1011
1011
  });
1012
1012
  },
1013
1013
  expandButtonAriaLabel: function expandButtonAriaLabel() {
1014
- return this.$primevue.config.locale.aria ? this.isRowExpanded ? this.$primevue.config.locale.aria.expandRow : this.$primevue.config.locale.aria.collapseRow : undefined;
1014
+ return this.$primevue.config.locale.aria ? this.isRowExpanded ? this.$primevue.config.locale.aria.collapseRow : this.$primevue.config.locale.aria.expandRow : undefined;
1015
1015
  },
1016
1016
  initButtonAriaLabel: function initButtonAriaLabel() {
1017
1017
  return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.editRow : undefined;
@@ -1155,9 +1155,9 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
1155
1155
  "aria-expanded": $props.isRowExpanded,
1156
1156
  "aria-controls": $props.ariaControls,
1157
1157
  "aria-label": $options.expandButtonAriaLabel,
1158
- onClick: _cache[2] || (_cache[2] = function () {
1158
+ onClick: _cache[2] || (_cache[2] = withModifiers(function () {
1159
1159
  return $options.toggleRow && $options.toggleRow.apply($options, arguments);
1160
- }),
1160
+ }, ["stop"])),
1161
1161
  "data-p-selected": "selected"
1162
1162
  }, $options.getColumnPT('rowToggleButton'), {
1163
1163
  "data-pc-group-section": "rowactionbutton"
@@ -2563,7 +2563,7 @@ var script$5 = {
2563
2563
  },
2564
2564
  showClearButton: {
2565
2565
  type: Boolean,
2566
- "default": false
2566
+ "default": true
2567
2567
  },
2568
2568
  showApplyButton: {
2569
2569
  type: Boolean,
@@ -3119,21 +3119,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3119
3119
  }, $options.getColumnPT('filterMenuIcon')), null, 16, ["class"]))];
3120
3120
  }),
3121
3121
  _: 1
3122
- }, 16, ["aria-label", "aria-expanded", "aria-controls", "class", "unstyled"])) : createCommentVNode("", true), $props.showClearButton && $props.display === 'row' && $options.hasRowFilter() ? (openBlock(), createBlock(_component_Button, mergeProps({
3123
- key: 2,
3124
- "class": _ctx.cx('pcColumnFilterClearButton'),
3125
- unstyled: _ctx.unstyled,
3126
- onClick: _cache[2] || (_cache[2] = function ($event) {
3127
- return $options.clearFilter();
3128
- })
3129
- }, _objectSpread$5(_objectSpread$5({}, $options.getColumnPT('pcColumnFilterClearButton', $options.ptmHeaderFilterClearParams)), $props.filterButtonProps.inline.clear)), {
3130
- icon: withCtx(function (slotProps) {
3131
- return [(openBlock(), createBlock(resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon'), mergeProps({
3132
- "class": slotProps["class"]
3133
- }, $options.getColumnPT('filterClearIcon')), null, 16, ["class"]))];
3134
- }),
3135
- _: 1
3136
- }, 16, ["class", "unstyled"])) : createCommentVNode("", true), createVNode(_component_Portal, null, {
3122
+ }, 16, ["aria-label", "aria-expanded", "aria-controls", "class", "unstyled"])) : createCommentVNode("", true), createVNode(_component_Portal, null, {
3137
3123
  "default": withCtx(function () {
3138
3124
  return [createVNode(Transition, mergeProps({
3139
3125
  name: "p-connected-overlay",
@@ -3175,7 +3161,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3175
3161
  onClick: function onClick($event) {
3176
3162
  return $options.onRowMatchModeChange(matchMode.value);
3177
3163
  },
3178
- onKeydown: [_cache[3] || (_cache[3] = function ($event) {
3164
+ onKeydown: [_cache[2] || (_cache[2] = function ($event) {
3179
3165
  return $options.onRowMatchModeKeyDown($event);
3180
3166
  }), withKeys(withModifiers(function ($event) {
3181
3167
  return $options.onRowMatchModeChange(matchMode.value);
@@ -3188,12 +3174,12 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3188
3174
  "class": _ctx.cx('filterConstraintSeparator')
3189
3175
  }, $options.getColumnPT('filterConstraintSeparator')), null, 16), createElementVNode("li", mergeProps({
3190
3176
  "class": _ctx.cx('filterConstraint'),
3191
- onClick: _cache[4] || (_cache[4] = function ($event) {
3177
+ onClick: _cache[3] || (_cache[3] = function ($event) {
3192
3178
  return $options.clearFilter();
3193
3179
  }),
3194
- onKeydown: [_cache[5] || (_cache[5] = function ($event) {
3180
+ onKeydown: [_cache[4] || (_cache[4] = function ($event) {
3195
3181
  return $options.onRowMatchModeKeyDown($event);
3196
- }), _cache[6] || (_cache[6] = withKeys(function ($event) {
3182
+ }), _cache[5] || (_cache[5] = withKeys(function ($event) {
3197
3183
  return _ctx.onRowClearItemClick();
3198
3184
  }, ["enter"]))]
3199
3185
  }, $options.getColumnPT('filterConstraint')), toDisplayString($options.noFilterLabel), 17)], 16)) : (openBlock(), createElementBlock(Fragment, {
@@ -3208,7 +3194,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3208
3194
  "class": normalizeClass(_ctx.cx('pcFilterOperatorDropdown')),
3209
3195
  optionLabel: "label",
3210
3196
  optionValue: "value",
3211
- "onUpdate:modelValue": _cache[7] || (_cache[7] = function ($event) {
3197
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = function ($event) {
3212
3198
  return $options.onOperatorChange($event);
3213
3199
  }),
3214
3200
  unstyled: _ctx.unstyled,
@@ -3272,7 +3258,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3272
3258
  label: $options.addRuleButtonLabel,
3273
3259
  iconPos: "left",
3274
3260
  "class": _ctx.cx('pcFilterAddRuleButton'),
3275
- onClick: _cache[8] || (_cache[8] = function ($event) {
3261
+ onClick: _cache[7] || (_cache[7] = function ($event) {
3276
3262
  return $options.addConstraint();
3277
3263
  }),
3278
3264
  unstyled: _ctx.unstyled
@@ -3292,11 +3278,13 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3292
3278
  type: "button",
3293
3279
  "class": _ctx.cx('pcFilterClearButton'),
3294
3280
  label: $options.clearButtonLabel,
3295
- onClick: $options.clearFilter,
3281
+ onClick: _cache[8] || (_cache[8] = function ($event) {
3282
+ return $options.clearFilter();
3283
+ }),
3296
3284
  unstyled: _ctx.unstyled
3297
3285
  }, $props.filterButtonProps.popover.clear, {
3298
3286
  pt: $options.getColumnPT('pcFilterClearButton')
3299
- }), null, 16, ["class", "label", "onClick", "unstyled", "pt"])) : (openBlock(), createBlock(resolveDynamicComponent($props.filterClearTemplate), {
3287
+ }), null, 16, ["class", "label", "unstyled", "pt"])) : (openBlock(), createBlock(resolveDynamicComponent($props.filterClearTemplate), {
3300
3288
  key: 1,
3301
3289
  field: $props.field,
3302
3290
  filterModel: $props.filters[$props.field],
@@ -4350,6 +4338,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4350
4338
  filters: $props.filters,
4351
4339
  filterDisplay: $props.filterDisplay,
4352
4340
  filtersStore: $props.filtersStore,
4341
+ filterInputProps: $props.filterInputProps,
4342
+ filterButtonProps: $props.filterButtonProps,
4353
4343
  onFilterChange: _cache[18] || (_cache[18] = function ($event) {
4354
4344
  return _ctx.$emit('filter-change', $event);
4355
4345
  }),
@@ -4373,7 +4363,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4373
4363
  }),
4374
4364
  unstyled: _ctx.unstyled,
4375
4365
  pt: _ctx.pt
4376
- }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore", "unstyled", "pt"])) : createCommentVNode("", true)], 64);
4366
+ }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore", "filterInputProps", "filterButtonProps", "unstyled", "pt"])) : createCommentVNode("", true)], 64);
4377
4367
  }), 128))], 16);
4378
4368
  }), 128)), $props.filterDisplay === 'row' ? (openBlock(), createElementBlock("tr", mergeProps({
4379
4369
  key: 2,
@@ -5053,7 +5043,7 @@ var script = {
5053
5043
  focusedItem && focusedItem !== firstSelectedRow && (focusedItem.tabIndex = '-1');
5054
5044
  } else {
5055
5045
  rows[0].tabIndex = '0';
5056
- focusedItem !== rows[0] && (rows[rowIndex].tabIndex = '-1');
5046
+ focusedItem !== rows[0] && rows[rowIndex] && (rows[rowIndex].tabIndex = '-1');
5057
5047
  }
5058
5048
  }
5059
5049
  },