primevue 4.3.3 → 4.3.5

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 (144) hide show
  1. package/accordion/index.mjs +4 -2
  2. package/accordion/index.mjs.map +1 -1
  3. package/accordionheader/AccordionHeader.vue +1 -1
  4. package/accordionheader/index.d.ts +6 -1
  5. package/accordionheader/index.mjs +1 -1
  6. package/accordionheader/index.mjs.map +1 -1
  7. package/autocomplete/AutoComplete.vue +4 -1
  8. package/autocomplete/index.d.ts +4 -0
  9. package/autocomplete/index.mjs +38 -31
  10. package/autocomplete/index.mjs.map +1 -1
  11. package/breadcrumb/index.mjs +4 -2
  12. package/breadcrumb/index.mjs.map +1 -1
  13. package/carousel/index.mjs +10 -5
  14. package/carousel/index.mjs.map +1 -1
  15. package/cascadeselect/CascadeSelect.vue +3 -0
  16. package/cascadeselect/CascadeSelectSub.vue +1 -1
  17. package/cascadeselect/index.mjs +31 -23
  18. package/cascadeselect/index.mjs.map +1 -1
  19. package/colorpicker/ColorPicker.vue +4 -0
  20. package/colorpicker/index.mjs +4 -0
  21. package/colorpicker/index.mjs.map +1 -1
  22. package/confirmationoptions/index.d.ts +1 -1
  23. package/confirmdialog/index.d.ts +4 -0
  24. package/contextmenu/index.mjs +28 -20
  25. package/contextmenu/index.mjs.map +1 -1
  26. package/datatable/ColumnFilter.vue +2 -2
  27. package/datatable/DataTable.vue +7 -3
  28. package/datatable/index.d.ts +2 -2
  29. package/datatable/index.mjs +48 -40
  30. package/datatable/index.mjs.map +1 -1
  31. package/datatable/style/index.mjs +4 -4
  32. package/datatable/style/index.mjs.map +1 -1
  33. package/dataview/index.d.ts +5 -5
  34. package/datepicker/DatePicker.vue +10 -3
  35. package/datepicker/index.mjs +123 -84
  36. package/datepicker/index.mjs.map +1 -1
  37. package/dock/index.mjs +8 -4
  38. package/dock/index.mjs.map +1 -1
  39. package/dynamicdialog/index.mjs +6 -3
  40. package/dynamicdialog/index.mjs.map +1 -1
  41. package/fileupload/FileUpload.vue +2 -3
  42. package/fileupload/index.mjs +20 -15
  43. package/fileupload/index.mjs.map +1 -1
  44. package/floatlabel/index.d.ts +1 -1
  45. package/galleria/index.mjs +8 -4
  46. package/galleria/index.mjs.map +1 -1
  47. package/image/Image.vue +1 -1
  48. package/image/index.mjs +1 -1
  49. package/image/index.mjs.map +1 -1
  50. package/inputchips/index.mjs +2 -1
  51. package/inputchips/index.mjs.map +1 -1
  52. package/inputmask/InputMask.vue +3 -3
  53. package/inputmask/index.d.ts +3 -3
  54. package/inputmask/index.mjs +3 -3
  55. package/inputmask/index.mjs.map +1 -1
  56. package/inputnumber/InputNumber.vue +1 -1
  57. package/inputnumber/index.mjs +2 -2
  58. package/inputnumber/index.mjs.map +1 -1
  59. package/inputtext/index.d.ts +2 -1
  60. package/listbox/Listbox.vue +1 -0
  61. package/listbox/index.mjs +35 -30
  62. package/listbox/index.mjs.map +1 -1
  63. package/megamenu/index.d.ts +1 -1
  64. package/megamenu/index.mjs +33 -22
  65. package/megamenu/index.mjs.map +1 -1
  66. package/menu/Menu.vue +4 -4
  67. package/menu/index.d.ts +3 -12
  68. package/menu/index.mjs +10 -7
  69. package/menu/index.mjs.map +1 -1
  70. package/menubar/index.mjs +30 -23
  71. package/menubar/index.mjs.map +1 -1
  72. package/metergroup/index.d.ts +1 -1
  73. package/metergroup/index.mjs +10 -5
  74. package/metergroup/index.mjs.map +1 -1
  75. package/multiselect/MultiSelect.vue +4 -1
  76. package/multiselect/index.d.ts +1 -1
  77. package/multiselect/index.mjs +59 -52
  78. package/multiselect/index.mjs.map +1 -1
  79. package/organizationchart/OrganizationChartNode.vue +1 -1
  80. package/organizationchart/index.mjs +6 -3
  81. package/organizationchart/index.mjs.map +1 -1
  82. package/organizationchart/style/index.mjs +11 -6
  83. package/organizationchart/style/index.mjs.map +1 -1
  84. package/package.json +6 -6
  85. package/paginator/index.mjs +10 -4
  86. package/paginator/index.mjs.map +1 -1
  87. package/panel/Panel.vue +2 -2
  88. package/panel/index.mjs +2 -2
  89. package/panel/index.mjs.map +1 -1
  90. package/panelmenu/index.mjs +45 -24
  91. package/panelmenu/index.mjs.map +1 -1
  92. package/password/Password.vue +8 -3
  93. package/password/index.d.ts +1 -1
  94. package/password/index.mjs +18 -9
  95. package/password/index.mjs.map +1 -1
  96. package/rating/index.mjs +10 -5
  97. package/rating/index.mjs.map +1 -1
  98. package/select/Select.vue +21 -3
  99. package/select/index.mjs +66 -42
  100. package/select/index.mjs.map +1 -1
  101. package/selectbutton/index.d.ts +0 -24
  102. package/speeddial/index.mjs +6 -3
  103. package/speeddial/index.mjs.map +1 -1
  104. package/splitter/Splitter.vue +2 -2
  105. package/splitter/index.d.ts +1 -1
  106. package/splitter/index.mjs +5 -3
  107. package/splitter/index.mjs.map +1 -1
  108. package/splitter/style/index.mjs +1 -13
  109. package/splitter/style/index.mjs.map +1 -1
  110. package/step/Step.vue +2 -2
  111. package/step/index.mjs +2 -2
  112. package/step/index.mjs.map +1 -1
  113. package/steppanel/StepPanel.vue +2 -2
  114. package/steppanel/index.mjs +2 -2
  115. package/steppanel/index.mjs.map +1 -1
  116. package/steps/index.mjs +8 -4
  117. package/steps/index.mjs.map +1 -1
  118. package/tabmenu/index.mjs +8 -2
  119. package/tabmenu/index.mjs.map +1 -1
  120. package/tabview/index.mjs +8 -4
  121. package/tabview/index.mjs.map +1 -1
  122. package/terminal/index.mjs +8 -4
  123. package/terminal/index.mjs.map +1 -1
  124. package/textarea/index.d.ts +2 -1
  125. package/tieredmenu/index.mjs +30 -21
  126. package/tieredmenu/index.mjs.map +1 -1
  127. package/timeline/index.mjs +12 -6
  128. package/timeline/index.mjs.map +1 -1
  129. package/toast/ToastMessage.vue +1 -1
  130. package/toast/index.mjs +1 -1
  131. package/toast/index.mjs.map +1 -1
  132. package/toggleswitch/style/index.d.ts +1 -5
  133. package/tooltip/index.mjs +25 -14
  134. package/tooltip/index.mjs.map +1 -1
  135. package/treeselect/TreeSelect.vue +3 -0
  136. package/treeselect/index.mjs +5 -1
  137. package/treeselect/index.mjs.map +1 -1
  138. package/treetable/index.mjs +2 -1
  139. package/treetable/index.mjs.map +1 -1
  140. package/umd/primevue.min.js +12213 -1
  141. package/virtualscroller/VirtualScroller.vue +4 -1
  142. package/virtualscroller/index.mjs +21 -19
  143. package/virtualscroller/index.mjs.map +1 -1
  144. package/web-types.json +1 -1
@@ -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() {
@@ -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() {
@@ -1661,12 +1661,12 @@ export interface DataTableEmitsOptions<T = any> {
1661
1661
  */
1662
1662
  'row-edit-cancel'(event: DataTableRowEditCancelEvent): void;
1663
1663
  /**
1664
- * Invoked when a stateful table saves the state.
1664
+ * Invoked when a stateful table restores the state.
1665
1665
  * @param {DataTableStateEvent} event - Custom state event.
1666
1666
  */
1667
1667
  'state-restore'(event: DataTableStateEvent<T>): void;
1668
1668
  /**
1669
- * Invoked when a stateful table restores the state.
1669
+ * Invoked when a stateful table saves the state.
1670
1670
  * @param {DataTableStateEvent} event - Custom state event.
1671
1671
  */
1672
1672
  'state-save'(event: DataTableStateEvent<T>): void;
@@ -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/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: true, configurable: true, writable: true }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof$c(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: true }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(true); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next; return next.value = t, next.done = true, next; }; return i.next = i; } } throw new TypeError(_typeof$c(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: true }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: true }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = false, next; } return next.done = true, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = true; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, true); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, true); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { 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 && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
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); }
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
  }))();
@@ -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, {
@@ -2833,7 +2832,7 @@ var script$5 = {
2833
2832
  _filters[this.field].constraints.push(newConstraint);
2834
2833
  this.$emit('constraint-add', {
2835
2834
  field: this.field,
2836
- constraing: newConstraint
2835
+ constraint: newConstraint
2837
2836
  });
2838
2837
  this.$emit('filter-change', _filters);
2839
2838
  if (!this.showApplyButton) {
@@ -2845,7 +2844,7 @@ var script$5 = {
2845
2844
  var removedConstraint = _filters[this.field].constraints.splice(index, 1);
2846
2845
  this.$emit('constraint-remove', {
2847
2846
  field: this.field,
2848
- constraing: removedConstraint
2847
+ constraint: removedConstraint
2849
2848
  });
2850
2849
  this.$emit('filter-change', _filters);
2851
2850
  if (!this.showApplyButton) {
@@ -3181,7 +3180,8 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3181
3180
  }), withKeys(withModifiers(function ($event) {
3182
3181
  return $options.onRowMatchModeChange(matchMode.value);
3183
3182
  }, ["prevent"]), ["enter"])],
3184
- tabindex: i === 0 ? '0' : null,
3183
+ tabindex: i === 0 ? '0' : null
3184
+ }, {
3185
3185
  ref_for: true
3186
3186
  }, $options.getColumnPT('filterConstraint', $options.ptmFilterConstraintOptions(matchMode))), toDisplayString(matchMode.label), 17, _hoisted_2$1);
3187
3187
  }), 128)), createElementVNode("li", mergeProps({
@@ -3218,7 +3218,8 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3218
3218
  }, $options.getColumnPT('filterRuleList')), [(openBlock(true), createElementBlock(Fragment, null, renderList($options.fieldConstraints, function (fieldConstraint, i) {
3219
3219
  return openBlock(), createElementBlock("div", mergeProps({
3220
3220
  key: i,
3221
- "class": _ctx.cx('filterRule'),
3221
+ "class": _ctx.cx('filterRule')
3222
+ }, {
3222
3223
  ref_for: true
3223
3224
  }, $options.getColumnPT('filterRule')), [$options.isShowMatchModes ? (openBlock(), createBlock(_component_Select, {
3224
3225
  key: 0,
@@ -3249,14 +3250,16 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
3249
3250
  return $options.removeConstraint(i);
3250
3251
  },
3251
3252
  label: $options.removeRuleButtonLabel,
3252
- unstyled: _ctx.unstyled,
3253
+ unstyled: _ctx.unstyled
3254
+ }, {
3253
3255
  ref_for: true
3254
3256
  }, $props.filterButtonProps.popover.removeRule, {
3255
3257
  pt: $options.getColumnPT('pcFilterRemoveRuleButton')
3256
3258
  }), {
3257
3259
  icon: withCtx(function (iconProps) {
3258
3260
  return [(openBlock(), createBlock(resolveDynamicComponent($props.filterRemoveIconTemplate || 'TrashIcon'), mergeProps({
3259
- "class": iconProps["class"],
3261
+ "class": iconProps["class"]
3262
+ }, {
3260
3263
  ref_for: true
3261
3264
  }, $options.getColumnPT('pcFilterRemoveRuleButton')['icon']), null, 16, ["class"]))];
3262
3265
  }),
@@ -4318,7 +4321,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4318
4321
  }, renderList($options.getHeaderRows(), function (row, i) {
4319
4322
  return openBlock(), createElementBlock("tr", mergeProps({
4320
4323
  key: i,
4321
- role: "row",
4324
+ role: "row"
4325
+ }, {
4322
4326
  ref_for: true
4323
4327
  }, _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
4328
  return openBlock(), createElementBlock(Fragment, {
@@ -4447,8 +4451,8 @@ var script = {
4447
4451
  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
4452
  provide: function provide() {
4449
4453
  return {
4450
- $columns: this.d_columns,
4451
- $columnGroups: this.d_columnGroups
4454
+ $columns: this.d_columns.get(),
4455
+ $columnGroups: this.d_columnGroups.get()
4452
4456
  };
4453
4457
  },
4454
4458
  data: function data() {
@@ -5250,7 +5254,7 @@ var script = {
5250
5254
  }
5251
5255
  this.$emit('update:selection', _selection);
5252
5256
  },
5253
- exportCSV: function exportCSV$1(options, data) {
5257
+ generateCSV: function generateCSV(options, data) {
5254
5258
  var _this6 = this;
5255
5259
  var csv = "\uFEFF";
5256
5260
  if (!data) {
@@ -5302,6 +5306,10 @@ var script = {
5302
5306
  csv += '"' + (this.columnProp(_column2, 'exportFooter') || this.columnProp(_column2, 'footer') || this.columnProp(_column2, 'field')) + '"';
5303
5307
  }
5304
5308
  }
5309
+ return csv;
5310
+ },
5311
+ exportCSV: function exportCSV$1(options, data) {
5312
+ var csv = this.generateCSV(options, data);
5305
5313
  exportCSV(csv, this.exportFilename);
5306
5314
  },
5307
5315
  resetPage: function resetPage() {
@@ -5945,10 +5953,10 @@ var script = {
5945
5953
  return cloned;
5946
5954
  },
5947
5955
  updateReorderableColumns: function updateReorderableColumns() {
5948
- var _this10 = this;
5956
+ var _this0 = this;
5949
5957
  var columnOrder = [];
5950
5958
  this.columns.forEach(function (col) {
5951
- return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
5959
+ return columnOrder.push(_this0.columnProp(col, 'columnKey') || _this0.columnProp(col, 'field'));
5952
5960
  });
5953
5961
  this.d_columnOrder = columnOrder;
5954
5962
  },
@@ -6011,16 +6019,16 @@ var script = {
6011
6019
  },
6012
6020
  headerColumnGroup: function headerColumnGroup() {
6013
6021
  var _this$columnGroups,
6014
- _this11 = this;
6022
+ _this1 = this;
6015
6023
  return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
6016
- return _this11.columnProp(group, 'type') === 'header';
6024
+ return _this1.columnProp(group, 'type') === 'header';
6017
6025
  });
6018
6026
  },
6019
6027
  footerColumnGroup: function footerColumnGroup() {
6020
6028
  var _this$columnGroups2,
6021
- _this12 = this;
6029
+ _this10 = this;
6022
6030
  return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
6023
- return _this12.columnProp(group, 'type') === 'footer';
6031
+ return _this10.columnProp(group, 'type') === 'footer';
6024
6032
  });
6025
6033
  },
6026
6034
  hasFilters: function hasFilters() {
@@ -6063,14 +6071,14 @@ var script = {
6063
6071
  return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
6064
6072
  },
6065
6073
  allRowsSelected: function allRowsSelected() {
6066
- var _this13 = this;
6074
+ var _this11 = this;
6067
6075
  if (this.selectAll !== null) {
6068
6076
  return this.selectAll;
6069
6077
  } else {
6070
6078
  var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
6071
6079
  return isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
6072
- return _this13.selection.some(function (s) {
6073
- return _this13.equals(s, v);
6080
+ return _this11.selection.some(function (s) {
6081
+ return _this11.equals(s, v);
6074
6082
  });
6075
6083
  });
6076
6084
  }