import { ModuleWithProviders, NgModule } from "@angular/core";
import { NmSharedModule } from "./../../nm.shared.module";

import { ChipListWidgetComponent } from "./imarket/chiplistwidget/chiplistwidget.component";
import { DatePickerWidgetComponent } from "./imarket/date-picker-widget/date-picker-widget.component";
import { IMarketEmptyWidgetComponent } from "./imarket/emptywidget/emptywidget.component";
import { FromToDatePickerWidgetComponent } from "./imarket/from-to-datepicker-widget/from-to-datepicker-widget.component";
import { IconTextWidgetComponent } from "./imarket/icontext/icontext.component";
import { ImarketListComponentWidget } from "./imarket/list/imarketlist.component";
import { IMarketListService } from "./imarket/list/imarketlist.service";
import { ConditionalLinkWidgetComponent } from "./imarket/list-cell-conditional-link/conditional-link-widget.component";
import { ConditionalLinkUtilService } from "./imarket/list-cell-conditional-link/conditional-link-widget.component.service";
import { NumberAndCurrencyWidgetComponent } from "./imarket/list-cell-number-and-currency/number-and-currency-widget.component";
import { ListCellStateIndicatorWidgetComponent } from "./imarket/list-cell-state-indicator/list-cell-state-indicator-widget.component";
import { ToggleButtonWidgetComponent } from "./imarket/list-cell-toggle-button/toggle-button-widget.component";
import { RadiobuttonWidgetComponent } from "./imarket/radiobutton/radiobuttonwidget.component";
import { SimpleItemListWidgetComponent } from "./imarket/simple-item-list";
import { VirtualSelectComponentWidget } from "../components/imarket/virtual-select/virtual-select.component.widget";
import { IconWidgetComponent } from "./imarket/list-cell-icon/icon-widget.component";

import { registerWidgetComponents } from "./widget.metadata.registry";

registerWidgetComponents([
  ChipListWidgetComponent,
  DatePickerWidgetComponent,
  IMarketEmptyWidgetComponent,
  FromToDatePickerWidgetComponent,
  IconTextWidgetComponent,
  ImarketListComponentWidget,
  ConditionalLinkWidgetComponent,
  NumberAndCurrencyWidgetComponent,
  ListCellStateIndicatorWidgetComponent,
  ToggleButtonWidgetComponent,
  RadiobuttonWidgetComponent,
  SimpleItemListWidgetComponent,
  VirtualSelectComponentWidget,
  IconWidgetComponent,
]);

@NgModule({
  imports: [NmSharedModule],
  declarations: [
    ChipListWidgetComponent,
    DatePickerWidgetComponent,
    IMarketEmptyWidgetComponent,
    FromToDatePickerWidgetComponent,
    IconTextWidgetComponent,
    ImarketListComponentWidget,
    ConditionalLinkWidgetComponent,
    NumberAndCurrencyWidgetComponent,
    ListCellStateIndicatorWidgetComponent,
    ToggleButtonWidgetComponent,
    RadiobuttonWidgetComponent,
    SimpleItemListWidgetComponent,
    VirtualSelectComponentWidget,
    IconWidgetComponent,
  ],
  exports: [],
  providers: [IMarketListService, ConditionalLinkUtilService],
})
export class IMarketWidgetsModule {
  static forRoot(): ModuleWithProviders<IMarketWidgetsModule> {
    return {
      ngModule: IMarketWidgetsModule,
    };
  }

  constructor() {}
}

results matching ""

    No results matching ""