UNPKG

@c8y/ngx-components

Version:

Angular modules for Cumulocity IoT applications

1 lines 4.17 kB
{"version":3,"file":"c8y-ngx-components-operations-bulk-operation-from-single.mjs","sources":["../../operations/bulk-operation-from-single/bulk-operation-from-single.component.ts","../../operations/bulk-operation-from-single/bulk-operation-from-single.component.html","../../operations/bulk-operation-from-single/bulk-operation-from-single.module.ts","../../operations/bulk-operation-from-single/c8y-ngx-components-operations-bulk-operation-from-single.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { IOperation } from '@c8y/client';\nimport { get } from 'lodash-es';\nimport {\n BaseStepperComponent,\n BulkOperationStepper\n} from '@c8y/ngx-components/operations/bulk-operation-stepper';\nimport {\n BulkOperationsService,\n OperationDetails\n} from '@c8y/ngx-components/operations/bulk-operations-service';\n\n@Component({\n selector: 'bulk-operation-from-single',\n templateUrl: 'bulk-operation-from-single.component.html',\n imports: [BulkOperationStepper]\n})\nexport class BulkOperationFromSingleComponent extends BaseStepperComponent implements OnInit {\n constructor(\n private activatedRoute: ActivatedRoute,\n private bulkOperationService: BulkOperationsService\n ) {\n super();\n }\n\n protected async retrieveOperationPrototype(): Promise<OperationDetails> {\n const prototype: IOperation = (\n await this.bulkOperationService.getOperation(this.activatedRoute.snapshot.params.operationId)\n ).data;\n\n return {\n description: get(prototype, 'description'),\n prototype\n };\n }\n}\n","<c8y-bulk-operation-stepper type=\"from-single\"> </c8y-bulk-operation-stepper>\n","import { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\nimport { Route } from '@c8y/ngx-components';\n\nimport { BulkOperationFromSingleComponent } from './bulk-operation-from-single.component';\n\nexport const bulkOperationCreateSingleRoutes: Route[] = [\n {\n path: 'devicecontrol/single/create-bulk/:operationId',\n component: BulkOperationFromSingleComponent\n }\n];\n\n@NgModule({\n imports: [\n RouterModule.forChild(bulkOperationCreateSingleRoutes),\n BulkOperationFromSingleComponent\n ]\n})\nexport class BulkOperationFromSingleModule {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