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 { CommonModule } from '@angular/common';
import { SharedModule } from '@shared/shared.module';
import { CalculatedFieldsTableComponent } from '@home/components/calculated-fields/calculated-fields-table.component';
import {
CalculatedFieldDialogComponent
} 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 {
CalculatedFieldScriptTestDialogComponent
} from '@home/components/calculated-fields/components/test-dialog/calculated-field-script-test-dialog.component';
@ -33,7 +29,6 @@ import {
import {
EntityDebugSettingsButtonComponent
} from '@home/components/entity/debug/entity-debug-settings-button.component';
import { HomeComponentsModule } from '@home/components/home-components.module';
import {
GeofencingConfigurationModule
} from '@home/components/calculated-fields/components/geofencing-configuration/geofencing-configuration.module';
@ -46,9 +41,7 @@ import {
@NgModule({
declarations: [
CalculatedFieldsTableComponent,
CalculatedFieldDialogComponent,
CalculatedFieldDebugDialogComponent,
CalculatedFieldScriptTestDialogComponent,
CalculatedFieldTestArgumentsComponent,
],
@ -57,12 +50,12 @@ import {
SharedModule,
GeofencingConfigurationModule,
EntityDebugSettingsButtonComponent,
HomeComponentsModule,
SimpleConfigurationModule,
PropagationConfigurationModule,
],
exports: [
CalculatedFieldsTableComponent,
CalculatedFieldDialogComponent,
CalculatedFieldScriptTestDialogComponent,
]
})
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 { ResourcesDialogComponent } from "@home/components/resources/resources-dialog.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({
declarations:
@ -202,6 +207,8 @@ import { ResourcesLibraryComponent } from "@home/components/resources/resources-
EntityDetailsPageComponent,
AuditLogTableComponent,
AuditLogDetailsDialogComponent,
CalculatedFieldsTableComponent,
CalculatedFieldDebugDialogComponent,
EventContentDialogComponent,
EventTableHeaderComponent,
EventTableComponent,
@ -343,6 +350,7 @@ import { ResourcesLibraryComponent } from "@home/components/resources/resources-
CommonModule,
SharedModule,
SharedHomeComponentsModule,
CalculatedFieldsModule,
WidgetConfigComponentsModule,
BasicWidgetConfigModule,
Lwm2mProfileComponentsModule,
@ -360,6 +368,7 @@ import { ResourcesLibraryComponent } from "@home/components/resources/resources-
EntityDetailsPanelComponent,
EntityDetailsPageComponent,
AuditLogTableComponent,
CalculatedFieldsTableComponent,
EventTableComponent,
EdgeDownlinkTableHeaderComponent,
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 { AssetProfileTabsComponent } from './asset-profile-tabs.component';
import { AssetProfileRoutingModule } from './asset-profile-routing.module';
import { CalculatedFieldsModule } from '@home/components/calculated-fields/calculated-field.module';
@NgModule({
declarations: [
@ -30,7 +29,6 @@ import { CalculatedFieldsModule } from '@home/components/calculated-fields/calcu
CommonModule,
SharedModule,
HomeComponentsModule,
CalculatedFieldsModule,
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 { HomeComponentsModule } from '@modules/home/components/home-components.module';
import { AssetTabsComponent } from '@home/pages/asset/asset-tabs.component';
import { CalculatedFieldsModule } from '@home/components/calculated-fields/calculated-field.module';
@NgModule({
declarations: [
@ -36,7 +35,6 @@ import { CalculatedFieldsModule } from '@home/components/calculated-fields/calcu
SharedModule,
HomeComponentsModule,
HomeDialogsModule,
CalculatedFieldsModule,
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 { DeviceProfileTabsComponent } from './device-profile-tabs.component';
import { DeviceProfileRoutingModule } from './device-profile-routing.module';
import { CalculatedFieldsModule } from '@home/components/calculated-fields/calculated-field.module';
@NgModule({
declarations: [
@ -30,7 +29,6 @@ import { CalculatedFieldsModule } from '@home/components/calculated-fields/calcu
CommonModule,
SharedModule,
HomeComponentsModule,
CalculatedFieldsModule,
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 { DeviceProfileCommonModule } from '@home/components/profile/device/common/device-profile-common.module';
import { DeviceCheckConnectivityDialogComponent } from './device-check-connectivity-dialog.component';
import { CalculatedFieldsModule } from '@home/components/calculated-fields/calculated-field.module';
@NgModule({
declarations: [
@ -62,7 +61,6 @@ import { CalculatedFieldsModule } from '@home/components/calculated-fields/calcu
HomeDialogsModule,
DeviceCredentialsModule,
DeviceProfileCommonModule,
CalculatedFieldsModule,
DeviceRoutingModule
]
})

Loading…
Cancel
Save