igniteui-angular 19.2.31 → 19.2.32
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.
|
@@ -7785,7 +7785,13 @@ class IgxOverlayService {
|
|
|
7785
7785
|
}
|
|
7786
7786
|
}
|
|
7787
7787
|
this.updateSize(info);
|
|
7788
|
+
const openAnimation = info.settings.positionStrategy.settings.openAnimation;
|
|
7789
|
+
const closeAnimation = info.settings.positionStrategy.settings.closeAnimation;
|
|
7788
7790
|
info.settings.positionStrategy.position(info.elementRef.nativeElement.parentElement, { width: info.initialSize.width, height: info.initialSize.height }, this._document, true, info.settings.target);
|
|
7791
|
+
if (openAnimation !== info.settings.positionStrategy.settings.openAnimation ||
|
|
7792
|
+
closeAnimation !== info.settings.positionStrategy.settings.closeAnimation) {
|
|
7793
|
+
this.buildAnimationPlayers(info);
|
|
7794
|
+
}
|
|
7789
7795
|
this.addModalClasses(info);
|
|
7790
7796
|
if (info.settings.positionStrategy.settings.openAnimation) {
|
|
7791
7797
|
// TODO: should we build players again. This was already done in attach!!!
|
|
@@ -20535,6 +20541,9 @@ class IgxToggleDirective {
|
|
|
20535
20541
|
get hiddenClass() {
|
|
20536
20542
|
return this.collapsed;
|
|
20537
20543
|
}
|
|
20544
|
+
/**
|
|
20545
|
+
* @hidden
|
|
20546
|
+
*/
|
|
20538
20547
|
get hiddenWebkitClass() {
|
|
20539
20548
|
const isSafari = this.platform?.isSafari;
|
|
20540
20549
|
const browserVersion = this.platform?.browserVersion;
|
|
@@ -20674,6 +20683,14 @@ class IgxToggleDirective {
|
|
|
20674
20683
|
return;
|
|
20675
20684
|
}
|
|
20676
20685
|
this._collapsed = false;
|
|
20686
|
+
// TODO: this is a workaround for the issue introduced by Angular's with Ivy renderer.
|
|
20687
|
+
// When calling detectChanges(), Angular marks the element for check, but does not update the classes
|
|
20688
|
+
// immediately, which causes the overlay to calculate incorrect dimensions of target element.
|
|
20689
|
+
// Overlay show should be called in the next tick to ensure the classes are updated and target element is measured correctly.
|
|
20690
|
+
// Note: across the codebase, each host binding should be checked and similar fix applied if needed!!!
|
|
20691
|
+
this.elementRef.nativeElement.className = this.elementRef.nativeElement.className.replace('igx-toggle--hidden', 'igx-toggle');
|
|
20692
|
+
this.elementRef.nativeElement.className = this.elementRef.nativeElement.className.replace('igx-toggle--hidden-webkit', 'igx-toggle');
|
|
20693
|
+
this.elementRef.nativeElement.removeAttribute('aria-hidden');
|
|
20677
20694
|
this.cdr.detectChanges();
|
|
20678
20695
|
if (!info) {
|
|
20679
20696
|
this.unsubscribe();
|
|
@@ -20824,14 +20841,20 @@ class IgxToggleDirective {
|
|
|
20824
20841
|
}
|
|
20825
20842
|
}
|
|
20826
20843
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: IgxToggleDirective, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: IgxOverlayService }, { token: IgxNavigationService, optional: true }, { token: PlatformUtil, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
20827
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.5", type: IgxToggleDirective, isStandalone: true, selector: "[igxToggle]", inputs: { id: "id" }, outputs: { opened: "opened", opening: "opening", closed: "closed", closing: "closing", appended: "appended" }, host: { properties: { "class.igx-toggle--hidden": "
|
|
20844
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.5", type: IgxToggleDirective, isStandalone: true, selector: "[igxToggle]", inputs: { id: "id" }, outputs: { opened: "opened", opening: "opening", closed: "closed", closing: "closing", appended: "appended" }, host: { properties: { "class.igx-toggle--hidden": "hiddenClass", "attr.aria-hidden": "hiddenClass", "class.igx-toggle--hidden-webkit": "hiddenWebkitClass", "class.igx-toggle": "defaultClass" } }, exportAs: ["toggle"], ngImport: i0 }); }
|
|
20828
20845
|
}
|
|
20829
20846
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: IgxToggleDirective, decorators: [{
|
|
20830
20847
|
type: Directive,
|
|
20831
20848
|
args: [{
|
|
20832
20849
|
exportAs: 'toggle',
|
|
20833
20850
|
selector: '[igxToggle]',
|
|
20834
|
-
standalone: true
|
|
20851
|
+
standalone: true,
|
|
20852
|
+
host: {
|
|
20853
|
+
'[class.igx-toggle--hidden]': 'hiddenClass',
|
|
20854
|
+
'[attr.aria-hidden]': 'hiddenClass',
|
|
20855
|
+
'[class.igx-toggle--hidden-webkit]': 'hiddenWebkitClass',
|
|
20856
|
+
'[class.igx-toggle]': 'defaultClass'
|
|
20857
|
+
}
|
|
20835
20858
|
}]
|
|
20836
20859
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: IgxOverlayService, decorators: [{
|
|
20837
20860
|
type: Inject,
|
|
@@ -20852,18 +20875,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
20852
20875
|
type: Output
|
|
20853
20876
|
}], id: [{
|
|
20854
20877
|
type: Input
|
|
20855
|
-
}], hiddenClass: [{
|
|
20856
|
-
type: HostBinding,
|
|
20857
|
-
args: ['class.igx-toggle--hidden']
|
|
20858
|
-
}, {
|
|
20859
|
-
type: HostBinding,
|
|
20860
|
-
args: ['attr.aria-hidden']
|
|
20861
|
-
}], hiddenWebkitClass: [{
|
|
20862
|
-
type: HostBinding,
|
|
20863
|
-
args: ['class.igx-toggle--hidden-webkit']
|
|
20864
|
-
}], defaultClass: [{
|
|
20865
|
-
type: HostBinding,
|
|
20866
|
-
args: ['class.igx-toggle']
|
|
20867
20878
|
}] } });
|
|
20868
20879
|
class IgxToggleActionDirective {
|
|
20869
20880
|
/**
|
|
@@ -81511,7 +81522,7 @@ class BaseToolbarDirective {
|
|
|
81511
81522
|
this.columnToggle = new EventEmitter();
|
|
81512
81523
|
this.$destroy = new Subject();
|
|
81513
81524
|
this._overlaySettings = {
|
|
81514
|
-
positionStrategy: new
|
|
81525
|
+
positionStrategy: new AutoPositionStrategy({
|
|
81515
81526
|
horizontalDirection: HorizontalAlignment.Left,
|
|
81516
81527
|
horizontalStartPoint: HorizontalAlignment.Right,
|
|
81517
81528
|
verticalDirection: VerticalAlignment.Bottom,
|