@acorex/platform 20.7.16 → 20.7.19
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/fesm2022/acorex-platform-common.mjs +5 -4
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +10 -10
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +15 -2
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-BQODc73e.mjs → acorex-platform-themes-default-entity-master-list-view.component-DDd7YryZ.mjs} +41 -2
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-BQODc73e.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-DDd7YryZ.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +54 -6
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/layout/widget-core/index.d.ts +7 -0
- package/package.json +5 -5
- package/themes/default/index.d.ts +9 -0
|
@@ -1244,6 +1244,19 @@ class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent {
|
|
|
1244
1244
|
get renderCellTemplate() {
|
|
1245
1245
|
return this.cellTemplate ?? this._contentCellTemplate;
|
|
1246
1246
|
}
|
|
1247
|
+
/**
|
|
1248
|
+
* True when the row should show the expand icon: either hasChild is true (from server/initial load)
|
|
1249
|
+
* or the row has loaded children (e.g. after refreshItemChildren when children go from 0 to 1).
|
|
1250
|
+
*/
|
|
1251
|
+
hasExpandableRow(row) {
|
|
1252
|
+
const data = row?.data;
|
|
1253
|
+
if (!data)
|
|
1254
|
+
return false;
|
|
1255
|
+
if (data['hasChild'] === true)
|
|
1256
|
+
return true;
|
|
1257
|
+
const children = data['__meta__']?.['children'];
|
|
1258
|
+
return Array.isArray(children) && children.length > 0;
|
|
1259
|
+
}
|
|
1247
1260
|
async handleExpandRow(row) {
|
|
1248
1261
|
this.loadingRow.set(row);
|
|
1249
1262
|
await this.grid.expandRow(row);
|
|
@@ -1463,7 +1476,7 @@ class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent {
|
|
|
1463
1476
|
<div
|
|
1464
1477
|
(click)="handleExpandRow(row)"
|
|
1465
1478
|
class="ax-expand-handler"
|
|
1466
|
-
[class.ax-invisible]="row
|
|
1479
|
+
[class.ax-invisible]="!hasExpandableRow(row)"
|
|
1467
1480
|
id="ax-expand-handler-container"
|
|
1468
1481
|
[style.padding-inline-start.rem]="row.data?.__meta__?.level * 2"
|
|
1469
1482
|
>
|
|
@@ -1500,7 +1513,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1500
1513
|
<div
|
|
1501
1514
|
(click)="handleExpandRow(row)"
|
|
1502
1515
|
class="ax-expand-handler"
|
|
1503
|
-
[class.ax-invisible]="row
|
|
1516
|
+
[class.ax-invisible]="!hasExpandableRow(row)"
|
|
1504
1517
|
id="ax-expand-handler-container"
|
|
1505
1518
|
[style.padding-inline-start.rem]="row.data?.__meta__?.level * 2"
|
|
1506
1519
|
>
|