Browse Source

UI: refactor cf module

pull/14107/head
Vladyslav_Prykhodko 11 months ago
parent
commit
6da6f84652
  1. 11
      ui-ngx/src/app/modules/home/components/calculated-fields/calculated-field.module.ts
  2. 9
      ui-ngx/src/app/modules/home/components/home-components.module.ts
  3. 2
      ui-ngx/src/app/modules/home/pages/asset-profile/asset-profile.module.ts
  4. 2
      ui-ngx/src/app/modules/home/pages/asset/asset.module.ts
  5. 2
      ui-ngx/src/app/modules/home/pages/device-profile/device-profile.module.ts
  6. 2
      ui-ngx/src/app/modules/home/pages/device/device.module.ts

11
ui-ngx/src/app/modules/home/components/calculated-fields/calculated-field.module.ts

@ -17,13 +17,9 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { SharedModule } from '@shared/shared.module'; import { SharedModule } from '@shared/shared.module';
import { CalculatedFieldsTableComponent } from '@home/components/calculated-fields/calculated-fields-table.component';
import { import {
CalculatedFieldDialogComponent CalculatedFieldDialogComponent
} from '@home/components/calculated-fields/components/dialog/calculated-field-dialog.component'; } from '@home/components/calculated-fields/components/dialog/calculated-field-dialog.component';
import {
CalculatedFieldDebugDialogComponent
} from '@home/components/calculated-fields/components/debug-dialog/calculated-field-debug-dialog.component';
import { import {
CalculatedFieldScriptTestDialogComponent CalculatedFieldScriptTestDialogComponent
} from '@home/components/calculated-fields/components/test-dialog/calculated-field-script-test-dialog.component'; } from '@home/components/calculated-fields/components/test-dialog/calculated-field-script-test-dialog.component';
@ -33,7 +29,6 @@ import {
import { import {
EntityDebugSettingsButtonComponent EntityDebugSettingsButtonComponent
} from '@home/components/entity/debug/entity-debug-settings-button.component'; } from '@home/components/entity/debug/entity-debug-settings-button.component';
import { HomeComponentsModule } from '@home/components/home-components.module';
import { import {
GeofencingConfigurationModule GeofencingConfigurationModule
} from '@home/components/calculated-fields/components/geofencing-configuration/geofencing-configuration.module'; } from '@home/components/calculated-fields/components/geofencing-configuration/geofencing-configuration.module';
@ -46,9 +41,7 @@ import {
@NgModule({ @NgModule({
declarations: [ declarations: [
CalculatedFieldsTableComponent,
CalculatedFieldDialogComponent, CalculatedFieldDialogComponent,
CalculatedFieldDebugDialogComponent,
CalculatedFieldScriptTestDialogComponent, CalculatedFieldScriptTestDialogComponent,
CalculatedFieldTestArgumentsComponent, CalculatedFieldTestArgumentsComponent,
], ],
@ -57,12 +50,12 @@ import {
SharedModule, SharedModule,
GeofencingConfigurationModule, GeofencingConfigurationModule,
EntityDebugSettingsButtonComponent, EntityDebugSettingsButtonComponent,
HomeComponentsModule,
SimpleConfigurationModule, SimpleConfigurationModule,
PropagationConfigurationModule, PropagationConfigurationModule,
], ],
exports: [ exports: [
CalculatedFieldsTableComponent, CalculatedFieldDialogComponent,
CalculatedFieldScriptTestDialogComponent,
] ]
}) })
export class CalculatedFieldsModule {} export class CalculatedFieldsModule {}

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

@ -190,6 +190,11 @@ import { CheckConnectivityDialogComponent } from '@home/components/ai-model/chec
import { AIModelDialogComponent } from '@home/components/ai-model/ai-model-dialog.component'; import { AIModelDialogComponent } from '@home/components/ai-model/ai-model-dialog.component';
import { ResourcesDialogComponent } from "@home/components/resources/resources-dialog.component"; import { ResourcesDialogComponent } from "@home/components/resources/resources-dialog.component";
import { ResourcesLibraryComponent } from "@home/components/resources/resources-library.component"; import { ResourcesLibraryComponent } from "@home/components/resources/resources-library.component";
import { CalculatedFieldsTableComponent } from '@home/components/calculated-fields/calculated-fields-table.component';
import {
CalculatedFieldDebugDialogComponent
} from '@home/components/calculated-fields/components/debug-dialog/calculated-field-debug-dialog.component';
import { CalculatedFieldsModule } from '@home/components/calculated-fields/calculated-field.module';
@NgModule({ @NgModule({
declarations: declarations:
@ -202,6 +207,8 @@ import { ResourcesLibraryComponent } from "@home/components/resources/resources-
EntityDetailsPageComponent, EntityDetailsPageComponent,
AuditLogTableComponent, AuditLogTableComponent,
AuditLogDetailsDialogComponent, AuditLogDetailsDialogComponent,
CalculatedFieldsTableComponent,
CalculatedFieldDebugDialogComponent,
EventContentDialogComponent, EventContentDialogComponent,
EventTableHeaderComponent, EventTableHeaderComponent,
EventTableComponent, EventTableComponent,
@ -343,6 +350,7 @@ import { ResourcesLibraryComponent } from "@home/components/resources/resources-
CommonModule, CommonModule,
SharedModule, SharedModule,
SharedHomeComponentsModule, SharedHomeComponentsModule,
CalculatedFieldsModule,
WidgetConfigComponentsModule, WidgetConfigComponentsModule,
BasicWidgetConfigModule, BasicWidgetConfigModule,
Lwm2mProfileComponentsModule, Lwm2mProfileComponentsModule,
@ -360,6 +368,7 @@ import { ResourcesLibraryComponent } from "@home/components/resources/resources-
EntityDetailsPanelComponent, EntityDetailsPanelComponent,
EntityDetailsPageComponent, EntityDetailsPageComponent,
AuditLogTableComponent, AuditLogTableComponent,
CalculatedFieldsTableComponent,
EventTableComponent, EventTableComponent,
EdgeDownlinkTableHeaderComponent, EdgeDownlinkTableHeaderComponent,
EdgeDownlinkTableComponent, EdgeDownlinkTableComponent,

2
ui-ngx/src/app/modules/home/pages/asset-profile/asset-profile.module.ts

@ -20,7 +20,6 @@ import { SharedModule } from '@shared/shared.module';
import { HomeComponentsModule } from '@modules/home/components/home-components.module'; import { HomeComponentsModule } from '@modules/home/components/home-components.module';
import { AssetProfileTabsComponent } from './asset-profile-tabs.component'; import { AssetProfileTabsComponent } from './asset-profile-tabs.component';
import { AssetProfileRoutingModule } from './asset-profile-routing.module'; import { AssetProfileRoutingModule } from './asset-profile-routing.module';
import { CalculatedFieldsModule } from '@home/components/calculated-fields/calculated-field.module';
@NgModule({ @NgModule({
declarations: [ declarations: [
@ -30,7 +29,6 @@ import { CalculatedFieldsModule } from '@home/components/calculated-fields/calcu
CommonModule, CommonModule,
SharedModule, SharedModule,
HomeComponentsModule, HomeComponentsModule,
CalculatedFieldsModule,
AssetProfileRoutingModule, AssetProfileRoutingModule,
] ]
}) })

2
ui-ngx/src/app/modules/home/pages/asset/asset.module.ts

@ -23,7 +23,6 @@ import { AssetTableHeaderComponent } from './asset-table-header.component';
import { AssetRoutingModule } from './asset-routing.module'; import { AssetRoutingModule } from './asset-routing.module';
import { HomeComponentsModule } from '@modules/home/components/home-components.module'; import { HomeComponentsModule } from '@modules/home/components/home-components.module';
import { AssetTabsComponent } from '@home/pages/asset/asset-tabs.component'; import { AssetTabsComponent } from '@home/pages/asset/asset-tabs.component';
import { CalculatedFieldsModule } from '@home/components/calculated-fields/calculated-field.module';
@NgModule({ @NgModule({
declarations: [ declarations: [
@ -36,7 +35,6 @@ import { CalculatedFieldsModule } from '@home/components/calculated-fields/calcu
SharedModule, SharedModule,
HomeComponentsModule, HomeComponentsModule,
HomeDialogsModule, HomeDialogsModule,
CalculatedFieldsModule,
AssetRoutingModule, AssetRoutingModule,
] ]
}) })

2
ui-ngx/src/app/modules/home/pages/device-profile/device-profile.module.ts

@ -20,7 +20,6 @@ import { SharedModule } from '@shared/shared.module';
import { HomeComponentsModule } from '@modules/home/components/home-components.module'; import { HomeComponentsModule } from '@modules/home/components/home-components.module';
import { DeviceProfileTabsComponent } from './device-profile-tabs.component'; import { DeviceProfileTabsComponent } from './device-profile-tabs.component';
import { DeviceProfileRoutingModule } from './device-profile-routing.module'; import { DeviceProfileRoutingModule } from './device-profile-routing.module';
import { CalculatedFieldsModule } from '@home/components/calculated-fields/calculated-field.module';
@NgModule({ @NgModule({
declarations: [ declarations: [
@ -30,7 +29,6 @@ import { CalculatedFieldsModule } from '@home/components/calculated-fields/calcu
CommonModule, CommonModule,
SharedModule, SharedModule,
HomeComponentsModule, HomeComponentsModule,
CalculatedFieldsModule,
DeviceProfileRoutingModule DeviceProfileRoutingModule
] ]
}) })

2
ui-ngx/src/app/modules/home/pages/device/device.module.ts

@ -36,7 +36,6 @@ import { SnmpDeviceTransportConfigurationComponent } from './data/snmp-device-tr
import { DeviceCredentialsModule } from '@home/components/device/device-credentials.module'; import { DeviceCredentialsModule } from '@home/components/device/device-credentials.module';
import { DeviceProfileCommonModule } from '@home/components/profile/device/common/device-profile-common.module'; import { DeviceProfileCommonModule } from '@home/components/profile/device/common/device-profile-common.module';
import { DeviceCheckConnectivityDialogComponent } from './device-check-connectivity-dialog.component'; import { DeviceCheckConnectivityDialogComponent } from './device-check-connectivity-dialog.component';
import { CalculatedFieldsModule } from '@home/components/calculated-fields/calculated-field.module';
@NgModule({ @NgModule({
declarations: [ declarations: [
@ -62,7 +61,6 @@ import { CalculatedFieldsModule } from '@home/components/calculated-fields/calcu
HomeDialogsModule, HomeDialogsModule,
DeviceCredentialsModule, DeviceCredentialsModule,
DeviceProfileCommonModule, DeviceProfileCommonModule,
CalculatedFieldsModule,
DeviceRoutingModule DeviceRoutingModule
] ]
}) })

Loading…
Cancel
Save