primevue 4.3.2 → 4.3.4
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/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 +60 -11
- package/autocomplete/index.d.ts +4 -0
- package/autocomplete/index.mjs +96 -59
- package/autocomplete/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +4 -1
- package/cascadeselect/CascadeSelectSub.vue +1 -1
- package/cascadeselect/index.mjs +22 -20
- package/cascadeselect/index.mjs.map +1 -1
- package/checkbox/Checkbox.vue +1 -1
- package/checkbox/index.mjs +2 -1
- package/checkbox/index.mjs.map +1 -1
- package/chip/BaseChip.vue +1 -1
- package/chip/index.d.ts +1 -1
- package/chip/index.mjs +1 -1
- package/chip/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +5 -1
- package/colorpicker/index.mjs +5 -1
- 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 +12 -12
- package/contextmenu/index.mjs.map +1 -1
- package/datatable/BodyCell.vue +1 -0
- package/datatable/ColumnFilter.vue +3 -3
- package/datatable/DataTable.vue +103 -44
- package/datatable/HeaderCheckbox.vue +2 -2
- package/datatable/RowCheckbox.vue +1 -1
- package/datatable/TableBody.vue +12 -1
- package/datatable/TableFooter.vue +9 -1
- package/datatable/TableHeader.vue +9 -2
- package/datatable/index.d.ts +37 -29
- package/datatable/index.mjs +175 -111
- package/datatable/index.mjs.map +1 -1
- package/datatable/style/index.mjs +4 -4
- package/datatable/style/index.mjs.map +1 -1
- package/dataview/DataView.vue +4 -0
- package/dataview/index.d.ts +63 -6
- package/dataview/index.mjs +6 -2
- package/dataview/index.mjs.map +1 -1
- package/datepicker/DatePicker.vue +379 -236
- package/datepicker/index.d.ts +156 -0
- package/datepicker/index.mjs +676 -406
- package/datepicker/index.mjs.map +1 -1
- package/drawer/Drawer.vue +30 -20
- package/drawer/index.d.ts +10 -0
- package/drawer/index.mjs +42 -25
- package/drawer/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +3 -4
- package/fileupload/index.mjs +8 -10
- package/fileupload/index.mjs.map +1 -1
- package/galleria/Galleria.vue +39 -3
- package/galleria/index.mjs +40 -3
- 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/inplace/Inplace.vue +1 -1
- package/inplace/index.mjs +3 -2
- package/inplace/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/BaseInputNumber.vue +4 -0
- package/inputnumber/InputNumber.vue +3 -10
- package/inputnumber/index.mjs +8 -9
- package/inputnumber/index.mjs.map +1 -1
- package/keyfilter/index.mjs +12 -19
- package/keyfilter/index.mjs.map +1 -1
- package/listbox/Listbox.vue +10 -2
- package/listbox/index.mjs +38 -29
- package/listbox/index.mjs.map +1 -1
- package/megamenu/index.d.ts +1 -1
- package/megamenu/index.mjs +11 -11
- package/megamenu/index.mjs.map +1 -1
- package/menu/Menu.vue +12 -6
- package/menu/Menuitem.vue +14 -4
- package/menu/index.d.ts +3 -12
- package/menu/index.mjs +40 -20
- package/menu/index.mjs.map +1 -1
- package/menubar/index.mjs +16 -16
- package/menubar/index.mjs.map +1 -1
- package/metergroup/MeterGroup.vue +9 -3
- package/metergroup/MeterGroupLabel.vue +10 -1
- package/metergroup/index.d.ts +1 -1
- package/metergroup/index.mjs +32 -7
- package/metergroup/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +40 -6
- package/multiselect/index.d.ts +1 -1
- package/multiselect/index.mjs +100 -68
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/OrganizationChartNode.vue +1 -1
- 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/Paginator.vue +2 -0
- package/paginator/index.d.ts +8 -0
- package/paginator/index.mjs +3 -1
- 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/PanelMenuList.vue +1 -1
- package/panelmenu/index.mjs +4 -4
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +28 -6
- package/password/index.mjs +44 -16
- package/password/index.mjs.map +1 -1
- package/popover/Popover.vue +1 -1
- package/popover/index.mjs +1 -2
- package/popover/index.mjs.map +1 -1
- package/progressbar/ProgressBar.vue +4 -4
- package/progressbar/index.mjs +8 -12
- package/progressbar/index.mjs.map +1 -1
- package/scrolltop/ScrollTop.vue +2 -2
- package/scrolltop/index.mjs +4 -2
- package/scrolltop/index.mjs.map +1 -1
- package/select/Select.vue +68 -13
- package/select/index.mjs +128 -77
- package/select/index.mjs.map +1 -1
- package/selectbutton/index.d.ts +0 -24
- package/splitter/Splitter.vue +10 -2
- package/splitter/index.d.ts +1 -1
- package/splitter/index.mjs +19 -7
- 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 +27 -9
- package/step/index.mjs +46 -16
- package/step/index.mjs.map +1 -1
- package/steppanel/StepPanel.vue +11 -5
- package/steppanel/index.d.ts +8 -0
- package/steppanel/index.mjs +25 -10
- package/steppanel/index.mjs.map +1 -1
- package/stepper/StepperSeparator.vue +5 -2
- package/tab/Tab.vue +4 -4
- package/tab/index.mjs +4 -4
- package/tab/index.mjs.map +1 -1
- package/tablist/TabList.vue +3 -0
- package/tablist/index.mjs +1 -0
- package/tablist/index.mjs.map +1 -1
- package/tabpanel/TabPanel.vue +2 -2
- package/tabpanel/index.mjs +2 -2
- package/tabpanel/index.mjs.map +1 -1
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/index.mjs +13 -14
- package/tieredmenu/index.mjs.map +1 -1
- package/tooltip/index.mjs +47 -30
- package/tooltip/index.mjs.map +1 -1
- package/tree/Tree.vue +14 -2
- package/tree/TreeNode.vue +2 -2
- package/tree/index.mjs +28 -10
- package/tree/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +4 -1
- package/treeselect/index.mjs +4 -2
- package/treeselect/index.mjs.map +1 -1
- package/umd/primevue.min.js +12213 -1
- package/virtualscroller/VirtualScroller.vue +13 -2
- package/virtualscroller/index.mjs +28 -18
- package/virtualscroller/index.mjs.map +1 -1
- package/virtualscroller/style/index.mjs +1 -1
- package/virtualscroller/style/index.mjs.map +1 -1
- package/web-types.json +1 -1
package/datatable/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cn } from '@primeuix/utils';
|
|
1
2
|
import { getNextElementSibling, getOuterWidth, getPreviousElementSibling, getAttribute, getFirstFocusableElement, invokeElementMethod, getOuterHeight, isTouchDevice, addStyle, absolutePosition, focus, getIndex, setAttribute, find, removeClass, getOffset, addClass, getHiddenElementOuterWidth, getHiddenElementOuterHeight, isRTL, exportCSV, findSingle, clearSelection, isClickable } from '@primeuix/utils/dom';
|
|
2
3
|
import { resolveFieldData, isNotEmpty, equals, isEmpty, reorderArray, findIndexInList, localeComparator, sort } from '@primeuix/utils/object';
|
|
3
4
|
import { FilterOperator, FilterMatchMode, FilterService } from '@primevue/core/api';
|
|
@@ -457,7 +458,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
457
458
|
}, null, 8, ["checked", "class"])) : !$props.rowCheckboxIconTemplate && slotProps.checked ? (openBlock(), createBlock(_component_CheckIcon, mergeProps({
|
|
458
459
|
key: 1,
|
|
459
460
|
"class": slotProps["class"]
|
|
460
|
-
}, $options.getColumnPT('pcRowCheckbox
|
|
461
|
+
}, $options.getColumnPT('pcRowCheckbox.icon')), null, 16, ["class"])) : createCommentVNode("", true)];
|
|
461
462
|
}),
|
|
462
463
|
_: 1
|
|
463
464
|
}, 8, ["modelValue", "disabled", "aria-label", "onChange", "unstyled", "pt"]);
|
|
@@ -532,7 +533,7 @@ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
532
533
|
script$b.render = render$b;
|
|
533
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); }
|
|
535
|
-
function _regeneratorRuntime() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/
|
|
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; }
|
|
536
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); }
|
|
537
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); }); }; }
|
|
538
539
|
var script$a = {
|
|
@@ -1046,8 +1047,8 @@ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
1046
1047
|
function _defineProperty$b(e, r, t) { return (r = _toPropertyKey$b(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
1047
1048
|
function _toPropertyKey$b(t) { var i = _toPrimitive$b(t, "string"); return "symbol" == _typeof$b(i) ? i : i + ""; }
|
|
1048
1049
|
function _toPrimitive$b(t, r) { if ("object" != _typeof$b(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$b(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1049
|
-
var _hoisted_1$
|
|
1050
|
-
var _hoisted_2$
|
|
1050
|
+
var _hoisted_1$9 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
|
|
1051
|
+
var _hoisted_2$3 = ["aria-expanded", "aria-controls", "aria-label"];
|
|
1051
1052
|
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1052
1053
|
var _component_DTRadioButton = resolveComponent("DTRadioButton");
|
|
1053
1054
|
var _component_DTCheckbox = resolveComponent("DTCheckbox");
|
|
@@ -1158,7 +1159,8 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1158
1159
|
"aria-label": $options.expandButtonAriaLabel,
|
|
1159
1160
|
onClick: _cache[2] || (_cache[2] = function () {
|
|
1160
1161
|
return $options.toggleRow && $options.toggleRow.apply($options, arguments);
|
|
1161
|
-
})
|
|
1162
|
+
}),
|
|
1163
|
+
"data-p-selected": "selected"
|
|
1162
1164
|
}, $options.getColumnPT('rowToggleButton'), {
|
|
1163
1165
|
"data-pc-group-section": "rowactionbutton"
|
|
1164
1166
|
}), [$props.column.children && $props.column.children.rowtoggleicon ? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.rowtoggleicon), {
|
|
@@ -1183,7 +1185,7 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1183
1185
|
}, null, 2)) : !$props.isRowExpanded && !$props.collapsedRowIcon ? (openBlock(), createBlock(_component_ChevronRightIcon, mergeProps({
|
|
1184
1186
|
key: 3,
|
|
1185
1187
|
"class": _ctx.cx('rowToggleIcon')
|
|
1186
|
-
}, $options.getColumnPT('rowToggleIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 64))], 16, _hoisted_2$
|
|
1188
|
+
}, $options.getColumnPT('rowToggleIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 64))], 16, _hoisted_2$3)), [[_directive_ripple]]) : $props.editMode === 'row' && $options.columnProp('rowEditor') ? (openBlock(), createElementBlock(Fragment, {
|
|
1187
1189
|
key: 6
|
|
1188
1190
|
}, [!$data.d_editing ? (openBlock(), createBlock(_component_Button, mergeProps({
|
|
1189
1191
|
key: 0,
|
|
@@ -1235,7 +1237,7 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1235
1237
|
_: 1
|
|
1236
1238
|
}, 16, ["class", "aria-label", "unstyled", "onClick", "pt"])) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock(Fragment, {
|
|
1237
1239
|
key: 7
|
|
1238
|
-
}, [createTextVNode(toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$
|
|
1240
|
+
}, [createTextVNode(toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$9));
|
|
1239
1241
|
}
|
|
1240
1242
|
|
|
1241
1243
|
script$a.render = render$a;
|
|
@@ -1740,8 +1742,8 @@ function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
1740
1742
|
function _defineProperty$9(e, r, t) { return (r = _toPropertyKey$9(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
1741
1743
|
function _toPropertyKey$9(t) { var i = _toPrimitive$9(t, "string"); return "symbol" == _typeof$9(i) ? i : i + ""; }
|
|
1742
1744
|
function _toPrimitive$9(t, r) { if ("object" != _typeof$9(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$9(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1743
|
-
var _hoisted_1$
|
|
1744
|
-
var _hoisted_2$
|
|
1745
|
+
var _hoisted_1$8 = ["colspan"];
|
|
1746
|
+
var _hoisted_2$2 = ["tabindex", "aria-selected", "data-p-index", "data-p-selectable-row", "data-p-selected", "data-p-selected-contextmenu"];
|
|
1745
1747
|
var _hoisted_3 = ["id"];
|
|
1746
1748
|
var _hoisted_4 = ["colspan"];
|
|
1747
1749
|
var _hoisted_5 = ["colspan"];
|
|
@@ -1786,7 +1788,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1786
1788
|
}, _ctx.ptm('rowToggleIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 64))], 16)) : createCommentVNode("", true), (openBlock(), createBlock(resolveDynamicComponent($props.templates['groupheader']), {
|
|
1787
1789
|
data: $props.rowData,
|
|
1788
1790
|
index: $options.rowIndex
|
|
1789
|
-
}, null, 8, ["data", "index"]))], 16, _hoisted_1$
|
|
1791
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_1$8)], 16)) : createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded : true) ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1790
1792
|
key: 1,
|
|
1791
1793
|
"class": $options.rowClasses,
|
|
1792
1794
|
style: $options.rowStyles,
|
|
@@ -1864,7 +1866,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1864
1866
|
unstyled: _ctx.unstyled,
|
|
1865
1867
|
pt: _ctx.pt
|
|
1866
1868
|
}, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "editButtonProps", "onRadioChange", "onCheckboxChange", "onRowToggle", "onCellEditInit", "onCellEditComplete", "onCellEditCancel", "onRowEditInit", "onRowEditSave", "onRowEditCancel", "onEditingMetaChange", "unstyled", "pt"])) : createCommentVNode("", true)], 64);
|
|
1867
|
-
}), 256))], 16, _hoisted_2$
|
|
1869
|
+
}), 256))], 16, _hoisted_2$2)) : createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $data.d_rowExpanded ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1868
1870
|
key: 2,
|
|
1869
1871
|
id: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1870
1872
|
"class": _ctx.cx('rowExpansion'),
|
|
@@ -1966,6 +1968,10 @@ var script$8 = {
|
|
|
1966
1968
|
type: String,
|
|
1967
1969
|
"default": null
|
|
1968
1970
|
},
|
|
1971
|
+
rowHover: {
|
|
1972
|
+
type: Boolean,
|
|
1973
|
+
"default": false
|
|
1974
|
+
},
|
|
1969
1975
|
contextMenu: {
|
|
1970
1976
|
type: Boolean,
|
|
1971
1977
|
"default": false
|
|
@@ -2084,6 +2090,12 @@ var script$8 = {
|
|
|
2084
2090
|
scrollable: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.scrollable
|
|
2085
2091
|
}
|
|
2086
2092
|
};
|
|
2093
|
+
},
|
|
2094
|
+
dataP: function dataP() {
|
|
2095
|
+
return cn({
|
|
2096
|
+
hoverable: this.rowHover || this.selectionMode,
|
|
2097
|
+
frozen: this.frozenRow
|
|
2098
|
+
});
|
|
2087
2099
|
}
|
|
2088
2100
|
},
|
|
2089
2101
|
components: {
|
|
@@ -2091,13 +2103,15 @@ var script$8 = {
|
|
|
2091
2103
|
}
|
|
2092
2104
|
};
|
|
2093
2105
|
|
|
2106
|
+
var _hoisted_1$7 = ["data-p"];
|
|
2094
2107
|
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2095
2108
|
var _component_DTBodyRow = resolveComponent("DTBodyRow");
|
|
2096
2109
|
return openBlock(), createElementBlock("tbody", mergeProps({
|
|
2097
2110
|
ref: $options.bodyRef,
|
|
2098
2111
|
"class": _ctx.cx('tbody'),
|
|
2099
2112
|
role: "rowgroup",
|
|
2100
|
-
style: $options.bodyContentStyle
|
|
2113
|
+
style: $options.bodyContentStyle,
|
|
2114
|
+
"data-p": $options.dataP
|
|
2101
2115
|
}, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (openBlock(true), createElementBlock(Fragment, {
|
|
2102
2116
|
key: 0
|
|
2103
2117
|
}, renderList($props.value, function (rowData, rowIndex) {
|
|
@@ -2214,7 +2228,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2214
2228
|
templates: $props.templates,
|
|
2215
2229
|
unstyled: _ctx.unstyled,
|
|
2216
2230
|
pt: _ctx.pt
|
|
2217
|
-
}, null, 8, ["empty", "columns", "templates", "unstyled", "pt"]))], 16);
|
|
2231
|
+
}, null, 8, ["empty", "columns", "templates", "unstyled", "pt"]))], 16, _hoisted_1$7);
|
|
2218
2232
|
}
|
|
2219
2233
|
|
|
2220
2234
|
script$8.render = render$8;
|
|
@@ -2313,7 +2327,7 @@ function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
2313
2327
|
function _defineProperty$8(e, r, t) { return (r = _toPropertyKey$8(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
2314
2328
|
function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : i + ""; }
|
|
2315
2329
|
function _toPrimitive$8(t, r) { if ("object" != _typeof$8(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$8(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2316
|
-
var _hoisted_1$
|
|
2330
|
+
var _hoisted_1$6 = ["colspan", "rowspan", "data-p-frozen-column"];
|
|
2317
2331
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2318
2332
|
return openBlock(), createElementBlock("td", mergeProps({
|
|
2319
2333
|
style: $options.containerStyle,
|
|
@@ -2329,7 +2343,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2329
2343
|
}, null, 8, ["column"])) : createCommentVNode("", true), $options.columnProp('footer') ? (openBlock(), createElementBlock("span", mergeProps({
|
|
2330
2344
|
key: 1,
|
|
2331
2345
|
"class": _ctx.cx('columnFooter')
|
|
2332
|
-
}, $options.getColumnPT('columnFooter')), toDisplayString($options.columnProp('footer')), 17)) : createCommentVNode("", true)], 16, _hoisted_1$
|
|
2346
|
+
}, $options.getColumnPT('columnFooter')), toDisplayString($options.columnProp('footer')), 17)) : createCommentVNode("", true)], 16, _hoisted_1$6);
|
|
2333
2347
|
}
|
|
2334
2348
|
|
|
2335
2349
|
script$7.render = render$7;
|
|
@@ -2467,7 +2481,9 @@ function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
2467
2481
|
function _defineProperty$7(e, r, t) { return (r = _toPropertyKey$7(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
2468
2482
|
function _toPropertyKey$7(t) { var i = _toPrimitive$7(t, "string"); return "symbol" == _typeof$7(i) ? i : i + ""; }
|
|
2469
2483
|
function _toPrimitive$7(t, r) { if ("object" != _typeof$7(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$7(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2484
|
+
var _hoisted_1$5 = ["data-p-scrollable"];
|
|
2470
2485
|
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2486
|
+
var _ctx$$parentInstance;
|
|
2471
2487
|
var _component_DTFooterCell = resolveComponent("DTFooterCell");
|
|
2472
2488
|
return $options.hasFooter ? (openBlock(), createElementBlock("tfoot", mergeProps({
|
|
2473
2489
|
key: 0,
|
|
@@ -2475,6 +2491,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2475
2491
|
style: _ctx.sx('tfoot'),
|
|
2476
2492
|
role: "rowgroup"
|
|
2477
2493
|
}, $props.columnGroup ? _objectSpread$7(_objectSpread$7({}, _ctx.ptm('tfoot', $options.ptmTFootOptions)), $options.getColumnGroupPT('root')) : _ctx.ptm('tfoot', $options.ptmTFootOptions), {
|
|
2494
|
+
"data-p-scrollable": (_ctx$$parentInstance = _ctx.$parentInstance) === null || _ctx$$parentInstance === void 0 || (_ctx$$parentInstance = _ctx$$parentInstance.$parentInstance) === null || _ctx$$parentInstance === void 0 ? void 0 : _ctx$$parentInstance.scrollable,
|
|
2478
2495
|
"data-pc-section": "tfoot"
|
|
2479
2496
|
}), [!$props.columnGroup ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
2480
2497
|
key: 0,
|
|
@@ -2504,7 +2521,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2504
2521
|
pt: _ctx.pt
|
|
2505
2522
|
}, null, 8, ["column", "index", "pt"])) : createCommentVNode("", true)], 64);
|
|
2506
2523
|
}), 128))], 16);
|
|
2507
|
-
}), 128))], 16)) : createCommentVNode("", true);
|
|
2524
|
+
}), 128))], 16, _hoisted_1$5)) : createCommentVNode("", true);
|
|
2508
2525
|
}
|
|
2509
2526
|
|
|
2510
2527
|
script$6.render = render$6;
|
|
@@ -2816,7 +2833,7 @@ var script$5 = {
|
|
|
2816
2833
|
_filters[this.field].constraints.push(newConstraint);
|
|
2817
2834
|
this.$emit('constraint-add', {
|
|
2818
2835
|
field: this.field,
|
|
2819
|
-
|
|
2836
|
+
constraint: newConstraint
|
|
2820
2837
|
});
|
|
2821
2838
|
this.$emit('filter-change', _filters);
|
|
2822
2839
|
if (!this.showApplyButton) {
|
|
@@ -2828,7 +2845,7 @@ var script$5 = {
|
|
|
2828
2845
|
var removedConstraint = _filters[this.field].constraints.splice(index, 1);
|
|
2829
2846
|
this.$emit('constraint-remove', {
|
|
2830
2847
|
field: this.field,
|
|
2831
|
-
|
|
2848
|
+
constraint: removedConstraint
|
|
2832
2849
|
});
|
|
2833
2850
|
this.$emit('filter-change', _filters);
|
|
2834
2851
|
if (!this.showApplyButton) {
|
|
@@ -2868,8 +2885,7 @@ var script$5 = {
|
|
|
2868
2885
|
ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);
|
|
2869
2886
|
addStyle(el, {
|
|
2870
2887
|
position: 'absolute',
|
|
2871
|
-
top: '0'
|
|
2872
|
-
left: '0'
|
|
2888
|
+
top: '0'
|
|
2873
2889
|
});
|
|
2874
2890
|
absolutePosition(this.overlay, this.$refs.icon.$el);
|
|
2875
2891
|
this.bindOutsideClickListener();
|
|
@@ -3066,8 +3082,8 @@ function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
3066
3082
|
function _defineProperty$5(e, r, t) { return (r = _toPropertyKey$5(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
3067
3083
|
function _toPropertyKey$5(t) { var i = _toPrimitive$5(t, "string"); return "symbol" == _typeof$5(i) ? i : i + ""; }
|
|
3068
3084
|
function _toPrimitive$5(t, r) { if ("object" != _typeof$5(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$5(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3069
|
-
var _hoisted_1$
|
|
3070
|
-
var _hoisted_2 = ["onClick", "onKeydown", "tabindex"];
|
|
3085
|
+
var _hoisted_1$4 = ["id", "aria-modal"];
|
|
3086
|
+
var _hoisted_2$1 = ["onClick", "onKeydown", "tabindex"];
|
|
3071
3087
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3072
3088
|
var _component_Button = resolveComponent("Button");
|
|
3073
3089
|
var _component_Select = resolveComponent("Select");
|
|
@@ -3167,7 +3183,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3167
3183
|
}, ["prevent"]), ["enter"])],
|
|
3168
3184
|
tabindex: i === 0 ? '0' : null,
|
|
3169
3185
|
ref_for: true
|
|
3170
|
-
}, $options.getColumnPT('filterConstraint', $options.ptmFilterConstraintOptions(matchMode))), toDisplayString(matchMode.label), 17, _hoisted_2);
|
|
3186
|
+
}, $options.getColumnPT('filterConstraint', $options.ptmFilterConstraintOptions(matchMode))), toDisplayString(matchMode.label), 17, _hoisted_2$1);
|
|
3171
3187
|
}), 128)), createElementVNode("li", mergeProps({
|
|
3172
3188
|
"class": _ctx.cx('filterConstraintSeparator')
|
|
3173
3189
|
}, $options.getColumnPT('filterConstraintSeparator')), null, 16), createElementVNode("li", mergeProps({
|
|
@@ -3304,7 +3320,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3304
3320
|
field: $props.field,
|
|
3305
3321
|
filterModel: $props.filters[$props.field],
|
|
3306
3322
|
filterCallback: $options.filterCallback
|
|
3307
|
-
}, null, 8, ["field", "filterModel", "filterCallback"]))], 16, _hoisted_1$
|
|
3323
|
+
}, null, 8, ["field", "filterModel", "filterCallback"]))], 16, _hoisted_1$4)), [[_directive_focustrap]]) : createCommentVNode("", true)];
|
|
3308
3324
|
}),
|
|
3309
3325
|
_: 1
|
|
3310
3326
|
}, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
|
|
@@ -3369,7 +3385,6 @@ var script$4 = {
|
|
|
3369
3385
|
};
|
|
3370
3386
|
|
|
3371
3387
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3372
|
-
var _component_CheckIcon = resolveComponent("CheckIcon");
|
|
3373
3388
|
var _component_Checkbox = resolveComponent("Checkbox");
|
|
3374
3389
|
return openBlock(), createBlock(_component_Checkbox, {
|
|
3375
3390
|
modelValue: $props.checked,
|
|
@@ -3379,19 +3394,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3379
3394
|
onChange: $options.onChange,
|
|
3380
3395
|
unstyled: _ctx.unstyled,
|
|
3381
3396
|
pt: $options.getColumnPT('pcHeaderCheckbox')
|
|
3382
|
-
},
|
|
3383
|
-
icon: withCtx(function (slotProps) {
|
|
3384
|
-
return [$props.headerCheckboxIconTemplate ? (openBlock(), createBlock(resolveDynamicComponent($props.headerCheckboxIconTemplate), {
|
|
3385
|
-
key: 0,
|
|
3386
|
-
checked: slotProps.checked,
|
|
3387
|
-
"class": normalizeClass(slotProps["class"])
|
|
3388
|
-
}, null, 8, ["checked", "class"])) : !$props.headerCheckboxIconTemplate && slotProps.checked ? (openBlock(), createBlock(_component_CheckIcon, mergeProps({
|
|
3389
|
-
key: 1,
|
|
3390
|
-
"class": slotProps["class"]
|
|
3391
|
-
}, $options.getColumnPT('pcHeaderCheckbox')['icon']), null, 16, ["class"])) : createCommentVNode("", true)];
|
|
3392
|
-
}),
|
|
3393
|
-
_: 1
|
|
3394
|
-
}, 8, ["modelValue", "disabled", "aria-label", "onChange", "unstyled", "pt"]);
|
|
3397
|
+
}, null, 8, ["modelValue", "disabled", "aria-label", "onChange", "unstyled", "pt"]);
|
|
3395
3398
|
}
|
|
3396
3399
|
|
|
3397
3400
|
script$4.render = render$4;
|
|
@@ -3529,7 +3532,7 @@ function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
3529
3532
|
function _defineProperty$4(e, r, t) { return (r = _toPropertyKey$4(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
3530
3533
|
function _toPropertyKey$4(t) { var i = _toPrimitive$4(t, "string"); return "symbol" == _typeof$4(i) ? i : i + ""; }
|
|
3531
3534
|
function _toPrimitive$4(t, r) { if ("object" != _typeof$4(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$4(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3532
|
-
var _hoisted_1$
|
|
3535
|
+
var _hoisted_1$3 = ["data-p-frozen-column"];
|
|
3533
3536
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3534
3537
|
var _component_DTHeaderCheckbox = resolveComponent("DTHeaderCheckbox");
|
|
3535
3538
|
var _component_DTColumnFilter = resolveComponent("DTColumnFilter");
|
|
@@ -3601,7 +3604,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3601
3604
|
column: $props.column,
|
|
3602
3605
|
unstyled: _ctx.unstyled,
|
|
3603
3606
|
pt: _ctx.pt
|
|
3604
|
-
}, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filterIconTemplate", "filterAddIconTemplate", "filterRemoveIconTemplate", "filterClearIconTemplate", "filters", "filtersStore", "filterInputProps", "filterButtonProps", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints", "column", "unstyled", "pt"])) : createCommentVNode("", true)], 16, _hoisted_1$
|
|
3607
|
+
}, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filterIconTemplate", "filterAddIconTemplate", "filterRemoveIconTemplate", "filterClearIconTemplate", "filters", "filtersStore", "filterInputProps", "filterButtonProps", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints", "column", "unstyled", "pt"])) : createCommentVNode("", true)], 16, _hoisted_1$3)) : createCommentVNode("", true);
|
|
3605
3608
|
}
|
|
3606
3609
|
|
|
3607
3610
|
script$3.render = render$3;
|
|
@@ -3886,7 +3889,7 @@ function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
3886
3889
|
function _defineProperty$3(e, r, t) { return (r = _toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
3887
3890
|
function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == _typeof$3(i) ? i : i + ""; }
|
|
3888
3891
|
function _toPrimitive$3(t, r) { if ("object" != _typeof$3(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$3(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3889
|
-
var _hoisted_1 = ["tabindex", "colspan", "rowspan", "aria-sort", "data-p-sortable-column", "data-p-resizable-column", "data-p-sorted", "data-p-filter-column", "data-p-frozen-column", "data-p-reorderable-column"];
|
|
3892
|
+
var _hoisted_1$2 = ["tabindex", "colspan", "rowspan", "aria-sort", "data-p-sortable-column", "data-p-resizable-column", "data-p-sorted", "data-p-filter-column", "data-p-frozen-column", "data-p-reorderable-column"];
|
|
3890
3893
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3891
3894
|
var _component_Badge = resolveComponent("Badge");
|
|
3892
3895
|
var _component_DTHeaderCheckbox = resolveComponent("DTHeaderCheckbox");
|
|
@@ -4014,7 +4017,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4014
4017
|
column: $props.column,
|
|
4015
4018
|
unstyled: _ctx.unstyled,
|
|
4016
4019
|
pt: _ctx.pt
|
|
4017
|
-
}, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filterIconTemplate", "filterAddIconTemplate", "filterRemoveIconTemplate", "filterClearIconTemplate", "filters", "filtersStore", "filterInputProps", "filterButtonProps", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints", "column", "unstyled", "pt"])) : createCommentVNode("", true)], 16)], 16, _hoisted_1);
|
|
4020
|
+
}, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filterIconTemplate", "filterAddIconTemplate", "filterRemoveIconTemplate", "filterClearIconTemplate", "filters", "filtersStore", "filterInputProps", "filterButtonProps", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints", "column", "unstyled", "pt"])) : createCommentVNode("", true)], 16)], 16, _hoisted_1$2);
|
|
4018
4021
|
}
|
|
4019
4022
|
|
|
4020
4023
|
script$2.render = render$2;
|
|
@@ -4224,7 +4227,9 @@ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
4224
4227
|
function _defineProperty$2(e, r, t) { return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
4225
4228
|
function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : i + ""; }
|
|
4226
4229
|
function _toPrimitive$2(t, r) { if ("object" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4230
|
+
var _hoisted_1$1 = ["data-p-scrollable"];
|
|
4227
4231
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4232
|
+
var _ctx$$parentInstance;
|
|
4228
4233
|
var _component_DTHeaderCell = resolveComponent("DTHeaderCell");
|
|
4229
4234
|
var _component_DTFilterHeaderCell = resolveComponent("DTFilterHeaderCell");
|
|
4230
4235
|
return openBlock(), createElementBlock("thead", mergeProps({
|
|
@@ -4232,6 +4237,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4232
4237
|
style: _ctx.sx('thead'),
|
|
4233
4238
|
role: "rowgroup"
|
|
4234
4239
|
}, $props.columnGroup ? _objectSpread$2(_objectSpread$2({}, _ctx.ptm('thead', $options.ptmTHeadOptions)), $options.getColumnGroupPT('root')) : _ctx.ptm('thead', $options.ptmTHeadOptions), {
|
|
4240
|
+
"data-p-scrollable": (_ctx$$parentInstance = _ctx.$parentInstance) === null || _ctx$$parentInstance === void 0 || (_ctx$$parentInstance = _ctx$$parentInstance.$parentInstance) === null || _ctx$$parentInstance === void 0 ? void 0 : _ctx$$parentInstance.scrollable,
|
|
4235
4241
|
"data-pc-section": "thead"
|
|
4236
4242
|
}), [!$props.columnGroup ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
4237
4243
|
key: 0,
|
|
@@ -4403,19 +4409,19 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4403
4409
|
onApplyClick: _cache[31] || (_cache[31] = function ($event) {
|
|
4404
4410
|
return _ctx.$emit('apply-click', $event);
|
|
4405
4411
|
}),
|
|
4406
|
-
|
|
4412
|
+
onCheckboxChange: _cache[32] || (_cache[32] = function ($event) {
|
|
4407
4413
|
return _ctx.$emit('checkbox-change', $event);
|
|
4408
4414
|
}),
|
|
4409
4415
|
unstyled: _ctx.unstyled,
|
|
4410
4416
|
pt: _ctx.pt
|
|
4411
4417
|
}, null, 8, ["column", "index", "allRowsSelected", "empty", "filters", "filtersStore", "filterInputProps", "filterButtonProps", "unstyled", "pt"])) : createCommentVNode("", true)], 64);
|
|
4412
|
-
}), 128))], 16)) : createCommentVNode("", true)], 16);
|
|
4418
|
+
}), 128))], 16)) : createCommentVNode("", true)], 16, _hoisted_1$1);
|
|
4413
4419
|
}
|
|
4414
4420
|
|
|
4415
4421
|
script$1.render = render$1;
|
|
4416
4422
|
|
|
4417
|
-
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "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$1(o); }
|
|
4418
4423
|
var _excluded = ["expanded"];
|
|
4424
|
+
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "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$1(o); }
|
|
4419
4425
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4420
4426
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4421
4427
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -5383,19 +5389,21 @@ var script = {
|
|
|
5383
5389
|
bindColumnResizeEvents: function bindColumnResizeEvents() {
|
|
5384
5390
|
var _this7 = this;
|
|
5385
5391
|
if (!this.documentColumnResizeListener) {
|
|
5386
|
-
this.documentColumnResizeListener =
|
|
5392
|
+
this.documentColumnResizeListener = function (event) {
|
|
5387
5393
|
if (_this7.columnResizing) {
|
|
5388
5394
|
_this7.onColumnResize(event);
|
|
5389
5395
|
}
|
|
5390
|
-
}
|
|
5396
|
+
};
|
|
5397
|
+
document.addEventListener('mousemove', this.documentColumnResizeListener);
|
|
5391
5398
|
}
|
|
5392
5399
|
if (!this.documentColumnResizeEndListener) {
|
|
5393
|
-
this.documentColumnResizeEndListener =
|
|
5400
|
+
this.documentColumnResizeEndListener = function () {
|
|
5394
5401
|
if (_this7.columnResizing) {
|
|
5395
5402
|
_this7.columnResizing = false;
|
|
5396
5403
|
_this7.onColumnResizeEnd();
|
|
5397
5404
|
}
|
|
5398
|
-
}
|
|
5405
|
+
};
|
|
5406
|
+
document.addEventListener('mouseup', this.documentColumnResizeEndListener);
|
|
5399
5407
|
}
|
|
5400
5408
|
},
|
|
5401
5409
|
unbindColumnResizeEvents: function unbindColumnResizeEvents() {
|
|
@@ -5694,7 +5702,8 @@ var script = {
|
|
|
5694
5702
|
state.rows = this.d_rows;
|
|
5695
5703
|
}
|
|
5696
5704
|
if (this.d_sortField) {
|
|
5697
|
-
|
|
5705
|
+
// Functions can't be serialized, so don't attempt to save them
|
|
5706
|
+
if (typeof this.d_sortField !== 'function') state.sortField = this.d_sortField;
|
|
5698
5707
|
state.sortOrder = this.d_sortOrder;
|
|
5699
5708
|
}
|
|
5700
5709
|
if (this.d_multiSortMeta) {
|
|
@@ -5734,41 +5743,78 @@ var script = {
|
|
|
5734
5743
|
}
|
|
5735
5744
|
return value;
|
|
5736
5745
|
};
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
if (
|
|
5748
|
-
this.
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
this.$emit('update:filters', restoredState.filters);
|
|
5752
|
-
}
|
|
5753
|
-
if (this.resizableColumns) {
|
|
5754
|
-
this.columnWidthsState = restoredState.columnWidths;
|
|
5755
|
-
this.tableWidthState = restoredState.tableWidth;
|
|
5746
|
+
var parsedState;
|
|
5747
|
+
try {
|
|
5748
|
+
parsedState = JSON.parse(stateString, reviver);
|
|
5749
|
+
} catch (error) {}
|
|
5750
|
+
if (!parsedState || _typeof$1(parsedState) !== 'object') {
|
|
5751
|
+
storage.removeItem(this.stateKey);
|
|
5752
|
+
return;
|
|
5753
|
+
}
|
|
5754
|
+
var restoredState = {};
|
|
5755
|
+
if (this.paginator) {
|
|
5756
|
+
if (typeof parsedState.first === 'number') {
|
|
5757
|
+
this.d_first = parsedState.first;
|
|
5758
|
+
this.$emit('update:first', this.d_first);
|
|
5759
|
+
restoredState.first = this.d_first;
|
|
5756
5760
|
}
|
|
5757
|
-
if (
|
|
5758
|
-
this.
|
|
5761
|
+
if (typeof parsedState.rows === 'number') {
|
|
5762
|
+
this.d_rows = parsedState.rows;
|
|
5763
|
+
this.$emit('update:rows', this.d_rows);
|
|
5764
|
+
restoredState.rows = this.d_rows;
|
|
5759
5765
|
}
|
|
5760
|
-
|
|
5761
|
-
|
|
5766
|
+
}
|
|
5767
|
+
if (typeof parsedState.sortField === 'string') {
|
|
5768
|
+
this.d_sortField = parsedState.sortField;
|
|
5769
|
+
this.$emit('update:sortField', this.d_sortField);
|
|
5770
|
+
restoredState.sortField = this.d_sortField;
|
|
5771
|
+
}
|
|
5772
|
+
if (typeof parsedState.sortOrder === 'number') {
|
|
5773
|
+
this.d_sortOrder = parsedState.sortOrder;
|
|
5774
|
+
this.$emit('update:sortOrder', this.d_sortOrder);
|
|
5775
|
+
restoredState.sortOrder = this.d_sortOrder;
|
|
5776
|
+
}
|
|
5777
|
+
if (Array.isArray(parsedState.multiSortMeta)) {
|
|
5778
|
+
this.d_multiSortMeta = parsedState.multiSortMeta;
|
|
5779
|
+
this.$emit('update:multiSortMeta', this.d_multiSortMeta);
|
|
5780
|
+
restoredState.multiSortMeta = this.d_multiSortMeta;
|
|
5781
|
+
}
|
|
5782
|
+
if (this.hasFilters && _typeof$1(parsedState.filters) === 'object' && parsedState.filters !== null) {
|
|
5783
|
+
this.d_filters = this.cloneFilters(parsedState.filters);
|
|
5784
|
+
this.$emit('update:filters', this.d_filters);
|
|
5785
|
+
restoredState.filters = this.d_filters;
|
|
5786
|
+
}
|
|
5787
|
+
if (this.resizableColumns) {
|
|
5788
|
+
if (typeof parsedState.columnWidths === 'string') {
|
|
5789
|
+
this.columnWidthsState = parsedState.columnWidths;
|
|
5790
|
+
restoredState.columnWidths = this.columnWidthsState;
|
|
5762
5791
|
}
|
|
5763
|
-
if (
|
|
5764
|
-
this
|
|
5792
|
+
if (typeof parsedState.tableWidth === 'string') {
|
|
5793
|
+
this.tableWidthState = parsedState.tableWidth;
|
|
5794
|
+
restoredState.tableWidth = this.tableWidthState;
|
|
5765
5795
|
}
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5796
|
+
}
|
|
5797
|
+
if (this.reorderableColumns && Array.isArray(parsedState.columnOrder)) {
|
|
5798
|
+
this.d_columnOrder = parsedState.columnOrder;
|
|
5799
|
+
restoredState.columnOrder = this.d_columnOrder;
|
|
5800
|
+
}
|
|
5801
|
+
if (_typeof$1(parsedState.expandedRows) === 'object' && parsedState.expandedRows !== null) {
|
|
5802
|
+
this.$emit('update:expandedRows', parsedState.expandedRows);
|
|
5803
|
+
restoredState.expandedRows = parsedState.expandedRows;
|
|
5804
|
+
}
|
|
5805
|
+
if (Array.isArray(parsedState.expandedRowGroups)) {
|
|
5806
|
+
this.$emit('update:expandedRowGroups', parsedState.expandedRowGroups);
|
|
5807
|
+
restoredState.expandedRowGroups = parsedState.expandedRowGroups;
|
|
5808
|
+
}
|
|
5809
|
+
if (_typeof$1(parsedState.selection) === 'object' && parsedState.selection !== null) {
|
|
5810
|
+
if (_typeof$1(parsedState.selectionKeys) === 'object' && parsedState.selectionKeys !== null) {
|
|
5811
|
+
this.d_selectionKeys = parsedState.selectionKeys;
|
|
5812
|
+
restoredState.selectionKeys = this.d_selectionKeys;
|
|
5769
5813
|
}
|
|
5770
|
-
this.$emit('
|
|
5814
|
+
this.$emit('update:selection', parsedState.selection);
|
|
5815
|
+
restoredState.selection = parsedState.selection;
|
|
5771
5816
|
}
|
|
5817
|
+
this.$emit('state-restore', restoredState);
|
|
5772
5818
|
},
|
|
5773
5819
|
saveColumnWidths: function saveColumnWidths(state) {
|
|
5774
5820
|
var widths = [];
|
|
@@ -5881,10 +5927,10 @@ var script = {
|
|
|
5881
5927
|
this.$emit('filter', this.createLazyLoadEvent());
|
|
5882
5928
|
}
|
|
5883
5929
|
},
|
|
5884
|
-
cloneFilters: function cloneFilters() {
|
|
5930
|
+
cloneFilters: function cloneFilters(filters) {
|
|
5885
5931
|
var cloned = {};
|
|
5886
|
-
if (
|
|
5887
|
-
Object.entries(
|
|
5932
|
+
if (filters) {
|
|
5933
|
+
Object.entries(filters).forEach(function (_ref3) {
|
|
5888
5934
|
var _ref4 = _slicedToArray(_ref3, 2),
|
|
5889
5935
|
prop = _ref4[0],
|
|
5890
5936
|
value = _ref4[1];
|
|
@@ -5899,10 +5945,10 @@ var script = {
|
|
|
5899
5945
|
return cloned;
|
|
5900
5946
|
},
|
|
5901
5947
|
updateReorderableColumns: function updateReorderableColumns() {
|
|
5902
|
-
var
|
|
5948
|
+
var _this0 = this;
|
|
5903
5949
|
var columnOrder = [];
|
|
5904
5950
|
this.columns.forEach(function (col) {
|
|
5905
|
-
return columnOrder.push(
|
|
5951
|
+
return columnOrder.push(_this0.columnProp(col, 'columnKey') || _this0.columnProp(col, 'field'));
|
|
5906
5952
|
});
|
|
5907
5953
|
this.d_columnOrder = columnOrder;
|
|
5908
5954
|
},
|
|
@@ -5937,7 +5983,7 @@ var script = {
|
|
|
5937
5983
|
computed: {
|
|
5938
5984
|
columns: function columns() {
|
|
5939
5985
|
var cols = this.d_columns.get(this);
|
|
5940
|
-
if (this.reorderableColumns && this.d_columnOrder) {
|
|
5986
|
+
if (cols && this.reorderableColumns && this.d_columnOrder) {
|
|
5941
5987
|
var orderedColumns = [];
|
|
5942
5988
|
var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
|
|
5943
5989
|
_step5;
|
|
@@ -5965,16 +6011,16 @@ var script = {
|
|
|
5965
6011
|
},
|
|
5966
6012
|
headerColumnGroup: function headerColumnGroup() {
|
|
5967
6013
|
var _this$columnGroups,
|
|
5968
|
-
|
|
6014
|
+
_this1 = this;
|
|
5969
6015
|
return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
|
|
5970
|
-
return
|
|
6016
|
+
return _this1.columnProp(group, 'type') === 'header';
|
|
5971
6017
|
});
|
|
5972
6018
|
},
|
|
5973
6019
|
footerColumnGroup: function footerColumnGroup() {
|
|
5974
6020
|
var _this$columnGroups2,
|
|
5975
|
-
|
|
6021
|
+
_this10 = this;
|
|
5976
6022
|
return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
|
|
5977
|
-
return
|
|
6023
|
+
return _this10.columnProp(group, 'type') === 'footer';
|
|
5978
6024
|
});
|
|
5979
6025
|
},
|
|
5980
6026
|
hasFilters: function hasFilters() {
|
|
@@ -6017,14 +6063,14 @@ var script = {
|
|
|
6017
6063
|
return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
|
|
6018
6064
|
},
|
|
6019
6065
|
allRowsSelected: function allRowsSelected() {
|
|
6020
|
-
var
|
|
6066
|
+
var _this11 = this;
|
|
6021
6067
|
if (this.selectAll !== null) {
|
|
6022
6068
|
return this.selectAll;
|
|
6023
6069
|
} else {
|
|
6024
6070
|
var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
|
|
6025
6071
|
return isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
|
|
6026
|
-
return
|
|
6027
|
-
return
|
|
6072
|
+
return _this11.selection.some(function (s) {
|
|
6073
|
+
return _this11.equals(s, v);
|
|
6028
6074
|
});
|
|
6029
6075
|
});
|
|
6030
6076
|
}
|
|
@@ -6089,6 +6135,12 @@ var script = {
|
|
|
6089
6135
|
},
|
|
6090
6136
|
virtualScrollerDisabled: function virtualScrollerDisabled() {
|
|
6091
6137
|
return isEmpty(this.virtualScrollerOptions) || !this.scrollable;
|
|
6138
|
+
},
|
|
6139
|
+
dataP: function dataP() {
|
|
6140
|
+
return cn({
|
|
6141
|
+
scrollable: this.scrollable,
|
|
6142
|
+
'flex-scrollable': this.scrollable && this.scrollHeight === 'flex'
|
|
6143
|
+
});
|
|
6092
6144
|
}
|
|
6093
6145
|
},
|
|
6094
6146
|
components: {
|
|
@@ -6109,6 +6161,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6109
6161
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
6110
6162
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6111
6163
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6164
|
+
var _hoisted_1 = ["data-p"];
|
|
6165
|
+
var _hoisted_2 = ["data-p"];
|
|
6112
6166
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6113
6167
|
var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
|
|
6114
6168
|
var _component_DTPaginator = resolveComponent("DTPaginator");
|
|
@@ -6118,7 +6172,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6118
6172
|
var _component_DTVirtualScroller = resolveComponent("DTVirtualScroller");
|
|
6119
6173
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
6120
6174
|
"class": _ctx.cx('root'),
|
|
6121
|
-
"data-scrollselectors": ".p-datatable-wrapper"
|
|
6175
|
+
"data-scrollselectors": ".p-datatable-wrapper",
|
|
6176
|
+
"data-p": $options.dataP
|
|
6122
6177
|
}, _ctx.ptmi('root')), [renderSlot(_ctx.$slots, "default"), _ctx.loading ? (openBlock(), createElementBlock("div", mergeProps({
|
|
6123
6178
|
key: 0,
|
|
6124
6179
|
"class": _ctx.cx('mask')
|
|
@@ -6156,24 +6211,27 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6156
6211
|
}),
|
|
6157
6212
|
alwaysShow: _ctx.alwaysShowPaginator,
|
|
6158
6213
|
unstyled: _ctx.unstyled,
|
|
6214
|
+
"data-p-top": true,
|
|
6159
6215
|
pt: _ctx.ptm('pcPaginator')
|
|
6160
6216
|
}, createSlots({
|
|
6161
6217
|
_: 2
|
|
6162
6218
|
}, [_ctx.$slots.paginatorcontainer ? {
|
|
6163
6219
|
name: "container",
|
|
6164
|
-
fn: withCtx(function () {
|
|
6220
|
+
fn: withCtx(function (slotProps) {
|
|
6165
6221
|
return [renderSlot(_ctx.$slots, "paginatorcontainer", {
|
|
6166
|
-
first:
|
|
6167
|
-
last:
|
|
6168
|
-
rows:
|
|
6169
|
-
page:
|
|
6170
|
-
pageCount:
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6222
|
+
first: slotProps.first,
|
|
6223
|
+
last: slotProps.last,
|
|
6224
|
+
rows: slotProps.rows,
|
|
6225
|
+
page: slotProps.page,
|
|
6226
|
+
pageCount: slotProps.pageCount,
|
|
6227
|
+
pageLinks: slotProps.pageLinks,
|
|
6228
|
+
totalRecords: slotProps.totalRecords,
|
|
6229
|
+
firstPageCallback: slotProps.firstPageCallback,
|
|
6230
|
+
lastPageCallback: slotProps.lastPageCallback,
|
|
6231
|
+
prevPageCallback: slotProps.prevPageCallback,
|
|
6232
|
+
nextPageCallback: slotProps.nextPageCallback,
|
|
6233
|
+
rowChangeCallback: slotProps.rowChangeCallback,
|
|
6234
|
+
changePageCallback: slotProps.changePageCallback
|
|
6177
6235
|
})];
|
|
6178
6236
|
}),
|
|
6179
6237
|
key: "0"
|
|
@@ -6241,7 +6299,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6241
6299
|
"class": _ctx.cx('tableContainer'),
|
|
6242
6300
|
style: [_ctx.sx('tableContainer'), {
|
|
6243
6301
|
maxHeight: $options.virtualScrollerDisabled ? _ctx.scrollHeight : ''
|
|
6244
|
-
}]
|
|
6302
|
+
}],
|
|
6303
|
+
"data-p": $options.dataP
|
|
6245
6304
|
}, _ctx.ptm('tableContainer')), [createVNode(_component_DTVirtualScroller, mergeProps({
|
|
6246
6305
|
ref: "virtualScroller"
|
|
6247
6306
|
}, _ctx.virtualScrollerOptions, {
|
|
@@ -6324,6 +6383,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6324
6383
|
selection: _ctx.selection,
|
|
6325
6384
|
selectionKeys: $data.d_selectionKeys,
|
|
6326
6385
|
selectionMode: _ctx.selectionMode,
|
|
6386
|
+
rowHover: _ctx.rowHover,
|
|
6327
6387
|
contextMenu: _ctx.contextMenu,
|
|
6328
6388
|
contextMenuSelection: _ctx.contextMenuSelection,
|
|
6329
6389
|
rowGroupMode: _ctx.rowGroupMode,
|
|
@@ -6402,7 +6462,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6402
6462
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
6403
6463
|
unstyled: _ctx.unstyled,
|
|
6404
6464
|
pt: _ctx.pt
|
|
6405
|
-
}, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "editButtonProps", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"])) : createCommentVNode("", true), createVNode(_component_DTTableBody, {
|
|
6465
|
+
}, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "rowHover", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "editButtonProps", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"])) : createCommentVNode("", true), createVNode(_component_DTTableBody, {
|
|
6406
6466
|
ref: "bodyRef",
|
|
6407
6467
|
value: $options.dataToRender(slotProps.rows),
|
|
6408
6468
|
"class": normalizeClass(slotProps.styleClass),
|
|
@@ -6413,6 +6473,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6413
6473
|
selection: _ctx.selection,
|
|
6414
6474
|
selectionKeys: $data.d_selectionKeys,
|
|
6415
6475
|
selectionMode: _ctx.selectionMode,
|
|
6476
|
+
rowHover: _ctx.rowHover,
|
|
6416
6477
|
contextMenu: _ctx.contextMenu,
|
|
6417
6478
|
contextMenuSelection: _ctx.contextMenuSelection,
|
|
6418
6479
|
rowGroupMode: _ctx.rowGroupMode,
|
|
@@ -6494,7 +6555,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6494
6555
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
6495
6556
|
unstyled: _ctx.unstyled,
|
|
6496
6557
|
pt: _ctx.pt
|
|
6497
|
-
}, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "editButtonProps", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"]), $options.hasSpacerStyle(slotProps.spacerStyle) ? (openBlock(), createElementBlock("tbody", mergeProps({
|
|
6558
|
+
}, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "rowHover", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "editButtonProps", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"]), $options.hasSpacerStyle(slotProps.spacerStyle) ? (openBlock(), createElementBlock("tbody", mergeProps({
|
|
6498
6559
|
key: 2,
|
|
6499
6560
|
"class": _ctx.cx('virtualScrollerSpacer'),
|
|
6500
6561
|
style: {
|
|
@@ -6507,7 +6568,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6507
6568
|
}, null, 8, ["columnGroup", "columns", "pt"])], 16)];
|
|
6508
6569
|
}),
|
|
6509
6570
|
_: 1
|
|
6510
|
-
}, 16, ["items", "columns", "style", "scrollHeight", "disabled", "pt"])], 16), $options.paginatorBottom ? (openBlock(), createBlock(_component_DTPaginator, {
|
|
6571
|
+
}, 16, ["items", "columns", "style", "scrollHeight", "disabled", "pt"])], 16, _hoisted_2), $options.paginatorBottom ? (openBlock(), createBlock(_component_DTPaginator, {
|
|
6511
6572
|
key: 3,
|
|
6512
6573
|
rows: $data.d_rows,
|
|
6513
6574
|
first: $data.d_first,
|
|
@@ -6524,6 +6585,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6524
6585
|
}),
|
|
6525
6586
|
alwaysShow: _ctx.alwaysShowPaginator,
|
|
6526
6587
|
unstyled: _ctx.unstyled,
|
|
6588
|
+
"data-p-bottom": true,
|
|
6527
6589
|
pt: _ctx.ptm('pcPaginator')
|
|
6528
6590
|
}, createSlots({
|
|
6529
6591
|
_: 2
|
|
@@ -6536,12 +6598,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6536
6598
|
rows: slotProps.rows,
|
|
6537
6599
|
page: slotProps.page,
|
|
6538
6600
|
pageCount: slotProps.pageCount,
|
|
6601
|
+
pageLinks: slotProps.pageLinks,
|
|
6539
6602
|
totalRecords: slotProps.totalRecords,
|
|
6540
6603
|
firstPageCallback: slotProps.firstPageCallback,
|
|
6541
6604
|
lastPageCallback: slotProps.lastPageCallback,
|
|
6542
6605
|
prevPageCallback: slotProps.prevPageCallback,
|
|
6543
6606
|
nextPageCallback: slotProps.nextPageCallback,
|
|
6544
|
-
rowChangeCallback: slotProps.rowChangeCallback
|
|
6607
|
+
rowChangeCallback: slotProps.rowChangeCallback,
|
|
6608
|
+
changePageCallback: slotProps.changePageCallback
|
|
6545
6609
|
})];
|
|
6546
6610
|
}),
|
|
6547
6611
|
key: "0"
|
|
@@ -6630,7 +6694,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6630
6694
|
"position": "absolute",
|
|
6631
6695
|
"display": "none"
|
|
6632
6696
|
}
|
|
6633
|
-
}, _ctx.ptm('rowReorderIndicatorDown')), [(openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.rowreorderindicatordownicon || _ctx.$slots.reorderindicatordownicon || 'ArrowUpIcon')))], 16)) : createCommentVNode("", true)], 16);
|
|
6697
|
+
}, _ctx.ptm('rowReorderIndicatorDown')), [(openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.rowreorderindicatordownicon || _ctx.$slots.reorderindicatordownicon || 'ArrowUpIcon')))], 16)) : createCommentVNode("", true)], 16, _hoisted_1);
|
|
6634
6698
|
}
|
|
6635
6699
|
|
|
6636
6700
|
script.render = render;
|