primevue 4.3.4 → 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.
- package/accordion/index.mjs +4 -2
- package/accordion/index.mjs.map +1 -1
- package/autocomplete/index.mjs +8 -4
- package/autocomplete/index.mjs.map +1 -1
- package/breadcrumb/index.mjs +4 -2
- package/breadcrumb/index.mjs.map +1 -1
- package/carousel/index.mjs +10 -5
- package/carousel/index.mjs.map +1 -1
- package/cascadeselect/index.mjs +10 -5
- package/cascadeselect/index.mjs.map +1 -1
- package/contextmenu/index.mjs +16 -8
- package/contextmenu/index.mjs.map +1 -1
- package/datatable/DataTable.vue +7 -3
- package/datatable/index.mjs +37 -29
- package/datatable/index.mjs.map +1 -1
- package/datepicker/index.mjs +54 -25
- package/datepicker/index.mjs.map +1 -1
- package/dock/index.mjs +8 -4
- package/dock/index.mjs.map +1 -1
- package/dynamicdialog/index.mjs +6 -3
- package/dynamicdialog/index.mjs.map +1 -1
- package/fileupload/index.mjs +14 -7
- package/fileupload/index.mjs.map +1 -1
- package/floatlabel/index.d.ts +1 -1
- package/galleria/index.mjs +8 -4
- package/galleria/index.mjs.map +1 -1
- package/inputchips/index.mjs +2 -1
- package/inputchips/index.mjs.map +1 -1
- package/listbox/index.mjs +8 -4
- package/listbox/index.mjs.map +1 -1
- package/megamenu/index.mjs +22 -11
- package/megamenu/index.mjs.map +1 -1
- package/menu/index.mjs +6 -3
- package/menu/index.mjs.map +1 -1
- package/menubar/index.mjs +14 -7
- package/menubar/index.mjs.map +1 -1
- package/metergroup/index.mjs +10 -5
- package/metergroup/index.mjs.map +1 -1
- package/multiselect/index.mjs +8 -4
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/index.mjs +6 -3
- package/organizationchart/index.mjs.map +1 -1
- package/package.json +4 -4
- package/paginator/index.mjs +10 -4
- package/paginator/index.mjs.map +1 -1
- package/panelmenu/index.mjs +42 -21
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +1 -0
- package/password/index.mjs +4 -1
- package/password/index.mjs.map +1 -1
- package/rating/index.mjs +10 -5
- package/rating/index.mjs.map +1 -1
- package/select/Select.vue +1 -2
- package/select/index.mjs +13 -7
- package/select/index.mjs.map +1 -1
- package/speeddial/index.mjs +6 -3
- package/speeddial/index.mjs.map +1 -1
- package/splitter/Splitter.vue +1 -1
- package/splitter/index.mjs +5 -2
- package/splitter/index.mjs.map +1 -1
- package/steps/index.mjs +8 -4
- package/steps/index.mjs.map +1 -1
- package/tabmenu/index.mjs +8 -2
- package/tabmenu/index.mjs.map +1 -1
- package/tabview/index.mjs +8 -4
- package/tabview/index.mjs.map +1 -1
- package/terminal/index.mjs +8 -4
- package/terminal/index.mjs.map +1 -1
- package/tieredmenu/index.mjs +18 -9
- package/tieredmenu/index.mjs.map +1 -1
- package/timeline/index.mjs +12 -6
- package/timeline/index.mjs.map +1 -1
- package/toast/ToastMessage.vue +1 -1
- package/toast/index.mjs +1 -1
- package/toast/index.mjs.map +1 -1
- package/toggleswitch/style/index.d.ts +1 -5
- package/treeselect/index.mjs +2 -1
- package/treeselect/index.mjs.map +1 -1
- package/treetable/index.mjs +2 -1
- package/treetable/index.mjs.map +1 -1
- package/umd/primevue.min.js +94 -94
- package/virtualscroller/VirtualScroller.vue +4 -1
- package/virtualscroller/index.mjs +3 -1
- package/virtualscroller/index.mjs.map +1 -1
- package/web-types.json +1 -1
package/datatable/index.mjs
CHANGED
|
@@ -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
|
|
536
|
-
function
|
|
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__*/
|
|
806
|
+
return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
807
807
|
var currentCell, targetCell;
|
|
808
|
-
return
|
|
809
|
-
while (1) switch (_context.
|
|
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.
|
|
814
|
+
_context.n = 2;
|
|
815
815
|
break;
|
|
816
816
|
}
|
|
817
|
-
_context.
|
|
817
|
+
_context.n = 1;
|
|
818
818
|
return _this4.$nextTick();
|
|
819
|
-
case
|
|
819
|
+
case 1:
|
|
820
820
|
invokeElementMethod(targetCell, 'click');
|
|
821
821
|
event.preventDefault();
|
|
822
|
-
case
|
|
823
|
-
|
|
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__*/
|
|
830
|
+
return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
832
831
|
var currentCell, targetCell;
|
|
833
|
-
return
|
|
834
|
-
while (1) switch (_context2.
|
|
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.
|
|
838
|
+
_context2.n = 2;
|
|
840
839
|
break;
|
|
841
840
|
}
|
|
842
|
-
_context2.
|
|
841
|
+
_context2.n = 1;
|
|
843
842
|
return _this5.$nextTick();
|
|
844
|
-
case
|
|
843
|
+
case 1:
|
|
845
844
|
invokeElementMethod(targetCell, 'click');
|
|
846
845
|
event.preventDefault();
|
|
847
|
-
case
|
|
848
|
-
|
|
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, {
|
|
@@ -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
|
-
|
|
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() {
|