@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
1 lines • 8.79 kB
Source Map (JSON)
{"version":3,"file":"c8y-ngx-components-operations-stepper-frames.mjs","sources":["../../operations/stepper-frames/preview-block.directive.ts","../../operations/stepper-frames/preview-selection-frame.component.ts","../../operations/stepper-frames/preview-selection-frame.component.html","../../operations/stepper-frames/select-step-frame.component.ts","../../operations/stepper-frames/select-step-frame.component.html","../../operations/stepper-frames/stepper-frames.modules.ts","../../operations/stepper-frames/c8y-ngx-components-operations-stepper-frames.ts"],"sourcesContent":["import { Directive, Input, TemplateRef } from '@angular/core';\n\n@Directive({ selector: '[previewBlock]' })\nexport class PreviewBlockDirective {\n @Input('previewBlock')\n label: string;\n\n @Input('previewBlockIf')\n show = true;\n\n constructor(public templateRef: TemplateRef<any>) {}\n}\n","import { Component, ContentChildren, ElementRef, Input, QueryList, ViewChild } from '@angular/core';\nimport { PreviewBlockDirective } from './preview-block.directive';\nimport { NgIf, NgFor, NgTemplateOutlet } from '@angular/common';\nimport { C8yTranslatePipe } from '@c8y/ngx-components';\n\n@Component({\n selector: 'c8y-preview-selection-frame',\n templateUrl: './preview-selection-frame.component.html',\n imports: [NgIf, NgFor, NgTemplateOutlet, C8yTranslatePipe]\n})\nexport class PreviewSelectionFrameComponent {\n @Input()\n header: string;\n\n @Input()\n name: string;\n\n @Input()\n description: string;\n\n @Input('type')\n set _type(type: string) {\n this.type = type;\n this.showType = true;\n }\n\n @ViewChild('list')\n listRef: ElementRef<any>;\n\n @ContentChildren(PreviewBlockDirective)\n previewBlocks: QueryList<PreviewBlockDirective>;\n\n type: string;\n showType = false;\n}\n","<div class=\"card-block p-t-0 flex-no-shrink separator-bottom col-xs-12\">\n <div class=\"d-flex p-b-8 p-t-4 j-c-center\">\n <div>\n <h4 class=\"text-center text-normal\">{{ header | translate }}</h4>\n <p *ngIf=\"name || description\" class=\"text-center p-t-16 p-b-8 text-truncate\">\n <strong *ngIf=\"name\" [title]=\"name\">{{ name }}</strong\n ><br />\n <small *ngIf=\"description\" [title]=\"description\">{{ description }}</small>\n </p>\n <p class=\"text-center\" *ngIf=\"showType\">\n <span class=\"label label-primary\" *ngIf=\"type; else noType\">\n {{ type }}\n </span>\n <ng-template #noType>\n <span class=\"label label-default\">\n {{ 'Undefined' | translate }}\n </span>\n </ng-template>\n </p>\n </div>\n </div>\n</div>\n<div *ngIf=\"previewBlocks?.length\" class=\"col-xs-12 flex-grow no-gutter\">\n <div class=\"card-inner-scroll fit-h\">\n <div class=\"card-block\">\n <ng-container *ngFor=\"let block of previewBlocks\">\n <div *ngIf=\"block.show\" class=\"d-flex p-b-8 j-c-center\">\n <div class=\"col-xs-12 col-sm-6\">\n <div class=\"text-truncate\" [title]=\"block.label | translate\">\n <span class=\"legend form-block\">{{ block.label | translate }}</span>\n <ng-container *ngTemplateOutlet=\"block.templateRef\"></ng-container>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n<div [style.display]=\"listRef?.nativeElement?.children?.length ? 'contents' : 'none'\">\n <div class=\"col-xs-12 flex-grow no-gutter\">\n <div class=\"card-inner-scroll fit-h\">\n <div #list class=\"card-block p-t-0 p-b-0\">\n <ng-content select=\"[list]\"> </ng-content>\n </div>\n </div>\n </div>\n</div>\n","import { Component, Input } from '@angular/core';\nimport { NgIf } from '@angular/common';\nimport { SearchResultEmptyComponent, C8yTranslatePipe } from '@c8y/ngx-components';\n\n@Component({\n selector: 'c8y-select-step-frame',\n templateUrl: './select-step-frame.component.html',\n imports: [NgIf, SearchResultEmptyComponent, C8yTranslatePipe]\n})\nexport class SelectStepFrameComponent {\n @Input()\n header: string;\n\n @Input()\n noResults: boolean;\n}\n","<div class=\"card-block overflow-visible flex-no-shrink col-xs-12 p-b-0 p-t-4 separator-bottom\">\n <div class=\"d-flex j-c-center m-b-24\">\n <div class=\"col-xs-12 col-sm-8\">\n <h4 class=\"text-normal text-center m-b-16\">\n {{ header | translate }}\n </h4>\n <ng-content select=\"[filters]\"></ng-content>\n </div>\n </div>\n <ng-content select=\"[header]\"></ng-content>\n</div>\n<c8y-search-result-empty *ngIf=\"noResults\"> </c8y-search-result-empty>\n<div class=\"col-xs-12 flex-grow no-gutter\">\n <div class=\"card-inner-scroll fit-h\">\n <div class=\"card-block p-t-0 p-b-0\">\n <ng-content select=\"[list]\"></ng-content>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { PreviewBlockDirective } from './preview-block.directive';\nimport { PreviewSelectionFrameComponent } from './preview-selection-frame.component';\nimport { SelectStepFrameComponent } from './select-step-frame.component';\n\n@NgModule({\n imports: [PreviewSelectionFrameComponent, SelectStepFrameComponent, PreviewBlockDirective],\n exports: [PreviewSelectionFrameComponent, SelectStepFrameComponent, PreviewBlockDirective]\n})\nexport class StepperFramesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAGa,qBAAqB,CAAA;AAOhC,IAAA,WAAA,CAAmB,WAA6B,EAAA;QAA7B,IAAA,CAAA,WAAW,GAAX,WAAW;QAF9B,IAAA,CAAA,IAAI,GAAG,IAAI;IAEwC;+GAPxC,qBAAqB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,CAAA,cAAA,EAAA,OAAA,CAAA,EAAA,IAAA,EAAA,CAAA,gBAAA,EAAA,MAAA,CAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC,SAAS;mBAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE;;sBAEtC,KAAK;uBAAC,cAAc;;sBAGpB,KAAK;uBAAC,gBAAgB;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