@porscheinformatik/clr-addons 12.9.0 → 12.9.2
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/datagrid/date-filter/date-filter.component.mjs +5 -2
- package/esm2020/treetable/treetable.mjs +10 -4
- package/fesm2015/clr-addons.mjs +13 -4
- package/fesm2015/clr-addons.mjs.map +1 -1
- package/fesm2020/clr-addons.mjs +13 -4
- package/fesm2020/clr-addons.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/clr-addons.mjs
CHANGED
|
@@ -3390,6 +3390,7 @@ class ClrTreetable {
|
|
|
3390
3390
|
}
|
|
3391
3391
|
set ttRows(items) {
|
|
3392
3392
|
this._ttRows = items;
|
|
3393
|
+
this.hasActionOverflow = false;
|
|
3393
3394
|
this.initClickableRows();
|
|
3394
3395
|
this.initEmpty();
|
|
3395
3396
|
this.initActionOverflow();
|
|
@@ -3413,9 +3414,14 @@ class ClrTreetable {
|
|
|
3413
3414
|
});
|
|
3414
3415
|
}
|
|
3415
3416
|
setActionOverflow(hasActionOverflow) {
|
|
3416
|
-
this.hasActionOverflow
|
|
3417
|
-
|
|
3418
|
-
this
|
|
3417
|
+
if (!this.hasActionOverflow && hasActionOverflow) {
|
|
3418
|
+
this.hasActionOverflow = true;
|
|
3419
|
+
// setTimeout needed, as this method needs to change data which shouldn't be changed anymore in this cycle
|
|
3420
|
+
setTimeout(() => {
|
|
3421
|
+
if (this.hasActionOverflow) {
|
|
3422
|
+
this._ttRows.forEach(ttRow => (ttRow.showActionOverflow = true));
|
|
3423
|
+
}
|
|
3424
|
+
});
|
|
3419
3425
|
}
|
|
3420
3426
|
}
|
|
3421
3427
|
ngOnDestroy() {
|
|
@@ -4917,10 +4923,13 @@ class ClrDateFilterComponent {
|
|
|
4917
4923
|
return this._from !== null || this._to !== null;
|
|
4918
4924
|
}
|
|
4919
4925
|
accepts(item) {
|
|
4920
|
-
|
|
4926
|
+
let propValue = this.nestedProp ? this.nestedProp.getPropValue(item) : item;
|
|
4921
4927
|
if (propValue === undefined) {
|
|
4922
4928
|
return false;
|
|
4923
4929
|
}
|
|
4930
|
+
if (typeof propValue === 'string') {
|
|
4931
|
+
propValue = new Date(propValue);
|
|
4932
|
+
}
|
|
4924
4933
|
if (this._from !== null && (!(propValue instanceof Date) || propValue.getTime() < this._from.getTime())) {
|
|
4925
4934
|
return false;
|
|
4926
4935
|
}
|