import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "./value-view-label.component";
import * as i3 from "./value-views/boolean-value-view/boolean-value-view.component";
import * as i4 from "./value-views/text-value-view/text-value-view.component";
import * as i5 from "./value-views/image-value-view/image-value-view.component";
import * as i6 from "./value-views/file-value-view/file-value-view.component";
import * as i7 from "./value-views/rich-text-value-view/rich-text-value-view.component";
import * as i8 from "./value-views/date-value-view/date-value-view.component";
import * as i9 from "@aztrix/helpers";
export class ValueViewComponent {
}
ValueViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ValueViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
ValueViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ValueViewComponent, selector: "ax-value-view", inputs: { type: "type", label: "label", value: "value" }, ngImport: i0, template: "<ax-value-view-label *ngIf=\"label\" [label]=\"label\"></ax-value-view-label>\n\n<ng-template #valueView let-v>\n  <ng-container [ngSwitch]=\"type\">\n    <ax-boolean-value-view *ngSwitchCase=\"'BOOLEAN'\" [value]=\"v\"></ax-boolean-value-view>\n    <ax-image-value-view *ngSwitchCase=\"'IMAGE'\" [value]=\"v\"></ax-image-value-view>\n    <ax-file-value-view *ngSwitchCase=\"'FILE'\" [value]=\"v\"></ax-file-value-view>\n    <ax-rich-text-value-view *ngSwitchCase=\"'RICH_TEXT'\" [value]=\"v\"></ax-rich-text-value-view>\n    <ax-date-value-view *ngSwitchCase=\"'DATE'\" [value]=\"v\"></ax-date-value-view>\n    <ax-text-value-view *ngSwitchDefault [value]=\"v\"></ax-text-value-view>\n  </ng-container>\n</ng-template>\n\n<ng-template #string>\n  <ng-container *ngTemplateOutlet=\"valueView; context: {$implicit: value}\"></ng-container>\n</ng-template>\n<ng-container *ngIf=\"value | isArray; else string\">\n  <ul class=\"values\">\n    <li *ngFor=\"let v of value\">\n      <ng-container *ngTemplateOutlet=\"valueView; context: {$implicit: v}\"></ng-container>\n    </li>\n  </ul>\n</ng-container>\n", styles: [":host{display:block;padding:.5rem 0}:host:first-child{padding-top:0}:host:last-child{padding-bottom:0}.values{margin:0}.values{list-style-type:none;padding-left:0;margin:0}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.ValueViewLabelComponent, selector: "ax-value-view-label", inputs: ["label"] }, { kind: "component", type: i3.BooleanValueViewComponent, selector: "ax-boolean-value-view" }, { kind: "component", type: i4.TextValueViewComponent, selector: "ax-text-value-view" }, { kind: "component", type: i5.ImageValueViewComponent, selector: "ax-image-value-view" }, { kind: "component", type: i6.FileValueViewComponent, selector: "ax-file-value-view" }, { kind: "component", type: i7.RichTextValueViewComponent, selector: "ax-rich-text-value-view" }, { kind: "component", type: i8.DateValueViewComponent, selector: "ax-date-value-view" }, { kind: "pipe", type: i9.IsArrayPipe, name: "isArray" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ValueViewComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-value-view', template: "<ax-value-view-label *ngIf=\"label\" [label]=\"label\"></ax-value-view-label>\n\n<ng-template #valueView let-v>\n  <ng-container [ngSwitch]=\"type\">\n    <ax-boolean-value-view *ngSwitchCase=\"'BOOLEAN'\" [value]=\"v\"></ax-boolean-value-view>\n    <ax-image-value-view *ngSwitchCase=\"'IMAGE'\" [value]=\"v\"></ax-image-value-view>\n    <ax-file-value-view *ngSwitchCase=\"'FILE'\" [value]=\"v\"></ax-file-value-view>\n    <ax-rich-text-value-view *ngSwitchCase=\"'RICH_TEXT'\" [value]=\"v\"></ax-rich-text-value-view>\n    <ax-date-value-view *ngSwitchCase=\"'DATE'\" [value]=\"v\"></ax-date-value-view>\n    <ax-text-value-view *ngSwitchDefault [value]=\"v\"></ax-text-value-view>\n  </ng-container>\n</ng-template>\n\n<ng-template #string>\n  <ng-container *ngTemplateOutlet=\"valueView; context: {$implicit: value}\"></ng-container>\n</ng-template>\n<ng-container *ngIf=\"value | isArray; else string\">\n  <ul class=\"values\">\n    <li *ngFor=\"let v of value\">\n      <ng-container *ngTemplateOutlet=\"valueView; context: {$implicit: v}\"></ng-container>\n    </li>\n  </ul>\n</ng-container>\n", styles: [":host{display:block;padding:.5rem 0}:host:first-child{padding-top:0}:host:last-child{padding-bottom:0}.values{margin:0}.values{list-style-type:none;padding-left:0;margin:0}\n"] }]
        }], propDecorators: { type: [{
                type: Input
            }], label: [{
                type: Input
            }], value: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUtdmlldy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvdmFsdWUtdmlldy92YWx1ZS12aWV3LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy92YWx1ZS12aWV3L3ZhbHVlLXZpZXcuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7Ozs7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