dependencies dependencies cluster_OperationsModule cluster_OperationsModule_imports BulkOperationFromSingleModule BulkOperationFromSingleModule OperationsModule OperationsModule BulkOperationFromSingleModule->OperationsModule BulkOperationsListModule BulkOperationsListModule BulkOperationsListModule->OperationsModule BulkOperationsServiceModule BulkOperationsServiceModule BulkOperationsServiceModule->OperationsModule BulkOperationsStepperContainerModule BulkOperationsStepperContainerModule BulkOperationsStepperContainerModule->OperationsModule CoreModule CoreModule CoreModule->OperationsModule OperationsListModule OperationsListModule OperationsListModule->OperationsModule RouterModule RouterModule RouterModule->OperationsModule StepperBulkTypeConfigurationModule StepperBulkTypeConfigurationModule StepperBulkTypeConfigurationModule->OperationsModule StepperBulkTypeDeviceProfileModule StepperBulkTypeDeviceProfileModule StepperBulkTypeDeviceProfileModule->OperationsModule StepperBulkTypeFirmwareModule StepperBulkTypeFirmwareModule StepperBulkTypeFirmwareModule->OperationsModule StepperBulkTypeSoftwareModule StepperBulkTypeSoftwareModule StepperBulkTypeSoftwareModule->OperationsModule

File

operations/operations.module.ts

Description

This module sets up the 'Device control' view. By importing it in your custom application you will have:

  • a 'Device control' tab in device details view
  • a 'Device control' entry in the 'Overviews' section of navigator
  • 'Bulk operations' tab on the 'Device control' page
  • list view of existing bulk operations with expandable details and options to filter
  • guided stepper dialogs to schedule new bulk operations of supported types (Configuration update, Firmware update, Software update, Apply device profile).

Additionaly you can use the modules imported by OperationsModule separately to achieve the results you wish to have in your application, e.g.:

import { BulkOperationsServiceModule } from '@c8y/ngx-components/operations/bulk-operations-service';
import { BulkOperationsListModule } from '@c8y/ngx-components/operations/bulk-operations-list';

@NgModule({
  imports: [
    [...]
    BulkOperationsServiceModule,
    BulkOperationsListModule
  ],
  [...]
})
export class CustomOperationsModule {}```
respectively
```typescript
import { BulkOperationsStepperContainerModule } from '@c8y/ngx-components/operations/bulk-operations-stepper-container';
import { BulkOperationsServiceModule } from '@c8y/ngx-components/operations/bulk-operations-service';
import { BulkOperationsListModule } from '@c8y/ngx-components/operations/bulk-operations-list';
import { StepperBulkTypeSoftwareModule } from '@c8y/ngx-components/operations/stepper-bulk-type-software';

  imports: [
    [...]
    BulkOperationsServiceModule,
    BulkOperationsListModule,
    BulkOperationsStepperContainerModule,
    StepperBulkTypeSoftwareModule
  ],
  [...]
})
export class CustomOperationsModule {}```
You can provide your own bulk operation stepper by registering a component via the `HOOK_LIST_BULK_TYPE`:

```typescript
import {
  HOOK_LIST_BULK_TYPE,
  baseUrl
} from '@c8y/ngx-components/operations/bulk-operations-service';

[...]

providers: [
  {
    provide: HOOK_LIST_BULK_TYPE,
    useValue: {
      type: 'my-bulk-op-type',
      c8yIcon: 'c8y-tools',
      name: 'My bulk op type',
      path: `${baseUrl}my-type`,
      component: StepperMyBulkTypeComponent,
      fragments: ['c8y_MyType'],
      selected: false
    },
    multi: true
  }
]```

results matching ""

    No results matching ""