igniteui-angular 20.1.7 → 20.1.9

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.
Files changed (35) hide show
  1. package/fesm2022/igniteui-angular.mjs +31 -19
  2. package/fesm2022/igniteui-angular.mjs.map +1 -1
  3. package/index.d.ts +3 -0
  4. package/lib/core/styles/components/combo/_combo-theme.scss +20 -16
  5. package/lib/core/styles/components/navbar/_navbar-theme.scss +14 -12
  6. package/lib/core/styles/components/select/_select-theme.scss +1 -1
  7. package/lib/core/styles/components/time-picker/_time-picker-theme.scss +0 -15
  8. package/lib/core/styles/components/tooltip/_tooltip-theme.scss +5 -1
  9. package/package.json +1 -1
  10. package/styles/igniteui-angular-dark.css +1 -1
  11. package/styles/igniteui-angular.css +1 -1
  12. package/styles/igniteui-bootstrap-dark.css +1 -1
  13. package/styles/igniteui-bootstrap-light.css +1 -1
  14. package/styles/igniteui-dark-green.css +1 -1
  15. package/styles/igniteui-fluent-dark-excel.css +1 -1
  16. package/styles/igniteui-fluent-dark-word.css +1 -1
  17. package/styles/igniteui-fluent-dark.css +1 -1
  18. package/styles/igniteui-fluent-light-excel.css +1 -1
  19. package/styles/igniteui-fluent-light-word.css +1 -1
  20. package/styles/igniteui-fluent-light.css +1 -1
  21. package/styles/igniteui-indigo-dark.css +1 -1
  22. package/styles/igniteui-indigo-light.css +1 -1
  23. package/styles/maps/igniteui-angular-dark.css.map +1 -1
  24. package/styles/maps/igniteui-angular.css.map +1 -1
  25. package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
  26. package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
  27. package/styles/maps/igniteui-dark-green.css.map +1 -1
  28. package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
  29. package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
  30. package/styles/maps/igniteui-fluent-dark.css.map +1 -1
  31. package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
  32. package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
  33. package/styles/maps/igniteui-fluent-light.css.map +1 -1
  34. package/styles/maps/igniteui-indigo-dark.css.map +1 -1
  35. package/styles/maps/igniteui-indigo-light.css.map +1 -1
@@ -8056,7 +8056,13 @@ class IgxOverlayService {
8056
8056
  }
8057
8057
  }
8058
8058
  this.updateSize(info);
8059
+ const openAnimation = info.settings.positionStrategy.settings.openAnimation;
8060
+ const closeAnimation = info.settings.positionStrategy.settings.closeAnimation;
8059
8061
  info.settings.positionStrategy.position(info.elementRef.nativeElement.parentElement, { width: info.initialSize.width, height: info.initialSize.height }, this._document, true, info.settings.target);
8062
+ if (openAnimation !== info.settings.positionStrategy.settings.openAnimation ||
8063
+ closeAnimation !== info.settings.positionStrategy.settings.closeAnimation) {
8064
+ this.buildAnimationPlayers(info);
8065
+ }
8060
8066
  this.addModalClasses(info);
8061
8067
  if (info.settings.positionStrategy.settings.openAnimation) {
8062
8068
  // TODO: should we build players again. This was already done in attach!!!
@@ -20861,6 +20867,9 @@ class IgxToggleDirective {
20861
20867
  get hiddenClass() {
20862
20868
  return this.collapsed;
20863
20869
  }
20870
+ /**
20871
+ * @hidden
20872
+ */
20864
20873
  get hiddenWebkitClass() {
20865
20874
  const isSafari = this.platform?.isSafari;
20866
20875
  const browserVersion = this.platform?.browserVersion;
@@ -21000,6 +21009,14 @@ class IgxToggleDirective {
21000
21009
  return;
21001
21010
  }
21002
21011
  this._collapsed = false;
21012
+ // TODO: this is a workaround for the issue introduced by Angular's with Ivy renderer.
21013
+ // When calling detectChanges(), Angular marks the element for check, but does not update the classes
21014
+ // immediately, which causes the overlay to calculate incorrect dimensions of target element.
21015
+ // Overlay show should be called in the next tick to ensure the classes are updated and target element is measured correctly.
21016
+ // Note: across the codebase, each host binding should be checked and similar fix applied if needed!!!
21017
+ this.elementRef.nativeElement.className = this.elementRef.nativeElement.className.replace('igx-toggle--hidden', 'igx-toggle');
21018
+ this.elementRef.nativeElement.className = this.elementRef.nativeElement.className.replace('igx-toggle--hidden-webkit', 'igx-toggle');
21019
+ this.elementRef.nativeElement.removeAttribute('aria-hidden');
21003
21020
  this.cdr.detectChanges();
21004
21021
  if (!info) {
21005
21022
  this.unsubscribe();
@@ -21150,14 +21167,20 @@ class IgxToggleDirective {
21150
21167
  }
21151
21168
  }
21152
21169
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", 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 }); }
21153
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.6", 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": "this.hiddenClass", "attr.aria-hidden": "this.hiddenClass", "class.igx-toggle--hidden-webkit": "this.hiddenWebkitClass", "class.igx-toggle": "this.defaultClass" } }, exportAs: ["toggle"], ngImport: i0 }); }
21170
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.6", 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 }); }
21154
21171
  }
21155
21172
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgxToggleDirective, decorators: [{
21156
21173
  type: Directive,
21157
21174
  args: [{
21158
21175
  exportAs: 'toggle',
21159
21176
  selector: '[igxToggle]',
21160
- standalone: true
21177
+ standalone: true,
21178
+ host: {
21179
+ '[class.igx-toggle--hidden]': 'hiddenClass',
21180
+ '[attr.aria-hidden]': 'hiddenClass',
21181
+ '[class.igx-toggle--hidden-webkit]': 'hiddenWebkitClass',
21182
+ '[class.igx-toggle]': 'defaultClass'
21183
+ }
21161
21184
  }]
21162
21185
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: IgxOverlayService, decorators: [{
21163
21186
  type: Inject,
@@ -21178,18 +21201,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
21178
21201
  type: Output
21179
21202
  }], id: [{
21180
21203
  type: Input
21181
- }], hiddenClass: [{
21182
- type: HostBinding,
21183
- args: ['class.igx-toggle--hidden']
21184
- }, {
21185
- type: HostBinding,
21186
- args: ['attr.aria-hidden']
21187
- }], hiddenWebkitClass: [{
21188
- type: HostBinding,
21189
- args: ['class.igx-toggle--hidden-webkit']
21190
- }], defaultClass: [{
21191
- type: HostBinding,
21192
- args: ['class.igx-toggle']
21193
21204
  }] } });
21194
21205
  class IgxToggleActionDirective {
21195
21206
  /**
@@ -21503,11 +21514,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
21503
21514
 
21504
21515
  class IgxTooltipComponent {
21505
21516
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgxTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21506
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: IgxTooltipComponent, isStandalone: true, selector: "igx-tooltip", viewQueries: [{ propertyName: "tooltip", first: true, predicate: IgxTooltipDirective, descendants: true, static: true }], ngImport: i0, template: "<span igxTooltip>{{content}}</span>", dependencies: [{ kind: "directive", type: IgxTooltipDirective, selector: "[igxTooltip]", inputs: ["context", "id", "role"], exportAs: ["tooltip"] }] }); }
21517
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: IgxTooltipComponent, isStandalone: true, selector: "igx-tooltip", viewQueries: [{ propertyName: "tooltip", first: true, predicate: IgxTooltipDirective, descendants: true, static: true }], ngImport: i0, template: "<span data-default igxTooltip>{{content}}</span>\n", dependencies: [{ kind: "directive", type: IgxTooltipDirective, selector: "[igxTooltip]", inputs: ["context", "id", "role"], exportAs: ["tooltip"] }] }); }
21507
21518
  }
21508
21519
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgxTooltipComponent, decorators: [{
21509
21520
  type: Component,
21510
- args: [{ selector: 'igx-tooltip', imports: [IgxTooltipDirective], template: "<span igxTooltip>{{content}}</span>" }]
21521
+ args: [{ selector: 'igx-tooltip', imports: [IgxTooltipDirective], template: "<span data-default igxTooltip>{{content}}</span>\n" }]
21511
21522
  }], propDecorators: { tooltip: [{
21512
21523
  type: ViewChild,
21513
21524
  args: [IgxTooltipDirective, { static: true }]
@@ -45039,6 +45050,7 @@ class IgxColumnComponent {
45039
45050
  get index() {
45040
45051
  return this.grid._columns.indexOf(this);
45041
45052
  }
45053
+ /* mustCoerceToInt */
45042
45054
  /**
45043
45055
  * Gets the pinning position of the column.
45044
45056
  * ```typescript
@@ -76254,7 +76266,7 @@ class IgxGridComponent extends IgxGridBaseDirective {
76254
76266
  if (!this._init) {
76255
76267
  this.validation.updateAll(this._data);
76256
76268
  }
76257
- if (this.autoGenerate && this._data.length > 0 && this.shouldRecreateColumns(oldData, this._data)) {
76269
+ if (this.autoGenerate && this._data.length > 0 && this.shouldRecreateColumns(oldData, this._data) && this.gridAPI.grid) {
76258
76270
  this.setupColumns();
76259
76271
  }
76260
76272
  this.cdr.markForCheck();
@@ -83194,7 +83206,7 @@ class BaseToolbarDirective {
83194
83206
  this.columnToggle = new EventEmitter();
83195
83207
  this.$destroy = new Subject();
83196
83208
  this._overlaySettings = {
83197
- positionStrategy: new ConnectedPositioningStrategy({
83209
+ positionStrategy: new AutoPositionStrategy({
83198
83210
  horizontalDirection: HorizontalAlignment.Left,
83199
83211
  horizontalStartPoint: HorizontalAlignment.Right,
83200
83212
  verticalDirection: VerticalAlignment.Bottom,
@@ -89376,7 +89388,7 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
89376
89388
  if (!this._init) {
89377
89389
  this.validation.updateAll(this._data);
89378
89390
  }
89379
- if (this.autoGenerate && this._data.length > 0 && this.shouldRecreateColumns(oldData, this._data)) {
89391
+ if (this.autoGenerate && this._data.length > 0 && this.shouldRecreateColumns(oldData, this._data) && this.gridAPI.grid) {
89380
89392
  this.setupColumns();
89381
89393
  this.reflow();
89382
89394
  }