@quandis/qbo4.messages 4.0.1-CI-20250106-225412 → 4.0.1-CI-20250107-004232
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 +2 -2
- package/src/qbo-message.ts +2 -2
- package/wwwroot/js/esm/qbo4.messages.js +5 -3
- package/wwwroot/js/esm/qbo4.messages.min.js +3 -3
- package/wwwroot/js/esm/qbo4.messages.min.js.map +1 -1
- package/wwwroot/js/qbo4.messages.js +5 -3
- package/wwwroot/js/qbo4.messages.min.js +3 -3
- package/wwwroot/js/qbo4.messages.min.js.map +1 -1
package/package.json
CHANGED
package/src/qbo-message.js
CHANGED
|
@@ -62,7 +62,7 @@ export class QboMessage extends QboFetchMixin(QboTemplate) {
|
|
|
62
62
|
}
|
|
63
63
|
search(component) {
|
|
64
64
|
const json = getArray(component.jsonData);
|
|
65
|
-
const count = Number(json?.[0]?.RecordCount) || 25;
|
|
65
|
+
const count = Number(json?.[0]?.RecordCount) || json?.length || 25;
|
|
66
66
|
const sorted = json ? json
|
|
67
67
|
.filter(item => item?.UpdatedDate)
|
|
68
68
|
.sort((a, b) => new Date(b.UpdatedDate).getTime() - new Date(a.UpdatedDate).getTime())
|
|
@@ -105,7 +105,7 @@ export class QboMessage extends QboFetchMixin(QboTemplate) {
|
|
|
105
105
|
</tbody>
|
|
106
106
|
<tfoot>
|
|
107
107
|
<tr>
|
|
108
|
-
<td colspan="6" class="progress-wrapper">${json && json[0] ? html `<qbo-paginate count="${
|
|
108
|
+
<td colspan="6" class="progress-wrapper">${json && json[0] ? html `<qbo-paginate count="${count}" @change=${(e) => component.paginate(e)}></qbo-paginate>` : html ``}</td>
|
|
109
109
|
</tr>
|
|
110
110
|
</tfoot>
|
|
111
111
|
</table>
|
package/src/qbo-message.ts
CHANGED
|
@@ -76,7 +76,7 @@ export class QboMessage extends QboFetchMixin(QboTemplate) {
|
|
|
76
76
|
@template('search')
|
|
77
77
|
search(component: QboMessage) {
|
|
78
78
|
const json = getArray(component.jsonData);
|
|
79
|
-
const count: number = Number(json?.[0]?.RecordCount) || 25;
|
|
79
|
+
const count: number = Number(json?.[0]?.RecordCount) || json?.length || 25;
|
|
80
80
|
const sorted = json? json
|
|
81
81
|
.filter(item => item?.UpdatedDate)
|
|
82
82
|
.sort((a, b) => new Date(b.UpdatedDate).getTime() - new Date(a.UpdatedDate).getTime())
|
|
@@ -120,7 +120,7 @@ export class QboMessage extends QboFetchMixin(QboTemplate) {
|
|
|
120
120
|
</tbody>
|
|
121
121
|
<tfoot>
|
|
122
122
|
<tr>
|
|
123
|
-
<td colspan="6" class="progress-wrapper">${json && json[0] ? html`<qbo-paginate count="${
|
|
123
|
+
<td colspan="6" class="progress-wrapper">${json && json[0] ? html`<qbo-paginate count="${count}" @change=${(e) => component.paginate(e)}></qbo-paginate>` : html``}</td>
|
|
124
124
|
</tr>
|
|
125
125
|
</tfoot>
|
|
126
126
|
</table>
|