dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_StarkDateRangePickerModule cluster_StarkDateRangePickerModule_imports cluster_StarkDateRangePickerModule_exports cluster_StarkDateRangePickerModule_declarations StarkDateRangePickerComponent StarkDateRangePickerComponent StarkDateRangePickerModule StarkDateRangePickerModule StarkDateRangePickerComponent->StarkDateRangePickerModule StarkDateRangePickerComponent StarkDateRangePickerComponent StarkDateRangePickerModule->StarkDateRangePickerComponent StarkDatePickerModule StarkDatePickerModule StarkDatePickerModule->StarkDateRangePickerModule

File

src/modules/date-range-picker/date-range-picker.module.ts

import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { TranslateModule, TranslateService } from "@ngx-translate/core";
import { StarkLocale } from "@nationalbankbelgium/stark-core";
import { StarkDatePickerModule } from "@nationalbankbelgium/stark-ui/src/modules/date-picker";
import { StarkDateRangePickerComponent } from "./components";
import { translationsEn } from "./assets/translations/en";
import { translationsFr } from "./assets/translations/fr";
import { translationsNl } from "./assets/translations/nl";
import { mergeUiTranslations } from "@nationalbankbelgium/stark-ui/src/common";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { MatLegacyFormFieldModule as MatFormFieldModule } from "@angular/material/legacy-form-field";

@NgModule({
	declarations: [StarkDateRangePickerComponent],
	imports: [CommonModule, StarkDatePickerModule, FormsModule, MatFormFieldModule, ReactiveFormsModule, TranslateModule],
	exports: [StarkDateRangePickerComponent]
})
export class StarkDateRangePickerModule {
	/**
	 * Class constructor
	 * @param translateService - The `TranslateService` instance of the application.
	 */
	public constructor(translateService: TranslateService) {
		const english: StarkLocale = { languageCode: "en", translations: translationsEn };
		const french: StarkLocale = { languageCode: "fr", translations: translationsFr };
		const dutch: StarkLocale = { languageCode: "nl", translations: translationsNl };
		mergeUiTranslations(translateService, english, french, dutch);
	}
}

results matching ""

    No results matching ""