ud-components 0.9.2 → 0.9.3
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Output, Input, Component, Pipe, input, computed, TemplateRef, ChangeDetectionStrategy, ViewEncapsulation, inject, ElementRef, ViewContainerRef, effect, Directive, NgZone, DestroyRef, viewChild, signal, HostListener, ViewChild, CUSTOM_ELEMENTS_SCHEMA, forwardRef, HostBinding, Inject, Optional, Injectable, LOCALE_ID, isSignal, ContentChild, ContentChildren, output,
|
|
2
|
+
import { EventEmitter, Output, Input, Component, Pipe, input, computed, TemplateRef, ChangeDetectionStrategy, ViewEncapsulation, inject, ElementRef, ViewContainerRef, effect, Directive, NgZone, DestroyRef, viewChild, signal, HostListener, ViewChild, CUSTOM_ELEMENTS_SCHEMA, forwardRef, HostBinding, Inject, Optional, Injectable, LOCALE_ID, isSignal, ContentChild, ContentChildren, output, afterRenderEffect, ViewChildren } from '@angular/core';
|
|
3
3
|
import { MatDrawer, MatDrawerContainer, MatDrawerContent } from '@angular/material/sidenav';
|
|
4
4
|
import { MatToolbar } from '@angular/material/toolbar';
|
|
5
5
|
import * as i1 from '@angular/common';
|
|
@@ -5118,7 +5118,12 @@ class TimelineGridComponent {
|
|
|
5118
5118
|
suppressNextClickTimer = null;
|
|
5119
5119
|
constructor(translate, destroyRef) {
|
|
5120
5120
|
this.translate = translate;
|
|
5121
|
-
|
|
5121
|
+
// Reads what changes the rendered rows or their width, so it reruns after those change.
|
|
5122
|
+
afterRenderEffect(() => {
|
|
5123
|
+
this.visible();
|
|
5124
|
+
this.canvasWidth();
|
|
5125
|
+
this.measureRows();
|
|
5126
|
+
});
|
|
5122
5127
|
// A drag still active when the component is torn down must not leave
|
|
5123
5128
|
// window-level listeners behind.
|
|
5124
5129
|
destroyRef.onDestroy(() => {
|
|
@@ -5249,8 +5254,8 @@ class TimelineGridComponent {
|
|
|
5249
5254
|
}
|
|
5250
5255
|
/**
|
|
5251
5256
|
* Measures the rendered bars and group headers whose text needs more room
|
|
5252
|
-
* than its base height, so the next layout grows that row.
|
|
5253
|
-
*
|
|
5257
|
+
* than its base height, so the next layout grows that row. It only writes
|
|
5258
|
+
* when a height changes, so it settles.
|
|
5254
5259
|
*/
|
|
5255
5260
|
measureRows() {
|
|
5256
5261
|
const root = this.scroller().nativeElement;
|