primevue 4.3.4 → 4.3.6

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 (236) hide show
  1. package/accordion/index.mjs +4 -2
  2. package/accordion/index.mjs.map +1 -1
  3. package/accordioncontent/AccordionContent.vue +2 -2
  4. package/accordioncontent/index.mjs +2 -2
  5. package/accordioncontent/index.mjs.map +1 -1
  6. package/accordionheader/AccordionHeader.vue +2 -2
  7. package/accordionheader/index.mjs +2 -2
  8. package/accordionheader/index.mjs.map +1 -1
  9. package/accordionpanel/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 +10 -5
  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/avatargroup/index.mjs.map +1 -1
  19. package/badge/index.mjs.map +1 -1
  20. package/badge/style/index.mjs.map +1 -1
  21. package/badgedirective/index.mjs.map +1 -1
  22. package/blockui/index.mjs.map +1 -1
  23. package/breadcrumb/index.mjs +4 -2
  24. package/breadcrumb/index.mjs.map +1 -1
  25. package/button/Button.vue +1 -1
  26. package/button/index.d.ts +4 -0
  27. package/button/index.mjs +5 -4
  28. package/button/index.mjs.map +1 -1
  29. package/button/style/index.mjs.map +1 -1
  30. package/buttongroup/index.mjs.map +1 -1
  31. package/card/index.mjs.map +1 -1
  32. package/carousel/index.mjs +10 -5
  33. package/carousel/index.mjs.map +1 -1
  34. package/cascadeselect/index.mjs +10 -5
  35. package/cascadeselect/index.mjs.map +1 -1
  36. package/chart/index.mjs.map +1 -1
  37. package/checkbox/index.mjs.map +1 -1
  38. package/checkboxgroup/index.mjs.map +1 -1
  39. package/chip/Chip.vue +1 -1
  40. package/chip/index.mjs +1 -1
  41. package/chip/index.mjs.map +1 -1
  42. package/colorpicker/index.mjs.map +1 -1
  43. package/column/index.mjs.map +1 -1
  44. package/columngroup/index.mjs.map +1 -1
  45. package/confirmdialog/index.mjs.map +1 -1
  46. package/confirmpopup/index.mjs.map +1 -1
  47. package/contextmenu/index.mjs +16 -8
  48. package/contextmenu/index.mjs.map +1 -1
  49. package/datatable/BodyCell.vue +1 -1
  50. package/datatable/ColumnFilter.vue +2 -13
  51. package/datatable/DataTable.vue +8 -4
  52. package/datatable/index.d.ts +2 -2
  53. package/datatable/index.mjs +53 -57
  54. package/datatable/index.mjs.map +1 -1
  55. package/dataview/index.mjs.map +1 -1
  56. package/datepicker/DatePicker.vue +13 -2
  57. package/datepicker/index.mjs +68 -30
  58. package/datepicker/index.mjs.map +1 -1
  59. package/deferredcontent/index.mjs.map +1 -1
  60. package/dialog/Dialog.vue +1 -1
  61. package/dialog/index.mjs +1 -1
  62. package/dialog/index.mjs.map +1 -1
  63. package/dialog/style/index.mjs.map +1 -1
  64. package/divider/index.mjs.map +1 -1
  65. package/dock/index.mjs +8 -4
  66. package/dock/index.mjs.map +1 -1
  67. package/dock/style/index.mjs.map +1 -1
  68. package/drawer/index.mjs.map +1 -1
  69. package/drawer/style/index.mjs.map +1 -1
  70. package/dynamicdialog/index.mjs +6 -3
  71. package/dynamicdialog/index.mjs.map +1 -1
  72. package/editor/index.mjs.map +1 -1
  73. package/fieldset/index.mjs.map +1 -1
  74. package/fileupload/FileUpload.vue +27 -25
  75. package/fileupload/index.d.ts +5 -0
  76. package/fileupload/index.mjs +18 -9
  77. package/fileupload/index.mjs.map +1 -1
  78. package/fileupload/style/index.d.ts +5 -1
  79. package/fileupload/style/index.mjs +2 -1
  80. package/fileupload/style/index.mjs.map +1 -1
  81. package/floatlabel/index.d.ts +1 -1
  82. package/floatlabel/index.mjs.map +1 -1
  83. package/fluid/index.mjs.map +1 -1
  84. package/focustrap/index.mjs.map +1 -1
  85. package/galleria/index.mjs +8 -4
  86. package/galleria/index.mjs.map +1 -1
  87. package/iconfield/index.mjs.map +1 -1
  88. package/iftalabel/index.mjs.map +1 -1
  89. package/image/index.mjs.map +1 -1
  90. package/imagecompare/index.mjs.map +1 -1
  91. package/inlinemessage/index.mjs.map +1 -1
  92. package/inplace/index.mjs.map +1 -1
  93. package/inputchips/index.mjs +2 -1
  94. package/inputchips/index.mjs.map +1 -1
  95. package/inputgroup/index.mjs.map +1 -1
  96. package/inputgroupaddon/index.mjs.map +1 -1
  97. package/inputicon/index.mjs.map +1 -1
  98. package/inputmask/index.mjs.map +1 -1
  99. package/inputnumber/InputNumber.vue +10 -1
  100. package/inputnumber/index.mjs +8 -1
  101. package/inputnumber/index.mjs.map +1 -1
  102. package/inputotp/index.mjs.map +1 -1
  103. package/inputtext/index.mjs.map +1 -1
  104. package/keyfilter/index.mjs.map +1 -1
  105. package/knob/index.mjs +2 -2
  106. package/knob/index.mjs.map +1 -1
  107. package/listbox/BaseListbox.vue +4 -0
  108. package/listbox/Listbox.vue +8 -6
  109. package/listbox/index.d.ts +5 -0
  110. package/listbox/index.mjs +20 -10
  111. package/listbox/index.mjs.map +1 -1
  112. package/listbox/style/index.mjs +1 -0
  113. package/listbox/style/index.mjs.map +1 -1
  114. package/megamenu/index.d.ts +0 -1
  115. package/megamenu/index.mjs +22 -11
  116. package/megamenu/index.mjs.map +1 -1
  117. package/menu/index.mjs +6 -3
  118. package/menu/index.mjs.map +1 -1
  119. package/menubar/MenubarSub.vue +0 -1
  120. package/menubar/index.d.ts +0 -2
  121. package/menubar/index.mjs +15 -9
  122. package/menubar/index.mjs.map +1 -1
  123. package/message/index.mjs.map +1 -1
  124. package/metergroup/index.mjs +10 -5
  125. package/metergroup/index.mjs.map +1 -1
  126. package/multiselect/MultiSelect.vue +10 -5
  127. package/multiselect/index.mjs +17 -9
  128. package/multiselect/index.mjs.map +1 -1
  129. package/orderlist/index.mjs.map +1 -1
  130. package/organizationchart/index.mjs +6 -3
  131. package/organizationchart/index.mjs.map +1 -1
  132. package/overlaybadge/index.mjs.map +1 -1
  133. package/package.json +6 -6
  134. package/paginator/index.mjs +10 -4
  135. package/paginator/index.mjs.map +1 -1
  136. package/paginator/style/index.mjs.map +1 -1
  137. package/panel/index.mjs.map +1 -1
  138. package/panelmenu/index.mjs +42 -21
  139. package/panelmenu/index.mjs.map +1 -1
  140. package/passthrough/index.mjs.map +1 -1
  141. package/password/index.mjs.map +1 -1
  142. package/picklist/PickList.vue +8 -11
  143. package/picklist/index.mjs +15 -7
  144. package/picklist/index.mjs.map +1 -1
  145. package/popover/index.mjs.map +1 -1
  146. package/portal/index.mjs.map +1 -1
  147. package/progressbar/index.mjs.map +1 -1
  148. package/progressspinner/index.mjs.map +1 -1
  149. package/radiobutton/index.mjs.map +1 -1
  150. package/radiobuttongroup/index.mjs.map +1 -1
  151. package/rating/Rating.vue +2 -2
  152. package/rating/index.d.ts +10 -0
  153. package/rating/index.mjs +17 -6
  154. package/rating/index.mjs.map +1 -1
  155. package/ripple/index.mjs.map +1 -1
  156. package/row/index.mjs.map +1 -1
  157. package/scrollpanel/ScrollPanel.vue +3 -1
  158. package/scrollpanel/index.mjs +2 -1
  159. package/scrollpanel/index.mjs.map +1 -1
  160. package/scrolltop/index.mjs.map +1 -1
  161. package/select/Select.vue +3 -4
  162. package/select/index.mjs +15 -9
  163. package/select/index.mjs.map +1 -1
  164. package/selectbutton/BaseSelectButton.vue +4 -0
  165. package/selectbutton/index.d.ts +25 -0
  166. package/selectbutton/index.mjs +4 -0
  167. package/selectbutton/index.mjs.map +1 -1
  168. package/selectbutton/style/index.mjs +5 -2
  169. package/selectbutton/style/index.mjs.map +1 -1
  170. package/skeleton/index.mjs.map +1 -1
  171. package/slider/index.mjs.map +1 -1
  172. package/speeddial/index.mjs +6 -3
  173. package/speeddial/index.mjs.map +1 -1
  174. package/speeddial/style/index.mjs.map +1 -1
  175. package/splitbutton/index.mjs.map +1 -1
  176. package/splitter/Splitter.vue +1 -1
  177. package/splitter/index.mjs +5 -2
  178. package/splitter/index.mjs.map +1 -1
  179. package/splitterpanel/index.mjs.map +1 -1
  180. package/step/index.mjs.map +1 -1
  181. package/stepitem/index.mjs.map +1 -1
  182. package/steplist/index.mjs.map +1 -1
  183. package/steppanel/index.mjs.map +1 -1
  184. package/steppanels/index.mjs.map +1 -1
  185. package/stepper/index.mjs.map +1 -1
  186. package/steps/index.mjs +8 -4
  187. package/steps/index.mjs.map +1 -1
  188. package/styleclass/index.mjs.map +1 -1
  189. package/tab/index.mjs.map +1 -1
  190. package/tablist/index.mjs.map +1 -1
  191. package/tabmenu/index.mjs +8 -2
  192. package/tabmenu/index.mjs.map +1 -1
  193. package/tabpanel/index.mjs.map +1 -1
  194. package/tabpanels/index.mjs.map +1 -1
  195. package/tabs/index.mjs.map +1 -1
  196. package/tabview/index.mjs +8 -4
  197. package/tabview/index.mjs.map +1 -1
  198. package/tag/index.mjs.map +1 -1
  199. package/terminal/index.mjs +8 -4
  200. package/terminal/index.mjs.map +1 -1
  201. package/textarea/index.mjs.map +1 -1
  202. package/tieredmenu/index.mjs +18 -9
  203. package/tieredmenu/index.mjs.map +1 -1
  204. package/timeline/index.mjs +12 -6
  205. package/timeline/index.mjs.map +1 -1
  206. package/toast/Toast.vue +3 -0
  207. package/toast/ToastMessage.vue +21 -9
  208. package/toast/index.d.ts +16 -4
  209. package/toast/index.mjs +27 -14
  210. package/toast/index.mjs.map +1 -1
  211. package/toast/style/index.mjs.map +1 -1
  212. package/togglebutton/BaseToggleButton.vue +4 -0
  213. package/togglebutton/index.d.ts +5 -0
  214. package/togglebutton/index.mjs +4 -0
  215. package/togglebutton/index.mjs.map +1 -1
  216. package/togglebutton/style/index.mjs +1 -0
  217. package/togglebutton/style/index.mjs.map +1 -1
  218. package/toggleswitch/index.mjs.map +1 -1
  219. package/toggleswitch/style/index.d.ts +1 -5
  220. package/toolbar/index.mjs.map +1 -1
  221. package/tooltip/index.mjs.map +1 -1
  222. package/tree/index.mjs.map +1 -1
  223. package/treeselect/index.mjs +2 -1
  224. package/treeselect/index.mjs.map +1 -1
  225. package/treetable/TreeTable.vue +1 -1
  226. package/treetable/index.mjs +3 -2
  227. package/treetable/index.mjs.map +1 -1
  228. package/umd/primevue.min.js +1 -12213
  229. package/useconfirm/index.mjs.map +1 -1
  230. package/usedialog/index.mjs.map +1 -1
  231. package/usetoast/index.mjs.map +1 -1
  232. package/virtualscroller/VirtualScroller.vue +4 -1
  233. package/virtualscroller/index.mjs +3 -1
  234. package/virtualscroller/index.mjs.map +1 -1
  235. package/virtualscroller/style/index.mjs.map +1 -1
  236. 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,
@@ -401,8 +401,8 @@ export default {
401
401
  ],
402
402
  provide() {
403
403
  return {
404
- $columns: this.d_columns,
405
- $columnGroups: this.d_columnGroups
404
+ $columns: this.d_columns.get(),
405
+ $columnGroups: this.d_columnGroups.get()
406
406
  };
407
407
  },
408
408
  data() {
@@ -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
  },
@@ -1203,7 +1203,7 @@ export default {
1203
1203
 
1204
1204
  this.$emit('update:selection', _selection);
1205
1205
  },
1206
- exportCSV(options, data) {
1206
+ generateCSV(options, data) {
1207
1207
  let csv = '\ufeff';
1208
1208
 
1209
1209
  if (!data) {
@@ -1273,6 +1273,10 @@ export default {
1273
1273
  }
1274
1274
  }
1275
1275
 
1276
+ return csv;
1277
+ },
1278
+ exportCSV(options, data) {
1279
+ const csv = this.generateCSV(options, data);
1276
1280
  exportCSV(csv, this.exportFilename);
1277
1281
  },
1278
1282
  resetPage() {
@@ -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 _typeof$c(o) { "@babel/helpers - typeof"; return _typeof$c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$c(o); }
536
- function _regeneratorRuntime() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: true }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), true), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == _typeof$c(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, true); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(true); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = false, e; return e.value = t, e.done = true, e; }; return a.next = a; } } throw new TypeError(_typeof$c(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = false, t; return t.done = true, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = true; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), false; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), true; if (u < h) return n(h), false; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, "catch": function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
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) { 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); }
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 = {
@@ -803,50 +803,48 @@ var script$a = {
803
803
  },
804
804
  moveToPreviousCell: function moveToPreviousCell(event) {
805
805
  var _this4 = this;
806
- return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
806
+ return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
807
807
  var currentCell, targetCell;
808
- return _regeneratorRuntime().wrap(function _callee$(_context) {
809
- while (1) switch (_context.prev = _context.next) {
808
+ return _regenerator().w(function (_context) {
809
+ while (1) switch (_context.n) {
810
810
  case 0:
811
811
  currentCell = _this4.findCell(event.target);
812
812
  targetCell = _this4.findPreviousEditableColumn(currentCell);
813
813
  if (!targetCell) {
814
- _context.next = 7;
814
+ _context.n = 2;
815
815
  break;
816
816
  }
817
- _context.next = 5;
817
+ _context.n = 1;
818
818
  return _this4.$nextTick();
819
- case 5:
819
+ case 1:
820
820
  invokeElementMethod(targetCell, 'click');
821
821
  event.preventDefault();
822
- case 7:
823
- case "end":
824
- return _context.stop();
822
+ case 2:
823
+ return _context.a(2);
825
824
  }
826
825
  }, _callee);
827
826
  }))();
828
827
  },
829
828
  moveToNextCell: function moveToNextCell(event) {
830
829
  var _this5 = this;
831
- return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
830
+ return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
832
831
  var currentCell, targetCell;
833
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
834
- while (1) switch (_context2.prev = _context2.next) {
832
+ return _regenerator().w(function (_context2) {
833
+ while (1) switch (_context2.n) {
835
834
  case 0:
836
835
  currentCell = _this5.findCell(event.target);
837
836
  targetCell = _this5.findNextEditableColumn(currentCell);
838
837
  if (!targetCell) {
839
- _context2.next = 7;
838
+ _context2.n = 2;
840
839
  break;
841
840
  }
842
- _context2.next = 5;
841
+ _context2.n = 1;
843
842
  return _this5.$nextTick();
844
- case 5:
843
+ case 1:
845
844
  invokeElementMethod(targetCell, 'click');
846
845
  event.preventDefault();
847
- case 7:
848
- case "end":
849
- return _context2.stop();
846
+ case 2:
847
+ return _context2.a(2);
850
848
  }
851
849
  }, _callee2);
852
850
  }))();
@@ -1157,9 +1155,9 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
1157
1155
  "aria-expanded": $props.isRowExpanded,
1158
1156
  "aria-controls": $props.ariaControls,
1159
1157
  "aria-label": $options.expandButtonAriaLabel,
1160
- onClick: _cache[2] || (_cache[2] = function () {
1158
+ onClick: _cache[2] || (_cache[2] = withModifiers(function () {
1161
1159
  return $options.toggleRow && $options.toggleRow.apply($options, arguments);
1162
- }),
1160
+ }, ["stop"])),
1163
1161
  "data-p-selected": "selected"
1164
1162
  }, $options.getColumnPT('rowToggleButton'), {
1165
1163
  "data-pc-group-section": "rowactionbutton"
@@ -2509,7 +2507,8 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
2509
2507
  }, renderList($options.getFooterRows(), function (row, i) {
2510
2508
  return openBlock(), createElementBlock("tr", mergeProps({
2511
2509
  key: i,
2512
- role: "row",
2510
+ role: "row"
2511
+ }, {
2513
2512
  ref_for: true
2514
2513
  }, _objectSpread$7(_objectSpread$7({}, _ctx.ptm('footerRow')), $options.getRowPT(row, 'root', i))), [(openBlock(true), createElementBlock(Fragment, null, renderList($options.getFooterColumns(row), function (col, j) {
2515
2514
  return openBlock(), createElementBlock(Fragment, {
@@ -2564,7 +2563,7 @@ var script$5 = {
2564
2563
  },
2565
2564
  showClearButton: {
2566
2565
  type: Boolean,
2567
- "default": false
2566
+ "default": true
2568
2567
  },
2569
2568
  showApplyButton: {
2570
2569
  type: Boolean,
@@ -3120,21 +3119,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3120
3119
  }, $options.getColumnPT('filterMenuIcon')), null, 16, ["class"]))];
3121
3120
  }),
3122
3121
  _: 1
3123
- }, 16, ["aria-label", "aria-expanded", "aria-controls", "class", "unstyled"])) : createCommentVNode("", true), $props.showClearButton && $props.display === 'row' && $options.hasRowFilter() ? (openBlock(), createBlock(_component_Button, mergeProps({
3124
- key: 2,
3125
- "class": _ctx.cx('pcColumnFilterClearButton'),
3126
- unstyled: _ctx.unstyled,
3127
- onClick: _cache[2] || (_cache[2] = function ($event) {
3128
- return $options.clearFilter();
3129
- })
3130
- }, _objectSpread$5(_objectSpread$5({}, $options.getColumnPT('pcColumnFilterClearButton', $options.ptmHeaderFilterClearParams)), $props.filterButtonProps.inline.clear)), {
3131
- icon: withCtx(function (slotProps) {
3132
- return [(openBlock(), createBlock(resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon'), mergeProps({
3133
- "class": slotProps["class"]
3134
- }, $options.getColumnPT('filterClearIcon')), null, 16, ["class"]))];
3135
- }),
3136
- _: 1
3137
- }, 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, {
3138
3123
  "default": withCtx(function () {
3139
3124
  return [createVNode(Transition, mergeProps({
3140
3125
  name: "p-connected-overlay",
@@ -3176,24 +3161,25 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3176
3161
  onClick: function onClick($event) {
3177
3162
  return $options.onRowMatchModeChange(matchMode.value);
3178
3163
  },
3179
- onKeydown: [_cache[3] || (_cache[3] = function ($event) {
3164
+ onKeydown: [_cache[2] || (_cache[2] = function ($event) {
3180
3165
  return $options.onRowMatchModeKeyDown($event);
3181
3166
  }), withKeys(withModifiers(function ($event) {
3182
3167
  return $options.onRowMatchModeChange(matchMode.value);
3183
3168
  }, ["prevent"]), ["enter"])],
3184
- tabindex: i === 0 ? '0' : null,
3169
+ tabindex: i === 0 ? '0' : null
3170
+ }, {
3185
3171
  ref_for: true
3186
3172
  }, $options.getColumnPT('filterConstraint', $options.ptmFilterConstraintOptions(matchMode))), toDisplayString(matchMode.label), 17, _hoisted_2$1);
3187
3173
  }), 128)), createElementVNode("li", mergeProps({
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,
@@ -3218,7 +3204,8 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3218
3204
  }, $options.getColumnPT('filterRuleList')), [(openBlock(true), createElementBlock(Fragment, null, renderList($options.fieldConstraints, function (fieldConstraint, i) {
3219
3205
  return openBlock(), createElementBlock("div", mergeProps({
3220
3206
  key: i,
3221
- "class": _ctx.cx('filterRule'),
3207
+ "class": _ctx.cx('filterRule')
3208
+ }, {
3222
3209
  ref_for: true
3223
3210
  }, $options.getColumnPT('filterRule')), [$options.isShowMatchModes ? (openBlock(), createBlock(_component_Select, {
3224
3211
  key: 0,
@@ -3249,14 +3236,16 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3249
3236
  return $options.removeConstraint(i);
3250
3237
  },
3251
3238
  label: $options.removeRuleButtonLabel,
3252
- unstyled: _ctx.unstyled,
3239
+ unstyled: _ctx.unstyled
3240
+ }, {
3253
3241
  ref_for: true
3254
3242
  }, $props.filterButtonProps.popover.removeRule, {
3255
3243
  pt: $options.getColumnPT('pcFilterRemoveRuleButton')
3256
3244
  }), {
3257
3245
  icon: withCtx(function (iconProps) {
3258
3246
  return [(openBlock(), createBlock(resolveDynamicComponent($props.filterRemoveIconTemplate || 'TrashIcon'), mergeProps({
3259
- "class": iconProps["class"],
3247
+ "class": iconProps["class"]
3248
+ }, {
3260
3249
  ref_for: true
3261
3250
  }, $options.getColumnPT('pcFilterRemoveRuleButton')['icon']), null, 16, ["class"]))];
3262
3251
  }),
@@ -3269,7 +3258,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3269
3258
  label: $options.addRuleButtonLabel,
3270
3259
  iconPos: "left",
3271
3260
  "class": _ctx.cx('pcFilterAddRuleButton'),
3272
- onClick: _cache[8] || (_cache[8] = function ($event) {
3261
+ onClick: _cache[7] || (_cache[7] = function ($event) {
3273
3262
  return $options.addConstraint();
3274
3263
  }),
3275
3264
  unstyled: _ctx.unstyled
@@ -3289,11 +3278,13 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3289
3278
  type: "button",
3290
3279
  "class": _ctx.cx('pcFilterClearButton'),
3291
3280
  label: $options.clearButtonLabel,
3292
- onClick: $options.clearFilter,
3281
+ onClick: _cache[8] || (_cache[8] = function ($event) {
3282
+ return $options.clearFilter();
3283
+ }),
3293
3284
  unstyled: _ctx.unstyled
3294
3285
  }, $props.filterButtonProps.popover.clear, {
3295
3286
  pt: $options.getColumnPT('pcFilterClearButton')
3296
- }), null, 16, ["class", "label", "onClick", "unstyled", "pt"])) : (openBlock(), createBlock(resolveDynamicComponent($props.filterClearTemplate), {
3287
+ }), null, 16, ["class", "label", "unstyled", "pt"])) : (openBlock(), createBlock(resolveDynamicComponent($props.filterClearTemplate), {
3297
3288
  key: 1,
3298
3289
  field: $props.field,
3299
3290
  filterModel: $props.filters[$props.field],
@@ -4318,7 +4309,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4318
4309
  }, renderList($options.getHeaderRows(), function (row, i) {
4319
4310
  return openBlock(), createElementBlock("tr", mergeProps({
4320
4311
  key: i,
4321
- role: "row",
4312
+ role: "row"
4313
+ }, {
4322
4314
  ref_for: true
4323
4315
  }, _objectSpread$2(_objectSpread$2({}, _ctx.ptm('headerRow')), $options.getRowPT(row, 'root', i))), [(openBlock(true), createElementBlock(Fragment, null, renderList($options.getHeaderColumns(row), function (col, j) {
4324
4316
  return openBlock(), createElementBlock(Fragment, {
@@ -4447,8 +4439,8 @@ var script = {
4447
4439
  emits: ['value-change', 'update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'row-click', 'row-dblclick', 'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all', 'select-all-change', 'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand', 'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
4448
4440
  provide: function provide() {
4449
4441
  return {
4450
- $columns: this.d_columns,
4451
- $columnGroups: this.d_columnGroups
4442
+ $columns: this.d_columns.get(),
4443
+ $columnGroups: this.d_columnGroups.get()
4452
4444
  };
4453
4445
  },
4454
4446
  data: function data() {
@@ -5049,7 +5041,7 @@ var script = {
5049
5041
  focusedItem && focusedItem !== firstSelectedRow && (focusedItem.tabIndex = '-1');
5050
5042
  } else {
5051
5043
  rows[0].tabIndex = '0';
5052
- focusedItem !== rows[0] && (rows[rowIndex].tabIndex = '-1');
5044
+ focusedItem !== rows[0] && rows[rowIndex] && (rows[rowIndex].tabIndex = '-1');
5053
5045
  }
5054
5046
  }
5055
5047
  },
@@ -5250,7 +5242,7 @@ var script = {
5250
5242
  }
5251
5243
  this.$emit('update:selection', _selection);
5252
5244
  },
5253
- exportCSV: function exportCSV$1(options, data) {
5245
+ generateCSV: function generateCSV(options, data) {
5254
5246
  var _this6 = this;
5255
5247
  var csv = "\uFEFF";
5256
5248
  if (!data) {
@@ -5302,6 +5294,10 @@ var script = {
5302
5294
  csv += '"' + (this.columnProp(_column2, 'exportFooter') || this.columnProp(_column2, 'footer') || this.columnProp(_column2, 'field')) + '"';
5303
5295
  }
5304
5296
  }
5297
+ return csv;
5298
+ },
5299
+ exportCSV: function exportCSV$1(options, data) {
5300
+ var csv = this.generateCSV(options, data);
5305
5301
  exportCSV(csv, this.exportFilename);
5306
5302
  },
5307
5303
  resetPage: function resetPage() {