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.
- package/accordion/index.mjs +4 -2
- package/accordion/index.mjs.map +1 -1
- package/accordionheader/AccordionHeader.vue +1 -1
- package/accordionheader/index.d.ts +6 -1
- package/accordionheader/index.mjs +1 -1
- package/accordionheader/index.mjs.map +1 -1
- package/autocomplete/AutoComplete.vue +4 -1
- package/autocomplete/index.d.ts +4 -0
- package/autocomplete/index.mjs +38 -31
- 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/CascadeSelect.vue +3 -0
- package/cascadeselect/CascadeSelectSub.vue +1 -1
- package/cascadeselect/index.mjs +31 -23
- package/cascadeselect/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +4 -0
- package/colorpicker/index.mjs +4 -0
- package/colorpicker/index.mjs.map +1 -1
- package/confirmationoptions/index.d.ts +1 -1
- package/confirmdialog/index.d.ts +4 -0
- package/contextmenu/index.mjs +28 -20
- package/contextmenu/index.mjs.map +1 -1
- package/datatable/ColumnFilter.vue +2 -2
- package/datatable/DataTable.vue +7 -3
- package/datatable/index.d.ts +2 -2
- package/datatable/index.mjs +48 -40
- package/datatable/index.mjs.map +1 -1
- package/datatable/style/index.mjs +4 -4
- package/datatable/style/index.mjs.map +1 -1
- package/dataview/index.d.ts +5 -5
- package/datepicker/DatePicker.vue +10 -3
- package/datepicker/index.mjs +123 -84
- 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/FileUpload.vue +2 -3
- package/fileupload/index.mjs +20 -15
- 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/image/Image.vue +1 -1
- package/image/index.mjs +1 -1
- package/image/index.mjs.map +1 -1
- package/inputchips/index.mjs +2 -1
- package/inputchips/index.mjs.map +1 -1
- package/inputmask/InputMask.vue +3 -3
- package/inputmask/index.d.ts +3 -3
- package/inputmask/index.mjs +3 -3
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/InputNumber.vue +1 -1
- package/inputnumber/index.mjs +2 -2
- package/inputnumber/index.mjs.map +1 -1
- package/inputtext/index.d.ts +2 -1
- package/listbox/Listbox.vue +1 -0
- package/listbox/index.mjs +35 -30
- package/listbox/index.mjs.map +1 -1
- package/megamenu/index.d.ts +1 -1
- package/megamenu/index.mjs +33 -22
- package/megamenu/index.mjs.map +1 -1
- package/menu/Menu.vue +4 -4
- package/menu/index.d.ts +3 -12
- package/menu/index.mjs +10 -7
- package/menu/index.mjs.map +1 -1
- package/menubar/index.mjs +30 -23
- package/menubar/index.mjs.map +1 -1
- package/metergroup/index.d.ts +1 -1
- package/metergroup/index.mjs +10 -5
- package/metergroup/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +4 -1
- package/multiselect/index.d.ts +1 -1
- package/multiselect/index.mjs +59 -52
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/OrganizationChartNode.vue +1 -1
- package/organizationchart/index.mjs +6 -3
- package/organizationchart/index.mjs.map +1 -1
- package/organizationchart/style/index.mjs +11 -6
- package/organizationchart/style/index.mjs.map +1 -1
- package/package.json +6 -6
- package/paginator/index.mjs +10 -4
- package/paginator/index.mjs.map +1 -1
- package/panel/Panel.vue +2 -2
- package/panel/index.mjs +2 -2
- package/panel/index.mjs.map +1 -1
- package/panelmenu/index.mjs +45 -24
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +8 -3
- package/password/index.d.ts +1 -1
- package/password/index.mjs +18 -9
- package/password/index.mjs.map +1 -1
- package/rating/index.mjs +10 -5
- package/rating/index.mjs.map +1 -1
- package/select/Select.vue +21 -3
- package/select/index.mjs +66 -42
- package/select/index.mjs.map +1 -1
- package/selectbutton/index.d.ts +0 -24
- package/speeddial/index.mjs +6 -3
- package/speeddial/index.mjs.map +1 -1
- package/splitter/Splitter.vue +2 -2
- package/splitter/index.d.ts +1 -1
- package/splitter/index.mjs +5 -3
- package/splitter/index.mjs.map +1 -1
- package/splitter/style/index.mjs +1 -13
- package/splitter/style/index.mjs.map +1 -1
- package/step/Step.vue +2 -2
- package/step/index.mjs +2 -2
- package/step/index.mjs.map +1 -1
- package/steppanel/StepPanel.vue +2 -2
- package/steppanel/index.mjs +2 -2
- package/steppanel/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/textarea/index.d.ts +2 -1
- package/tieredmenu/index.mjs +30 -21
- 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/tooltip/index.mjs +25 -14
- package/tooltip/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +3 -0
- package/treeselect/index.mjs +5 -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 +12213 -1
- package/virtualscroller/VirtualScroller.vue +4 -1
- package/virtualscroller/index.mjs +21 -19
- package/virtualscroller/index.mjs.map +1 -1
- package/web-types.json +1 -1
package/datatable/DataTable.vue
CHANGED
|
@@ -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
|
-
|
|
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() {
|
package/datatable/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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;
|
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, {
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
5956
|
+
var _this0 = this;
|
|
5949
5957
|
var columnOrder = [];
|
|
5950
5958
|
this.columns.forEach(function (col) {
|
|
5951
|
-
return columnOrder.push(
|
|
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
|
-
|
|
6022
|
+
_this1 = this;
|
|
6015
6023
|
return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
|
|
6016
|
-
return
|
|
6024
|
+
return _this1.columnProp(group, 'type') === 'header';
|
|
6017
6025
|
});
|
|
6018
6026
|
},
|
|
6019
6027
|
footerColumnGroup: function footerColumnGroup() {
|
|
6020
6028
|
var _this$columnGroups2,
|
|
6021
|
-
|
|
6029
|
+
_this10 = this;
|
|
6022
6030
|
return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
|
|
6023
|
-
return
|
|
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
|
|
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
|
|
6073
|
-
return
|
|
6080
|
+
return _this11.selection.some(function (s) {
|
|
6081
|
+
return _this11.equals(s, v);
|
|
6074
6082
|
});
|
|
6075
6083
|
});
|
|
6076
6084
|
}
|