Skip to content

Commit 52cc718

Browse files
committed
feat(standalone): finalizing module restore #12698
1 parent 1da3ef9 commit 52cc718

36 files changed

+471
-84
lines changed

projects/igniteui-angular/src/lib/combo/public_api.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { IgxHintDirective } from '../directives/hint/hint.directive';
12
import { IgxLabelDirective } from '../directives/label/label.directive';
23
import { IgxPrefixDirective } from '../directives/prefix/prefix.directive';
34
import { IgxSuffixDirective } from '../directives/suffix/suffix.directive';
@@ -30,5 +31,6 @@ export const IGX_COMBO_DIRECTIVES = [
3031
IgxComboToggleIconDirective,
3132
IgxLabelDirective,
3233
IgxPrefixDirective,
33-
IgxSuffixDirective
34+
IgxSuffixDirective,
35+
IgxHintDirective
3436
] as const;

projects/igniteui-angular/src/lib/date-picker/date-picker.directives.ts

-14
This file was deleted.

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

-3
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,5 @@ export const valueInRange = (value: number, max: number, min = 0): number => Mat
642642
export const toPercent = (value: number, max: number) => !max ? 0 : Math.floor(100 * value / max);
643643

644644
export const toValue = (value: number, max: number) => max * value / 100;
645-
/**
646-
* @hidden
647-
*/
648645

649646

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IGX_PROGRESS_BAR_DIRECTIVES } from './public_api';
3+
4+
/**
5+
* @hidden
6+
* IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components
7+
*/
8+
@NgModule({
9+
imports: [
10+
...IGX_PROGRESS_BAR_DIRECTIVES
11+
],
12+
exports: [
13+
...IGX_PROGRESS_BAR_DIRECTIVES
14+
]
15+
})
16+
export class IgxProgressBarModule { }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { IgxProgressBarGradientDirective, IgxProgressBarTextTemplateDirective } from './progressbar.common';
2+
import { IgxCircularProgressBarComponent, IgxLinearProgressBarComponent } from './progressbar.component';
3+
4+
export * from './progressbar.common';
5+
export {
6+
IgxTextAlign,
7+
IgxProgressType,
8+
IChangeProgressEventArgs,
9+
IgxLinearProgressBarComponent,
10+
IgxCircularProgressBarComponent
11+
} from './progressbar.component';
12+
13+
/* NOTE: Progress bar (linear and circular) directives collection for ease-of-use import in standalone components scenario */
14+
export const IGX_PROGRESS_BAR_DIRECTIVES = [
15+
IgxLinearProgressBarComponent,
16+
IgxCircularProgressBarComponent,
17+
IgxProgressBarTextTemplateDirective,
18+
IgxProgressBarGradientDirective
19+
] as const;
20+
21+
/* NOTE: Linear progress bar directives collection for ease-of-use import in standalone components scenario */
22+
export const IGX_LINEAR_PROGRESS_BAR_DIRECTIVES = [
23+
IgxLinearProgressBarComponent,
24+
IgxProgressBarGradientDirective
25+
] as const;
26+
27+
/* NOTE: Circular progress bar directives collection for ease-of-use import in standalone components scenario */
28+
export const IGX_CIRCULAR_PROGRESS_BAR_DIRECTIVES = [
29+
IgxCircularProgressBarComponent,
30+
IgxProgressBarTextTemplateDirective,
31+
IgxProgressBarGradientDirective
32+
] as const;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { IgxQueryBuilderHeaderComponent } from './query-builder-header.component';
2+
import { IgxQueryBuilderComponent } from './query-builder.component';
3+
4+
export {
5+
IgxQueryBuilderComponent
6+
} from './query-builder.component';
7+
export * from './query-builder-header.component';
8+
9+
/* NOTE: Query builder directives collection for ease-of-use import in standalone components scenario */
10+
export const IGX_QUERY_BUILDER_DIRECTIVES = [
11+
IgxQueryBuilderComponent,
12+
IgxQueryBuilderHeaderComponent
13+
] as const;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IGX_QUERY_BUILDER_DIRECTIVES } from './public_api';
3+
4+
/**
5+
* @hidden
6+
* IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components
7+
*/
8+
@NgModule({
9+
imports: [
10+
...IGX_QUERY_BUILDER_DIRECTIVES
11+
],
12+
exports: [
13+
...IGX_QUERY_BUILDER_DIRECTIVES
14+
]
15+
})
16+
export class IgxQueryBuilderModule { }
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
1+
import { IgxHintDirective } from '../directives/hint/hint.directive';
2+
import { IgxLabelDirective } from '../directives/label/label.directive';
3+
import { IgxPrefixDirective } from '../directives/prefix/prefix.directive';
4+
import { IgxSuffixDirective } from '../directives/suffix/suffix.directive';
5+
import { IgxSelectGroupComponent } from './select-group.component';
6+
import { IgxSelectItemComponent } from './select-item.component';
7+
import { IgxSelectComponent, IgxSelectFooterDirective, IgxSelectHeaderDirective, IgxSelectToggleIconDirective } from './select.component';
8+
19
export * from './select-group.component';
210
export * from './select-item.component';
311
export * from './select.component';
4-
// export * from './select.module';
5-
export * from './select-navigation.directive';
12+
13+
/* NOTE: Select directives collection for ease-of-use import in standalone components scenario */
14+
export const IGX_SELECT_DIRECTIVES = [
15+
IgxSelectComponent,
16+
IgxSelectItemComponent,
17+
IgxSelectGroupComponent,
18+
IgxSelectHeaderDirective,
19+
IgxSelectFooterDirective,
20+
IgxSelectToggleIconDirective,
21+
IgxLabelDirective,
22+
IgxPrefixDirective,
23+
IgxSuffixDirective,
24+
IgxHintDirective
25+
] as const;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IGX_SELECT_DIRECTIVES } from './public_api';
3+
4+
/**
5+
* @hidden
6+
* IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components
7+
*/
8+
@NgModule({
9+
imports: [
10+
...IGX_SELECT_DIRECTIVES
11+
],
12+
exports: [
13+
...IGX_SELECT_DIRECTIVES
14+
]
15+
})
16+
export class IgxSelectModule { }
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1+
import {
2+
IgxComboAddItemDirective,
3+
IgxComboClearIconDirective,
4+
IgxComboEmptyDirective,
5+
IgxComboFooterDirective,
6+
IgxComboHeaderDirective,
7+
IgxComboHeaderItemDirective,
8+
IgxComboItemDirective,
9+
IgxComboToggleIconDirective
10+
} from '../combo/combo.directives';
11+
import { IgxHintDirective } from '../directives/hint/hint.directive';
12+
import { IgxLabelDirective } from '../directives/label/label.directive';
13+
import { IgxPrefixDirective } from '../directives/prefix/prefix.directive';
14+
import { IgxSuffixDirective } from '../directives/suffix/suffix.directive';
15+
import { IgxSimpleComboComponent } from './simple-combo.component';
16+
117
export * from './simple-combo.component';
18+
19+
/* NOTE: Simple combo directives collection for ease-of-use import in standalone components scenario */
20+
export const IGX_SIMPLE_COMBO_DIRECTIVES = [
21+
IgxSimpleComboComponent,
22+
IgxComboAddItemDirective,
23+
IgxComboClearIconDirective,
24+
IgxComboEmptyDirective,
25+
IgxComboFooterDirective,
26+
IgxComboHeaderDirective,
27+
IgxComboHeaderItemDirective,
28+
IgxComboItemDirective,
29+
IgxComboToggleIconDirective,
30+
IgxLabelDirective,
31+
IgxPrefixDirective,
32+
IgxSuffixDirective,
33+
IgxHintDirective
34+
] as const;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IGX_SIMPLE_COMBO_DIRECTIVES } from './public_api';
3+
4+
/**
5+
* @hidden
6+
* IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components
7+
*/
8+
@NgModule({
9+
imports: [
10+
...IGX_SIMPLE_COMBO_DIRECTIVES
11+
],
12+
exports: [
13+
...IGX_SIMPLE_COMBO_DIRECTIVES
14+
]
15+
})
16+
export class IgxSimpleComboModule { }
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1+
import { IgxThumbFromTemplateDirective, IgxThumbToTemplateDirective, IgxTickLabelTemplateDirective } from './slider.common';
2+
import { IgxSliderComponent } from './slider.component';
3+
14
export * from './slider.component';
25
export * from './slider.common';
6+
7+
/* NOTE: Slider directives collection for ease-of-use import in standalone components scenario */
8+
export const IGX_SLIDER_DIRECTIVES = [
9+
IgxSliderComponent,
10+
IgxThumbFromTemplateDirective,
11+
IgxThumbToTemplateDirective,
12+
IgxTickLabelTemplateDirective
13+
] as const;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IGX_SLIDER_DIRECTIVES } from './public_api';
3+
4+
/**
5+
* @hidden
6+
* IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components
7+
*/
8+
@NgModule({
9+
imports: [
10+
...IGX_SLIDER_DIRECTIVES
11+
],
12+
exports: [
13+
...IGX_SLIDER_DIRECTIVES
14+
]
15+
})
16+
export class IgxSliderModule { }

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

-4
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,3 @@ export class IgxSnackbarComponent extends IgxNotificationsDirective
204204
}
205205
}
206206

207-
/**
208-
* @hidden
209-
*/
210-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IgxSnackbarComponent } from './snackbar.component';
3+
4+
/**
5+
* @hidden
6+
* IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components
7+
*/
8+
@NgModule({
9+
imports: [
10+
IgxSnackbarComponent
11+
],
12+
exports: [
13+
IgxSnackbarComponent
14+
]
15+
})
16+
export class IgxSnackbarModule { }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { IgxSplitterPaneComponent } from './splitter-pane/splitter-pane.component';
2+
import { IgxSplitBarComponent, IgxSplitterComponent } from './splitter.component';
3+
4+
export * from './splitter.component';
5+
export * from './splitter-pane/splitter-pane.component';
6+
7+
/* NOTE: Splitter directives collection for ease-of-use import in standalone components scenario */
8+
export const IGX_SPLITTER_DIRECTIVES = [
9+
IgxSplitterComponent,
10+
IgxSplitterPaneComponent,
11+
IgxSplitBarComponent
12+
] as const;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IGX_SPLITTER_DIRECTIVES } from './public_api';
3+
4+
/**
5+
* @hidden
6+
* IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components
7+
*/
8+
@NgModule({
9+
imports: [
10+
...IGX_SPLITTER_DIRECTIVES
11+
],
12+
exports: [
13+
...IGX_SPLITTER_DIRECTIVES
14+
]
15+
})
16+
export class IgxSplitterModule { }
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
1+
import { IgxStepComponent } from './step/step.component';
2+
import { IgxStepperComponent } from './stepper.component';
3+
import { IgxStepActiveIndicatorDirective, IgxStepCompletedIndicatorDirective, IgxStepContentDirective, IgxStepIndicatorDirective, IgxStepInvalidIndicatorDirective, IgxStepSubTitleDirective, IgxStepTitleDirective } from './stepper.directive';
4+
15
export * from './stepper.component';
26
export * from './step/step.component';
3-
export * from './stepper.common';
7+
export {
8+
IStepChangingEventArgs,
9+
IStepChangedEventArgs,
10+
IgxStepperOrientation,
11+
IgxStepType,
12+
IgxStepperTitlePosition,
13+
VerticalAnimationType
14+
} from './stepper.common';
415
export * from './stepper.directive';
16+
17+
/* NOTE: Stepper directives collection for ease-of-use import in standalone components scenario */
18+
export const IGX_STEPPER_DIRECTIVES = [
19+
IgxStepComponent,
20+
IgxStepperComponent,
21+
IgxStepTitleDirective,
22+
IgxStepSubTitleDirective,
23+
IgxStepIndicatorDirective,
24+
IgxStepContentDirective,
25+
IgxStepActiveIndicatorDirective,
26+
IgxStepCompletedIndicatorDirective,
27+
IgxStepInvalidIndicatorDirective
28+
] as const;

projects/igniteui-angular/src/lib/stepper/stepper.common.ts

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export interface IgxStepper extends IgxCarouselComponentBase {
4343
}
4444

4545
// Item interfaces
46-
4746
export interface IgxStep extends ToggleAnimationPlayer {
4847
id: string;
4948
/** @hidden @internal */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IGX_STEPPER_DIRECTIVES } from './public_api';
3+
4+
/**
5+
* @hidden
6+
* IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components
7+
*/
8+
@NgModule({
9+
imports: [
10+
...IGX_STEPPER_DIRECTIVES
11+
],
12+
exports: [
13+
...IGX_STEPPER_DIRECTIVES
14+
]
15+
})
16+
export class IgxStepperModule { }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IgxSwitchComponent } from './switch.component';
3+
4+
/**
5+
* @hidden
6+
* IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components
7+
*/
8+
@NgModule({
9+
imports: [
10+
IgxSwitchComponent
11+
],
12+
exports: [
13+
IgxSwitchComponent
14+
]
15+
})
16+
export class IgxSwitchModule { }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { IGX_BOTTOM_NAV_DIRECTIVES } from './public_api';
3+
4+
/**
5+
* @hidden
6+
* IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components
7+
*/
8+
@NgModule({
9+
imports: [
10+
...IGX_BOTTOM_NAV_DIRECTIVES
11+
],
12+
exports: [
13+
...IGX_BOTTOM_NAV_DIRECTIVES
14+
]
15+
})
16+
export class IgxBottomNavModule { }

0 commit comments

Comments
 (0)