angular2-schema-form
Version:
Angular2 Schema Form (DISCLAIMER: it is not related to angular-schema-form)
1 lines • 2.89 kB
JSON
[{"__symbolic":"module","version":3,"metadata":{"StringWidget":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../widget","name":"ControlWidget"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"sf-string-widget","template":"<input *ngIf=\"this.getInputType()==='hidden'; else notHiddenFieldBlock\"\n [attr.name]=\"name\" type=\"hidden\" [formControl]=\"control\">\n<ng-template #notHiddenFieldBlock>\n<div class=\"widget form-group\">\n <label [attr.for]=\"id\" class=\"horizontal control-label\">\n \t{{ schema.title }}\n </label>\n <span *ngIf=\"schema.description\" class=\"formHelp\">{{schema.description}}</span>\n <input [name]=\"name\" [attr.readonly]=\"(schema.widget.id!=='color') && schema.readOnly?true:null\"\n class=\"text-widget.id textline-widget form-control\" [attr.type]=\"this.getInputType()\"\n [attr.id]=\"id\" [formControl]=\"control\" [attr.placeholder]=\"schema.placeholder\"\n [attr.maxLength]=\"schema.maxLength || null\"\n [attr.minLength]=\"schema.minLength || null\"\n [attr.disabled]=\"(schema.widget.id=='color' && schema.readOnly)?true:null\">\n <input *ngIf=\"(schema.widget.id==='color' && schema.readOnly)\" [attr.name]=\"name\" type=\"hidden\" [formControl]=\"control\">\n</div>\n</ng-template>"}]}],"members":{"getInputType":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"StringWidget":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../widget","name":"ControlWidget"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"sf-string-widget","template":"<input *ngIf=\"this.getInputType()==='hidden'; else notHiddenFieldBlock\"\n [attr.name]=\"name\" type=\"hidden\" [formControl]=\"control\">\n<ng-template #notHiddenFieldBlock>\n<div class=\"widget form-group\">\n <label [attr.for]=\"id\" class=\"horizontal control-label\">\n \t{{ schema.title }}\n </label>\n <span *ngIf=\"schema.description\" class=\"formHelp\">{{schema.description}}</span>\n <input [name]=\"name\" [attr.readonly]=\"(schema.widget.id!=='color') && schema.readOnly?true:null\"\n class=\"text-widget.id textline-widget form-control\" [attr.type]=\"this.getInputType()\"\n [attr.id]=\"id\" [formControl]=\"control\" [attr.placeholder]=\"schema.placeholder\"\n [attr.maxLength]=\"schema.maxLength || null\"\n [attr.minLength]=\"schema.minLength || null\"\n [attr.disabled]=\"(schema.widget.id=='color' && schema.readOnly)?true:null\">\n <input *ngIf=\"(schema.widget.id==='color' && schema.readOnly)\" [attr.name]=\"name\" type=\"hidden\" [formControl]=\"control\">\n</div>\n</ng-template>"}]}],"members":{"getInputType":[{"__symbolic":"method"}]}}}}]