Skip to content

Commit 3f8e424

Browse files
committed
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular into rivanova/fix-15020-master
2 parents 28ced79 + 40c6dfe commit 3f8e424

File tree

180 files changed

+9339
-7952
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+9339
-7952
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"ig-typedoc-theme": "^6.0.0",
122122
"igniteui-dockmanager": "^1.15.2",
123123
"igniteui-sassdoc-theme": "^1.2.3",
124-
"igniteui-webcomponents": "5.1.2",
124+
"igniteui-webcomponents": "5.2.0",
125125
"jasmine": "^5.4.0",
126126
"jasmine-core": "~5.4.0",
127127
"karma": "^6.4.4",

projects/igniteui-angular/src/lib/action-strip/action-strip.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { IgxIconComponent } from '../icon/icon.component';
2424
import { IgxDropDownItemNavigationDirective } from '../drop-down/drop-down-navigation.directive';
2525
import { IgxToggleActionDirective } from '../directives/toggle/toggle.directive';
2626
import { IgxRippleDirective } from '../directives/ripple/ripple.directive';
27-
import { IgxButtonDirective } from '../directives/button/button.directive';
2827
import { NgIf, NgFor, NgTemplateOutlet } from '@angular/common';
2928
import { getCurrentResourceStrings } from '../core/i18n/resources';
3029
import { IgxIconButtonDirective } from '../directives/button/icon-button.directive';
@@ -77,7 +76,6 @@ export class IgxActionStripMenuItemDirective {
7776
NgIf,
7877
NgFor,
7978
NgTemplateOutlet,
80-
IgxButtonDirective,
8179
IgxIconButtonDirective,
8280
IgxRippleDirective,
8381
IgxToggleActionDirective,

projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-action-button.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Component, Input, TemplateRef, ViewChild, Output, EventEmitter, ElementRef, booleanAttribute } from '@angular/core';
22
import { IgxIconComponent } from '../../icon/icon.component';
33
import { IgxRippleDirective } from '../../directives/ripple/ripple.directive';
4-
import { IgxButtonDirective } from '../../directives/button/button.directive';
54
import { NgIf } from '@angular/common';
65
import { IgxIconButtonDirective } from '../../directives/button/icon-button.directive';
76

@@ -11,7 +10,7 @@ import { IgxIconButtonDirective } from '../../directives/button/icon-button.dire
1110
@Component({
1211
selector: 'igx-grid-action-button',
1312
templateUrl: 'grid-action-button.component.html',
14-
imports: [NgIf, IgxButtonDirective, IgxRippleDirective, IgxIconComponent, IgxIconButtonDirective]
13+
imports: [NgIf, IgxRippleDirective, IgxIconComponent, IgxIconButtonDirective]
1514
})
1615
export class IgxGridActionButtonComponent {
1716

projects/igniteui-angular/src/lib/calendar/calendar.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
booleanAttribute,
1414
HostListener,
1515
} from '@angular/core';
16-
import { NgIf, NgTemplateOutlet, NgStyle, NgFor, DatePipe } from '@angular/common';
16+
import { NgIf, NgTemplateOutlet, NgFor, DatePipe } from '@angular/common';
1717
import { NG_VALUE_ACCESSOR } from '@angular/forms';
1818

1919
import {
@@ -71,7 +71,7 @@ let NEXT_ID = 0;
7171
],
7272
selector: 'igx-calendar',
7373
templateUrl: 'calendar.component.html',
74-
imports: [NgIf, NgTemplateOutlet, IgxCalendarScrollPageDirective, NgStyle, IgxIconComponent, NgFor, IgxDaysViewComponent, IgxMonthsViewComponent, IgxYearsViewComponent, DatePipe, IgxMonthViewSlotsCalendar, IgxGetViewDateCalendar]
74+
imports: [NgIf, NgTemplateOutlet, IgxCalendarScrollPageDirective, IgxIconComponent, NgFor, IgxDaysViewComponent, IgxMonthsViewComponent, IgxYearsViewComponent, DatePipe, IgxMonthViewSlotsCalendar, IgxGetViewDateCalendar]
7575
})
7676
export class IgxCalendarComponent extends IgxCalendarBaseDirective implements AfterViewInit, OnDestroy {
7777
/**

projects/igniteui-angular/src/lib/calendar/days-view/days-view.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing";
55
import { By } from "@angular/platform-browser";
66
import { UIInteractions } from "../../test-utils/ui-interactions.spec";
77
import { CalendarDay } from "../common/model";
8-
import { DateRangeDescriptor, DateRangeType } from "igniteui-webcomponents";
8+
import { DateRangeDescriptor, DateRangeType } from 'igniteui-webcomponents';
99
import { ScrollDirection } from "../calendar";
1010

1111
const TODAY = new Date(2024, 6, 12);

projects/igniteui-angular/src/lib/calendar/month-picker/month-picker.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
OnDestroy,
1010
OnInit,
1111
} from "@angular/core";
12-
import { NgIf, NgStyle, NgTemplateOutlet, DatePipe } from "@angular/common";
12+
import { NgIf, NgTemplateOutlet, DatePipe } from "@angular/common";
1313
import { NG_VALUE_ACCESSOR } from "@angular/forms";
1414

1515
import { IgxMonthsViewComponent } from "../months-view/months-view.component";
@@ -39,7 +39,6 @@ let NEXT_ID = 0;
3939
templateUrl: "month-picker.component.html",
4040
imports: [
4141
NgIf,
42-
NgStyle,
4342
NgTemplateOutlet,
4443
DatePipe,
4544
IgxIconComponent,

projects/igniteui-angular/src/lib/calendar/months-view/months-view.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Inject,
88
} from "@angular/core";
99
import { IgxCalendarMonthDirective } from "../calendar.directives";
10-
import { NgFor, TitleCasePipe, DatePipe } from "@angular/common";
10+
import { NgFor, TitleCasePipe } from "@angular/common";
1111
import {
1212
IgxCalendarViewDirective,
1313
DAY_INTERVAL_TOKEN,
@@ -33,7 +33,7 @@ let NEXT_ID = 0;
3333
],
3434
selector: "igx-months-view",
3535
templateUrl: "months-view.component.html",
36-
imports: [NgFor, IgxCalendarMonthDirective, TitleCasePipe, DatePipe]
36+
imports: [NgFor, IgxCalendarMonthDirective, TitleCasePipe]
3737
})
3838
export class IgxMonthsViewComponent extends IgxCalendarViewDirective implements ControlValueAccessor {
3939
#standalone = true;

projects/igniteui-angular/src/lib/carousel/carousel-base.ts

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { AnimationReferenceMetadata, useAnimation } from '@angular/animations';
2-
import { ChangeDetectorRef, EventEmitter, Inject } from '@angular/core';
2+
import { ChangeDetectorRef, EventEmitter, Inject, InjectionToken } from '@angular/core';
33
import { IgxAngularAnimationService } from '../services/animation/angular-animation-service';
44
import { AnimationPlayer, AnimationService } from '../services/animation/animation';
55
import { fadeIn, slideInLeft } from 'igniteui-angular/animations';
6-
import { CarouselAnimationType } from './enums';
6+
import { CarouselAnimationType, CarouselIndicatorsOrientation } from './enums';
77

88
export enum Direction { NONE, NEXT, PREV }
99

@@ -12,6 +12,37 @@ export interface CarouselAnimationSettings {
1212
leaveAnimation: AnimationReferenceMetadata;
1313
}
1414

15+
export interface ICarouselComponentBase {
16+
id: string;
17+
role: string;
18+
cssClass: string;
19+
loop: boolean;
20+
pause: boolean;
21+
navigation: boolean;
22+
indicators: boolean;
23+
vertical: boolean;
24+
keyboardSupport: boolean;
25+
gesturesSupport: boolean;
26+
maximumIndicatorsCount: number;
27+
indicatorsOrientation: CarouselIndicatorsOrientation;
28+
animationType: CarouselAnimationType;
29+
total: number;
30+
current: number;
31+
interval: number;
32+
slideChanged: EventEmitter<any>;
33+
slideAdded: EventEmitter<any>;
34+
slideRemoved: EventEmitter<any>;
35+
carouselPaused: EventEmitter<any>;
36+
carouselPlaying: EventEmitter<any>;
37+
next(): void;
38+
prev(): void;
39+
play(): void;
40+
stop(): void
41+
}
42+
43+
/** @hidden */
44+
export const IGX_CAROUSEL_COMPONENT = /*@__PURE__*/new InjectionToken<ICarouselComponentBase>('IgxCarouselToken');
45+
1546
/** @hidden */
1647
export interface IgxSlideComponentBase {
1748
direction: Direction;

projects/igniteui-angular/src/lib/carousel/carousel.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { CarouselResourceStringsEN, ICarouselResourceStrings } from '../core/i18
3030
import { first, IBaseEventArgs, last, PlatformUtil } from '../core/utils';
3131
import { IgxAngularAnimationService } from '../services/animation/angular-animation-service';
3232
import { AnimationService } from '../services/animation/animation';
33-
import { Direction, IgxCarouselComponentBase } from './carousel-base';
33+
import { Direction, ICarouselComponentBase, IGX_CAROUSEL_COMPONENT, IgxCarouselComponentBase } from './carousel-base';
3434
import { IgxCarouselIndicatorDirective, IgxCarouselNextButtonDirective, IgxCarouselPrevButtonDirective } from './carousel.directives';
3535
import { IgxSlideComponent } from './slide.component';
3636
import { IgxIconComponent } from '../icon/icon.component';
@@ -75,7 +75,8 @@ export class CarouselHammerConfig extends HammerGestureConfig {
7575
{
7676
provide: HAMMER_GESTURE_CONFIG,
7777
useClass: CarouselHammerConfig
78-
}
78+
},
79+
{ provide: IGX_CAROUSEL_COMPONENT, useExisting: IgxCarouselComponent }
7980
],
8081
selector: 'igx-carousel',
8182
templateUrl: 'carousel.component.html',
@@ -87,7 +88,7 @@ export class CarouselHammerConfig extends HammerGestureConfig {
8788
imports: [IgxButtonDirective, IgxIconComponent, NgIf, NgClass, NgFor, NgTemplateOutlet]
8889
})
8990

90-
export class IgxCarouselComponent extends IgxCarouselComponentBase implements OnDestroy, AfterContentInit {
91+
export class IgxCarouselComponent extends IgxCarouselComponentBase implements ICarouselComponentBase, OnDestroy, AfterContentInit {
9192

9293
/**
9394
* Sets the `id` of the carousel.

0 commit comments

Comments
 (0)