@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
1 lines • 23.9 kB
Source Map (JSON)
{"version":3,"file":"c8y-ngx-components-operations-bulk-operation-stepper.mjs","sources":["../../operations/bulk-operation-stepper/custom-step.directive.ts","../../operations/bulk-operation-stepper/bulk-operation-stepper.component.ts","../../operations/bulk-operation-stepper/bulk-operation-stepper.component.html","../../operations/bulk-operation-stepper/base-stepper.component.ts","../../operations/bulk-operation-stepper/bulk-operation-stepper.module.ts","../../operations/bulk-operation-stepper/c8y-ngx-components-operations-bulk-operation-stepper.ts"],"sourcesContent":["import { CdkStep } from '@angular/cdk/stepper';\nimport { Directive, Input, TemplateRef } from '@angular/core';\nimport { C8yStepper } from '@c8y/ngx-components';\n\n@Directive({\n selector: '[customStep]',\n standalone: false\n})\nexport class CustomStep {\n @Input('customStep') label: string;\n @Input('customStepCompleted') completed: string;\n @Input('customStepButtonsDisabled') buttonsDisabled = false;\n constructor(public templateRef: TemplateRef<any>) {}\n @Input('customStepOnNext') onNext: (event: { stepper: C8yStepper; step: CdkStep }) => void = ({\n stepper,\n step\n }) => {\n // steps without own `onNext` handler, e.g. preview steps need to mark themselves as `completed`,\n // otherwise stepper will not allow to move forth from them as soon as the user navigates back\n // and the `c8y-stepper-buttons` component marks the step as incomplete.\n step.completed = true;\n stepper.next();\n };\n}\n","import { CdkStep, StepperSelectionEvent } from '@angular/cdk/stepper';\nimport {\n Component,\n ContentChildren,\n EventEmitter,\n Input,\n OnDestroy,\n Output,\n QueryList,\n ViewChild\n} from '@angular/core';\nimport { FormGroup } from '@angular/forms';\nimport { AlertService, C8yStepper, gettext, ModalService, Status } from '@c8y/ngx-components';\nimport { OperationSchedule } from '@c8y/ngx-components/operations/bulk-operation-scheduler';\nimport {\n BulkOperationsService,\n BulkOperationType,\n OperationDetails\n} from '@c8y/ngx-components/operations/bulk-operations-service';\nimport { CreateBulkOperationDetailsComponent } from '@c8y/ngx-components/operations/create-bulk-operation-details';\nimport { BULK_OPERATION_EVENT } from '@c8y/ngx-components/operations/product-experience';\nimport { get } from 'lodash-es';\nimport { Observable, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { CustomStep } from './custom-step.directive';\n\n@Component({\n selector: 'c8y-bulk-operation-stepper',\n templateUrl: 'bulk-operation-stepper.component.html',\n standalone: false\n})\nexport class BulkOperationStepper implements OnDestroy {\n BULK_OPERATION_EVENT = BULK_OPERATION_EVENT;\n\n @Input() type: BulkOperationType | string;\n @Output() selectionChange: EventEmitter<StepperSelectionEvent> = new EventEmitter();\n @ContentChildren(CustomStep) customSteps: QueryList<CustomStep>;\n @ViewChild(C8yStepper, { static: false })\n stepper: C8yStepper;\n @ViewChild(CreateBulkOperationDetailsComponent, { static: false })\n createBulkOperationDetailsComponent: CreateBulkOperationDetailsComponent;\n\n steps: CustomStep[] = [];\n showStepper = false;\n showButtons = false;\n pendingStatus: boolean;\n stepperButtonsLabels = { custom: gettext('Schedule') };\n deviceTypes$: Observable<string[]>;\n deviceQueryString: string;\n bulkOperationType: BulkOperationType;\n scheduleData: OperationSchedule;\n operationDetailsForm: FormGroup;\n operationDetails: OperationDetails;\n retrieveOperationDetails: () => OperationDetails | Promise<OperationDetails>;\n\n private deviceTypesSubject$: Subject<string[]> = new Subject();\n private endSubscriptions: Subject<void> = new Subject();\n\n constructor(\n private bulkOperationService: BulkOperationsService,\n private modal: ModalService,\n private alert: AlertService\n ) {\n this.deviceTypes$ = this.deviceTypesSubject$.asObservable();\n }\n\n ngAfterViewInit(): void {\n setTimeout(() => {\n // wait for the next event loop turn as `steps` has already been checked in this CD cycle\n this.steps = this.customSteps.toArray();\n this.showStepper = true;\n setTimeout(() => {\n // postpone rendering of buttons for custom steps to the point where custom steps have already been rendered\n this.showButtons = true;\n if (this.stepper) {\n this.stepper.selectionChange.pipe(takeUntil(this.endSubscriptions)).subscribe(event => {\n this.selectionChange.next(event);\n });\n this.operationDetailsForm =\n this.createBulkOperationDetailsComponent.fgOperationDescription;\n }\n });\n });\n }\n\n changeDeviceTypes(deviceTypes: string | string[]) {\n if (deviceTypes) {\n this.deviceTypesSubject$.next(Array.isArray(deviceTypes) ? deviceTypes : [deviceTypes]);\n } else {\n this.deviceTypesSubject$.next([]);\n }\n }\n\n async confirmDeviceSelection($event: { stepper: C8yStepper; step: CdkStep }) {\n if (!this.deviceQueryString) {\n try {\n await this.modal.confirm(\n gettext('All devices selected'),\n gettext(\n 'You are about to schedule the bulk operation to be executed for all devices. Do you want to proceed?'\n ),\n Status.WARNING,\n { ok: gettext('Schedule for all devices'), cancel: gettext('Cancel and select devices') }\n );\n $event.step.completed = true;\n $event.stepper.next();\n this.operationDetails = this.retrieveOperationDetails\n ? await this.retrieveOperationDetails()\n : undefined;\n } catch (ex) {\n // Intentionally empty\n }\n } else {\n $event.step.completed = true;\n $event.stepper.next();\n this.operationDetails = this.retrieveOperationDetails\n ? await this.retrieveOperationDetails()\n : undefined;\n }\n\n this.bulkOperationType = this.bulkOperationService.retrieveBulkOperationType(\n get(this.operationDetails, 'prototype')\n );\n if (\n this.operationDetailsForm &&\n get(this.operationDetailsForm, 'controls.description.pristine') &&\n this.operationDetails\n ) {\n this.operationDetailsForm.patchValue({\n description: get(this.operationDetails, 'prototype.description')\n });\n }\n }\n\n cancel() {\n this.close();\n }\n\n async scheduleBulkOperation() {\n this.pendingStatus = true;\n\n try {\n this.operationDetails.prototype.description = get(\n this.operationDetailsForm,\n 'controls.description.value'\n );\n this.operationDetails.note = get(this.operationDetailsForm, 'controls.note.value');\n this.operationDetails.schedule = get(this.operationDetailsForm, 'controls.schedule.value');\n\n await this.bulkOperationService.scheduleBulkOperation(\n this.deviceQueryString,\n this.operationDetails\n );\n this.alert.success(gettext('New bulk operation scheduled.'));\n this.close();\n } catch (ex) {\n this.alert.addServerFailure(ex);\n }\n\n this.pendingStatus = false;\n }\n\n ngOnDestroy(): void {\n this.endSubscriptions.next();\n this.endSubscriptions.complete();\n }\n\n private close() {\n this.stepper.reset();\n this.bulkOperationService.returnToBulkOperationOverview();\n }\n}\n","<div class=\"fit-h\">\n <c8y-stepper\n class=\"d-col no-align-items fit-h c8y-stepper--no-btns a-i-center\"\n linear\n [disableDefaultIcons]=\"{ edit: true, done: false }\"\n [customClasses]=\"['col-xs-10', 'col-sm-8', 'm-t-24', 'm-b-40', 'p-0', 'flex-no-shrink']\"\n *ngIf=\"showStepper\"\n c8yProductExperience\n [actionName]=\"BULK_OPERATION_EVENT\"\n [actionData]=\"{ bulkOperationType: type }\"\n >\n <!-- CUSTOM STEPS 1 to N-2 -->\n <cdk-step\n *ngFor=\"let step of steps\"\n [label]=\"step.label | translate\"\n [completed]=\"step.completed\"\n >\n <ng-container *ngTemplateOutlet=\"step.templateRef\"></ng-container>\n <c8y-stepper-buttons\n class=\"d-block card-footer p-24 separator fit-w sticky-bottom bg-level-0\"\n *ngIf=\"showButtons\"\n [disabled]=\"step.buttonsDisabled\"\n (onNext)=\"step.onNext($event)\"\n (onCancel)=\"cancel()\"\n ></c8y-stepper-buttons>\n </cdk-step>\n <!-- STEP N-1 - Data-grid -->\n <cdk-step [label]=\"'Filter target devices' | translate\">\n <div class=\"card-block p-b-0 p-t-0 flex-no-shrink separator-bottom col-xs-12\">\n <div class=\"d-flex j-c-center p-b-8 p-t-4\">\n <div class=\"col-xs-12 col-sm-6\">\n <h4 class=\"text-center text-normal m-b-16\">\n {{ 'Filter target devices' | translate }}\n </h4>\n </div>\n </div>\n </div>\n\n <div class=\"col-xs-12 flex-grow no-gutter\">\n <c8y-device-selector\n [deviceTypes]=\"deviceTypes$\"\n (onDeviceQueryStringChange)=\"deviceQueryString = $event\"\n ></c8y-device-selector>\n </div>\n <c8y-stepper-buttons\n class=\"d-block card-footer p-24 separator fit-w sticky-bottom bg-level-0\"\n *ngIf=\"showButtons\"\n (onNext)=\"confirmDeviceSelection($event)\"\n (onCancel)=\"cancel()\"\n ></c8y-stepper-buttons>\n </cdk-step>\n\n <!-- STEP N - Scheduler -->\n <cdk-step [label]=\"'Confirm and schedule bulk operation' | translate\">\n <div class=\"card-block flex-no-shrink p-b-0 p-t-0 separator-bottom col-xs-12\">\n <div class=\"d-flex j-c-center p-b-8 p-t-4\">\n <div class=\"col-xs-12 col-sm-6\">\n <h4 class=\"text-center text-normal m-b-16\">\n {{ 'Confirm and schedule bulk operation' | translate }}\n </h4>\n </div>\n </div>\n </div>\n\n <div class=\"col-xs-12 flex-grow no-gutter\">\n <div class=\"card-inner-scroll fit-h\">\n <div class=\"card-block p-b-0\">\n <div class=\"d-flex j-c-center p-t-8 p-b-8\">\n <div class=\"col-xs-12 col-sm-6\">\n <c8y-operation-summary\n [name]=\"operationDetails?.name | translate\"\n [description]=\"operationDetails?.description | translate\"\n [deviceQueryString]=\"deviceQueryString\"\n ></c8y-operation-summary>\n </div>\n </div>\n <div class=\"d-flex j-c-center\">\n <div class=\"col-xs-12 col-sm-6\">\n <c8y-create-bulk-operation-details\n [bulkOperationType]=\"bulkOperationType\"\n ></c8y-create-bulk-operation-details>\n </div>\n </div>\n </div>\n </div>\n </div>\n <c8y-stepper-buttons\n class=\"d-block card-footer p-24 separator fit-w sticky-bottom bg-level-0\"\n *ngIf=\"showButtons\"\n [labels]=\"stepperButtonsLabels\"\n [pending]=\"pendingStatus\"\n [disabled]=\"operationDetailsForm?.invalid\"\n (onCancel)=\"cancel()\"\n (onCustom)=\"scheduleBulkOperation()\"\n ></c8y-stepper-buttons>\n </cdk-step>\n </c8y-stepper>\n</div>\n","import { StepperSelectionEvent } from '@angular/cdk/stepper';\nimport { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';\nimport { IManagedObject } from '@c8y/client';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { BulkOperationStepper } from './bulk-operation-stepper.component';\nimport { OperationDetails } from '@c8y/ngx-components/operations/bulk-operations-service';\n\n@Component({\n selector: 'c8y-base-stepper',\n template: '',\n standalone: false\n})\nexport abstract class BaseStepperComponent implements OnInit, OnDestroy {\n @ViewChild(BulkOperationStepper, { static: true }) operationStepper: BulkOperationStepper;\n\n set deviceTypes(deviceTypes: string | string[]) {\n if (this.operationStepper) {\n this.operationStepper.changeDeviceTypes(deviceTypes);\n }\n }\n\n /**\n * A map holding step data. The order of properties need to match the order of\n * the steps they hold data for as the index of the property is used to clear\n * step data when navigating forth after changing data at an earlier step.\n */\n stepData: { [key: string]: IManagedObject } = {};\n\n private endSubscriptions: Subject<void> = new Subject();\n\n ngOnInit(): void {\n this.operationStepper.retrieveOperationDetails = this.retrieveOperationPrototype.bind(this);\n\n this.operationStepper.selectionChange\n .pipe(takeUntil(this.endSubscriptions))\n .subscribe(this.onSelectionChange.bind(this));\n }\n\n ngOnDestroy(): void {\n this.endSubscriptions.next();\n this.endSubscriptions.complete();\n }\n\n protected abstract retrieveOperationPrototype(): OperationDetails | Promise<OperationDetails>;\n\n protected onSelectionChange(event: StepperSelectionEvent) {\n const { selectedIndex, previouslySelectedIndex } = event;\n if (\n selectedIndex > previouslySelectedIndex &&\n selectedIndex < Object.keys(this.stepData).length\n ) {\n // TODO clear step data only if previous step is \"dirty\"\n this.stepData[this.getStepDataKeyByIndex(selectedIndex)] = undefined;\n }\n }\n\n private getStepDataKeyByIndex(index: number): string {\n return Object.keys(this.stepData)[index];\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@c8y/ngx-components';\nimport { CreateBulkOperationDetailsModule } from '@c8y/ngx-components/operations/create-bulk-operation-details';\nimport { DeviceSelectorModule } from '@c8y/ngx-components/operations/device-selector';\nimport { OperationSummaryModule } from '@c8y/ngx-components/operations/operation-summary';\nimport { BulkOperationStepper } from './bulk-operation-stepper.component';\nimport { CustomStep } from './custom-step.directive';\n\n/**\n * This module provides base stepper class and stepper wrapper component.\n */\n@NgModule({\n imports: [\n CoreModule,\n DeviceSelectorModule,\n CreateBulkOperationDetailsModule,\n OperationSummaryModule\n ],\n declarations: [BulkOperationStepper, CustomStep],\n exports: [BulkOperationStepper, CustomStep]\n})\nexport class BulkOperationStepperModule {}\n","/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