@quandis/qbo4.messages 4.0.1-CI-20250107-205112 → 4.0.1-CI-20250107-233932
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/package.json +1 -1
- package/src/qbo-message.js +1 -1
- package/src/qbo-message.ts +2 -2
- package/wwwroot/js/esm/qbo4.messages.js +2 -2
- package/wwwroot/js/esm/qbo4.messages.min.js +1 -1
- package/wwwroot/js/esm/qbo4.messages.min.js.map +1 -1
- package/wwwroot/js/qbo4.messages.js +2 -2
- package/wwwroot/js/qbo4.messages.min.js +1 -1
- package/wwwroot/js/qbo4.messages.min.js.map +1 -1
package/package.json
CHANGED
package/src/qbo-message.js
CHANGED
|
@@ -72,7 +72,7 @@ export class QboMessage extends QboFetchMixin(QboTemplate) {
|
|
|
72
72
|
const json = getArray(component.jsonData);
|
|
73
73
|
const count = Number(json?.[0]?.RecordCount) || json?.length || 0;
|
|
74
74
|
const length = json?.length || 0;
|
|
75
|
-
const jsonPage = length > component.display ? json?.slice(component.start, component.display) : json;
|
|
75
|
+
const jsonPage = length > component.display ? json?.slice(component.start, component.start + component.display) : json;
|
|
76
76
|
return html `<slot class=${component.show ? '' : 'collapse'}>
|
|
77
77
|
<h3 class="title">
|
|
78
78
|
<button type="button" class="expandcollapse" @click="${(e) => component.show = !component.show}">
|
package/src/qbo-message.ts
CHANGED
|
@@ -92,7 +92,7 @@ export class QboMessage extends QboFetchMixin(QboTemplate) {
|
|
|
92
92
|
const json = getArray(component.jsonData);
|
|
93
93
|
const count: number = Number(json?.[0]?.RecordCount) || json?.length || 0;
|
|
94
94
|
const length = json?.length || 0;
|
|
95
|
-
const jsonPage = length > component.display ? json?.slice(component.start, component.display) : json;
|
|
95
|
+
const jsonPage = length > component.display ? json?.slice(component.start, component.start + component.display) : json;
|
|
96
96
|
|
|
97
97
|
return html`<slot class=${component.show ? '' : 'collapse'}>
|
|
98
98
|
<h3 class="title">
|
|
@@ -132,7 +132,7 @@ export class QboMessage extends QboFetchMixin(QboTemplate) {
|
|
|
132
132
|
</tbody>
|
|
133
133
|
<tfoot>
|
|
134
134
|
<tr>
|
|
135
|
-
<td colspan="6"
|
|
135
|
+
<td colspan="6">${json && json[0] ? html`<qbo-paginate count="${count}" @change=${(e) => component.paginate(e)}></qbo-paginate>` : html``}</td>
|
|
136
136
|
</tr>
|
|
137
137
|
</tfoot>
|
|
138
138
|
</table>
|