Browse Source

Move IoT Hub browse and item card components to HomeComponentsModule

- Move iot-hub-browse.component to home/components/iot-hub/
- Move iot-hub-item-card.component to home/components/iot-hub/
- Register both in HomeComponentsModule (declarations + exports)
- Remove from IotHubModule declarations
- Update relative imports to use @home/pages/iot-hub/ for dialog dependencies
pull/15508/head
Igor Kulikov 3 months ago
parent
commit
88bfdca110
  1. 6
      ui-ngx/src/app/modules/home/components/home-components.module.ts
  2. 0
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.html
  3. 0
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.scss
  4. 8
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts
  5. 0
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.html
  6. 0
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.scss
  7. 0
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.ts
  8. 4
      ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts

6
ui-ngx/src/app/modules/home/components/home-components.module.ts

@ -113,6 +113,8 @@ import { DashboardLayoutComponent } from '@home/components/dashboard-page/layout
import { EditWidgetComponent } from '@home/components/dashboard-page/edit-widget.component';
import { DashboardWidgetSelectComponent } from '@home/components/dashboard-page/dashboard-widget-select.component';
import { TbIotHubItemDetailDialogComponent } from '@home/components/iot-hub/iot-hub-item-detail-dialog.component';
import { TbIotHubBrowseComponent } from '@home/components/iot-hub/iot-hub-browse.component';
import { TbIotHubItemCardComponent } from '@home/components/iot-hub/iot-hub-item-card.component';
import { AddWidgetDialogComponent } from '@home/components/dashboard-page/add-widget-dialog.component';
import { ManageDashboardLayoutsDialogComponent } from '@home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component';
import {
@ -323,6 +325,8 @@ import { SolutionInstallDialogComponent } from '@home/components/solution/soluti
EditWidgetComponent,
DashboardWidgetSelectComponent,
TbIotHubItemDetailDialogComponent,
TbIotHubBrowseComponent,
TbIotHubItemCardComponent,
AddWidgetDialogComponent,
MoveWidgetsDialogComponent,
ManageDashboardLayoutsDialogComponent,
@ -474,6 +478,8 @@ import { SolutionInstallDialogComponent } from '@home/components/solution/soluti
EditWidgetComponent,
DashboardWidgetSelectComponent,
TbIotHubItemDetailDialogComponent,
TbIotHubBrowseComponent,
TbIotHubItemCardComponent,
AddWidgetDialogComponent,
MoveWidgetsDialogComponent,
ManageDashboardLayoutsDialogComponent,

0
ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-browse.component.html → ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.html

0
ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-browse.component.scss → ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.scss

8
ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-browse.component.ts → ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts

@ -32,10 +32,10 @@ import { MatDialog } from '@angular/material/dialog';
import { TranslateService } from '@ngx-translate/core';
import { ActivatedRoute, Router } from '@angular/router';
import { TbIotHubItemDetailDialogComponent, IotHubItemDetailDialogData } from '@home/components/iot-hub/iot-hub-item-detail-dialog.component';
import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from './iot-hub-install-dialog.component';
import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from './iot-hub-update-dialog.component';
import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from './iot-hub-delete-dialog.component';
import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from './device-install-dialog/device-install-dialog.component';
import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from '@home/pages/iot-hub/iot-hub-install-dialog.component';
import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from '@home/pages/iot-hub/iot-hub-update-dialog.component';
import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from '@home/pages/iot-hub/iot-hub-delete-dialog.component';
import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from '@home/pages/iot-hub/device-install-dialog/device-install-dialog.component';
interface SortOption {
value: string;

0
ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-card.component.html → ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.html

0
ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-card.component.scss → ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.scss

0
ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-card.component.ts → ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.ts

4
ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts

@ -20,10 +20,8 @@ import { SharedModule } from '@shared/shared.module';
import { IotHubRoutingModule } from './iot-hub-routing.module';
import { TbIotHubHomeComponent } from './iot-hub-home.component';
import { TbIotHubItemsPageComponent } from './iot-hub-items-page.component';
import { TbIotHubBrowseComponent } from './iot-hub-browse.component';
import { TbIotHubCreatorProfileComponent } from './iot-hub-creator-profile.component';
import { TbIotHubInstallDialogComponent } from './iot-hub-install-dialog.component';
import { TbIotHubItemCardComponent } from './iot-hub-item-card.component';
import { TbIotHubInstalledItemsComponent } from './iot-hub-installed-items.component';
import { TbIotHubUpdateDialogComponent } from './iot-hub-update-dialog.component';
import { TbIotHubDeleteDialogComponent } from './iot-hub-delete-dialog.component';
@ -34,10 +32,8 @@ import { TbIotHubSearchComponent } from './iot-hub-search.component';
declarations: [
TbIotHubHomeComponent,
TbIotHubItemsPageComponent,
TbIotHubBrowseComponent,
TbIotHubCreatorProfileComponent,
TbIotHubInstallDialogComponent,
TbIotHubItemCardComponent,
TbIotHubInstalledItemsComponent,
TbIotHubUpdateDialogComponent,
TbIotHubDeleteDialogComponent,

Loading…
Cancel
Save