UNPKG

angular2-schema-form

Version:

Angular2 Schema Form (DISCLAIMER: it is not related to angular-schema-form)

29 lines (28 loc) 1.45 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { Component } from '@angular/core'; import { ObjectLayoutWidget } from '../../widget'; var ObjectWidget = (function (_super) { __extends(ObjectWidget, _super); function ObjectWidget() { return _super !== null && _super.apply(this, arguments) || this; } return ObjectWidget; }(ObjectLayoutWidget)); export { ObjectWidget }; ObjectWidget.decorators = [ { type: Component, args: [{ selector: 'sf-form-object', template: "<fieldset *ngFor=\"let fieldset of formProperty.schema.fieldsets\">\n\t<legend *ngIf=\"fieldset.title\">{{fieldset.title}}</legend>\n\t<div *ngIf=\"fieldset.description\">{{fieldset.description}}</div>\n\t<div *ngFor=\"let fieldId of fieldset.fields\">\n\t\t<sf-form-element [formProperty]=\"formProperty.getProperty(fieldId)\"></sf-form-element>\n\t</div>\n</fieldset>" },] }, ]; /** @nocollapse */ ObjectWidget.ctorParameters = function () { return []; };