primevue 3.26.0 → 3.26.1
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/api/Api.d.ts +292 -284
- package/badge/Badge.d.ts +1 -1
- package/button/Button.d.ts +1 -1
- package/calendar/Calendar.vue +1 -1
- package/calendar/calendar.cjs.js +1 -1
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +1 -1
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/calendar.min.js +1 -1
- package/config/config.cjs.js +1 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +1 -1
- package/config/config.esm.min.js +1 -1
- package/config/config.js +1 -1
- package/config/config.min.js +1 -1
- package/core/core.js +5 -4
- package/core/core.min.js +3 -3
- package/datatable/DataTable.d.ts +2 -2
- package/datatable/DataTable.vue +3 -1
- package/datatable/TableBody.vue +17 -5
- package/datatable/datatable.cjs.js +18 -15
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +18 -15
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +18 -15
- package/datatable/datatable.min.js +1 -1
- package/dropdown/Dropdown.d.ts +1 -1
- package/dropdown/Dropdown.vue +3 -2
- package/dropdown/dropdown.cjs.js +3 -2
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +3 -2
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +3 -2
- package/dropdown/dropdown.min.js +1 -1
- package/image/Image.d.ts +25 -0
- package/image/Image.vue +24 -6
- package/image/image.cjs.js +51 -41
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +51 -41
- package/image/image.esm.min.js +1 -1
- package/image/image.js +51 -41
- package/image/image.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +1 -1
- package/listbox/Listbox.d.ts +1 -1
- package/message/Message.d.ts +1 -1
- package/multiselect/MultiSelect.d.ts +1 -1
- package/multiselect/MultiSelect.vue +3 -2
- package/multiselect/multiselect.cjs.js +3 -2
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +3 -2
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +3 -2
- package/multiselect/multiselect.min.js +1 -1
- package/package.json +1 -1
- package/splitbutton/SplitButton.d.ts +1 -1
- package/splitbutton/splitbutton.cjs.js +2 -2
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +2 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +2 -2
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.vue +2 -11
- package/splitter/splitter.cjs.js +1 -2
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +1 -2
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +1 -2
- package/splitter/splitter.min.js +1 -1
- package/tag/Tag.d.ts +1 -1
- package/toast/Toast.d.ts +1 -1
- package/treetable/TreeTable.d.ts +2 -2
- package/vetur-attributes.json +4 -0
- package/vetur-tags.json +2 -1
- package/virtualscroller/VirtualScroller.vue +1 -1
- package/virtualscroller/virtualscroller.cjs.js +1 -1
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +1 -1
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +1 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +37 -2
|
@@ -794,6 +794,10 @@ var script$7 = {
|
|
|
794
794
|
type: Array,
|
|
795
795
|
default: null
|
|
796
796
|
},
|
|
797
|
+
first: {
|
|
798
|
+
type: Number,
|
|
799
|
+
default: 0
|
|
800
|
+
},
|
|
797
801
|
dataKey: {
|
|
798
802
|
type: String,
|
|
799
803
|
default: null
|
|
@@ -925,12 +929,12 @@ var script$7 = {
|
|
|
925
929
|
}
|
|
926
930
|
},
|
|
927
931
|
getRowKey(rowData, index) {
|
|
928
|
-
return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey) : index;
|
|
932
|
+
return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey) : this.getRowIndex(index);
|
|
929
933
|
},
|
|
930
934
|
getRowIndex(index) {
|
|
931
935
|
const getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
932
936
|
|
|
933
|
-
return getItemOptions ? getItemOptions(index).index : index;
|
|
937
|
+
return getItemOptions ? getItemOptions(index).index : this.first + index;
|
|
934
938
|
},
|
|
935
939
|
getRowStyle(rowData) {
|
|
936
940
|
if (this.rowStyle) {
|
|
@@ -1208,6 +1212,7 @@ var script$7 = {
|
|
|
1208
1212
|
let hiddenColLength = 0;
|
|
1209
1213
|
|
|
1210
1214
|
this.columns.forEach((column) => {
|
|
1215
|
+
if (this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
|
|
1211
1216
|
if (this.columnProp(column, 'hidden')) hiddenColLength++;
|
|
1212
1217
|
});
|
|
1213
1218
|
|
|
@@ -1259,12 +1264,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1259
1264
|
}, [
|
|
1260
1265
|
(!$props.empty)
|
|
1261
1266
|
? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($props.value, (rowData, index) => {
|
|
1262
|
-
return (openBlock(), createElementBlock(Fragment,
|
|
1263
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader'
|
|
1264
|
-
}, [
|
|
1267
|
+
return (openBlock(), createElementBlock(Fragment, null, [
|
|
1265
1268
|
($props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)))
|
|
1266
1269
|
? (openBlock(), createElementBlock("tr", {
|
|
1267
|
-
key:
|
|
1270
|
+
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader',
|
|
1268
1271
|
class: "p-rowgroup-header",
|
|
1269
1272
|
style: normalizeStyle($options.rowGroupHeaderStyle),
|
|
1270
1273
|
role: "row"
|
|
@@ -1312,12 +1315,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1312
1315
|
onDrop: _cache[13] || (_cache[13] = $event => ($options.onRowDrop($event)))
|
|
1313
1316
|
}, [
|
|
1314
1317
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col, i) => {
|
|
1315
|
-
return (openBlock(), createElementBlock(Fragment,
|
|
1316
|
-
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
1317
|
-
}, [
|
|
1318
|
+
return (openBlock(), createElementBlock(Fragment, null, [
|
|
1318
1319
|
($options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)))
|
|
1319
1320
|
? (openBlock(), createBlock(_component_DTBodyCell, {
|
|
1320
|
-
key:
|
|
1321
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
|
|
1321
1322
|
rowData: rowData,
|
|
1322
1323
|
column: col,
|
|
1323
1324
|
rowIndex: $options.getRowIndex(index),
|
|
@@ -1346,7 +1347,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1346
1347
|
}, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "rowTogglerIcon", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "onEditingMetaChange"]))
|
|
1347
1348
|
: createCommentVNode("", true)
|
|
1348
1349
|
], 64))
|
|
1349
|
-
}),
|
|
1350
|
+
}), 256))
|
|
1350
1351
|
], 46, _hoisted_3$4))
|
|
1351
1352
|
: createCommentVNode("", true),
|
|
1352
1353
|
($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
|
|
@@ -1381,7 +1382,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1381
1382
|
]))
|
|
1382
1383
|
: createCommentVNode("", true)
|
|
1383
1384
|
], 64))
|
|
1384
|
-
}),
|
|
1385
|
+
}), 256))
|
|
1385
1386
|
: (openBlock(), createElementBlock("tr", _hoisted_7$1, [
|
|
1386
1387
|
createElementVNode("td", { colspan: $options.columnsLength }, [
|
|
1387
1388
|
($props.templates.empty)
|
|
@@ -5217,7 +5218,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5217
5218
|
createVNode(_component_DTVirtualScroller, mergeProps({ ref: "virtualScroller" }, $props.virtualScrollerOptions, {
|
|
5218
5219
|
items: $options.processedData,
|
|
5219
5220
|
columns: $options.columns,
|
|
5220
|
-
style:
|
|
5221
|
+
style: $props.scrollHeight !== 'flex' ? { height: $props.scrollHeight } : undefined,
|
|
5221
5222
|
scrollHeight: $props.scrollHeight !== 'flex' ? undefined : '100%',
|
|
5222
5223
|
disabled: $options.virtualScrollerDisabled,
|
|
5223
5224
|
loaderDisabled: "",
|
|
@@ -5269,6 +5270,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5269
5270
|
frozenRow: true,
|
|
5270
5271
|
class: "p-datatable-frozen-tbody",
|
|
5271
5272
|
columns: slotProps.columns,
|
|
5273
|
+
first: $data.d_first,
|
|
5272
5274
|
dataKey: $props.dataKey,
|
|
5273
5275
|
selection: $props.selection,
|
|
5274
5276
|
selectionKeys: $data.d_selectionKeys,
|
|
@@ -5316,7 +5318,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5316
5318
|
onRowEditCancel: _cache[25] || (_cache[25] = $event => ($options.onRowEditCancel($event))),
|
|
5317
5319
|
editingMeta: $data.d_editingMeta,
|
|
5318
5320
|
onEditingMetaChange: $options.onEditingMetaChange
|
|
5319
|
-
}, null, 8, ["value", "columns", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]))
|
|
5321
|
+
}, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]))
|
|
5320
5322
|
: createCommentVNode("", true),
|
|
5321
5323
|
createVNode(_component_DTTableBody, {
|
|
5322
5324
|
ref: "bodyRef",
|
|
@@ -5324,6 +5326,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5324
5326
|
class: normalizeClass(slotProps.styleClass),
|
|
5325
5327
|
columns: slotProps.columns,
|
|
5326
5328
|
empty: $options.empty,
|
|
5329
|
+
first: $data.d_first,
|
|
5327
5330
|
dataKey: $props.dataKey,
|
|
5328
5331
|
selection: $props.selection,
|
|
5329
5332
|
selectionKeys: $data.d_selectionKeys,
|
|
@@ -5372,7 +5375,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5372
5375
|
onRowEditCancel: _cache[42] || (_cache[42] = $event => ($options.onRowEditCancel($event))),
|
|
5373
5376
|
editingMeta: $data.d_editingMeta,
|
|
5374
5377
|
onEditingMetaChange: $options.onEditingMetaChange
|
|
5375
|
-
}, null, 8, ["value", "class", "columns", "empty", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]),
|
|
5378
|
+
}, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]),
|
|
5376
5379
|
($options.hasSpacerStyle(slotProps.spacerStyle))
|
|
5377
5380
|
? (openBlock(), createElementBlock("tbody", {
|
|
5378
5381
|
key: 1,
|