@c8y/tutorial 1021.38.1 → 1021.49.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/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c8y/tutorial",
|
|
3
|
-
"version": "1021.
|
|
3
|
+
"version": "1021.49.1",
|
|
4
4
|
"description": "This package is used to scaffold a tutorial for Cumulocity IoT Web SDK which explains a lot of concepts.",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@c8y/style": "1021.
|
|
7
|
-
"@c8y/ngx-components": "1021.
|
|
8
|
-
"@c8y/client": "1021.
|
|
9
|
-
"@c8y/bootstrap": "1021.
|
|
6
|
+
"@c8y/style": "1021.49.1",
|
|
7
|
+
"@c8y/ngx-components": "1021.49.1",
|
|
8
|
+
"@c8y/client": "1021.49.1",
|
|
9
|
+
"@c8y/bootstrap": "1021.49.1",
|
|
10
10
|
"@angular/cdk": "^18.2.10",
|
|
11
11
|
"ngx-bootstrap": "18.0.0",
|
|
12
12
|
"leaflet": "1.9.4",
|
|
13
13
|
"rxjs": "^7.8.1"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@c8y/options": "1021.
|
|
17
|
-
"@c8y/devkit": "1021.
|
|
16
|
+
"@c8y/options": "1021.49.1",
|
|
17
|
+
"@c8y/devkit": "1021.49.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@angular/common": ">=18 <19"
|
|
@@ -124,22 +124,18 @@ export class ServerGridExampleService {
|
|
|
124
124
|
/** Returns the number of items matching current columns and pagination setup. */
|
|
125
125
|
async getCount(columns: Column[], pagination: Pagination) {
|
|
126
126
|
const filters = {
|
|
127
|
-
// build filters based on columns and pagination
|
|
128
127
|
...this.getFilters(columns, pagination),
|
|
129
|
-
|
|
130
|
-
pageSize: 1,
|
|
131
|
-
currentPage: 1
|
|
128
|
+
withTotalElements: true
|
|
132
129
|
};
|
|
133
|
-
return (await this.inventoryService.list(filters)).paging.
|
|
130
|
+
return (await this.inventoryService.list(filters)).paging.totalElements;
|
|
134
131
|
}
|
|
135
132
|
|
|
136
133
|
/** Returns the total number of items (with no filters). */
|
|
137
134
|
async getTotal(): Promise<number> {
|
|
138
135
|
const filters = {
|
|
139
|
-
|
|
140
|
-
withTotalPages: true
|
|
136
|
+
withTotalElements: true
|
|
141
137
|
};
|
|
142
|
-
return (await this.inventoryService.list(filters)).paging.
|
|
138
|
+
return (await this.inventoryService.list(filters)).paging.totalElements;
|
|
143
139
|
}
|
|
144
140
|
|
|
145
141
|
/** Returns an icon and label representing the type of the managed object. */
|