@messaia/cdk 13.3.5-rc12 → 13.3.5-rc13
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/esm2020/lib/base/components/generic-list.component.mjs +6 -1
- package/esm2020/lib/forms/models/form-field-definition.mjs +1 -1
- package/esm2020/lib/table/models/table-definition.mjs +1 -1
- package/esm2020/lib/table/table.data-source.mjs +2 -2
- package/fesm2015/messaia-cdk.mjs +6 -1
- package/fesm2015/messaia-cdk.mjs.map +1 -1
- package/fesm2020/messaia-cdk.mjs +6 -1
- package/fesm2020/messaia-cdk.mjs.map +1 -1
- package/lib/base/components/generic-list.component.d.ts +4 -0
- package/lib/forms/models/form-field-definition.d.ts +1 -1
- package/lib/table/models/table-definition.d.ts +1 -0
- package/lib/table/table.data-source.d.ts +2 -2
- package/package.json +1 -1
package/fesm2020/messaia-cdk.mjs
CHANGED
|
@@ -4722,7 +4722,7 @@ class TableDataSource extends DataSource {
|
|
|
4722
4722
|
/* Load data and return it */
|
|
4723
4723
|
return this.service.getList(Object.assign({
|
|
4724
4724
|
includes: this.includes,
|
|
4725
|
-
projection: this.projection,
|
|
4725
|
+
projection: Array.isArray(this.projection) ? this.projection.join(',') : this.projection,
|
|
4726
4726
|
page: this.paginator.pageIndex + 1,
|
|
4727
4727
|
pageSize: this.paginator.pageSize,
|
|
4728
4728
|
search: this.filter.toLowerCase(),
|
|
@@ -5218,6 +5218,10 @@ class GenericListComponent extends BaseComponent {
|
|
|
5218
5218
|
* The navigations to includes
|
|
5219
5219
|
*/
|
|
5220
5220
|
this.includes = [];
|
|
5221
|
+
/**
|
|
5222
|
+
* projection: string | string[]
|
|
5223
|
+
*/
|
|
5224
|
+
this.projection = [];
|
|
5221
5225
|
/**
|
|
5222
5226
|
* The navigations to includes
|
|
5223
5227
|
*/
|
|
@@ -5367,6 +5371,7 @@ class GenericListComponent extends BaseComponent {
|
|
|
5367
5371
|
this.dataSource = new TableDataSource(this.service, this.paginator, this.sort);
|
|
5368
5372
|
/* Set includes */
|
|
5369
5373
|
this.dataSource.includes = this.includes;
|
|
5374
|
+
this.dataSource.projection = this.projection;
|
|
5370
5375
|
/* Load query from browser storage */
|
|
5371
5376
|
var storredQuery = AppStorage.getObject(`${this.appSetting.projectName}.${this.router.url}`);
|
|
5372
5377
|
if (storredQuery) {
|