"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@angular/core");
const store_1 = require("@angular-redux/store");
const core_2 = require("@jsonforms/core");
const angular_1 = require("@jsonforms/angular");
let BooleanControlRenderer = class BooleanControlRenderer extends angular_1.JsonFormsControl {
    constructor(ngRedux) {
        super(ngRedux);
    }
};
BooleanControlRenderer = __decorate([
    core_1.Component({
        selector: 'jsonforms-boolean-control',
        template: `
      <ion-item>
          <ion-label>{{label}}</ion-label>
          <ion-checkbox [ngModel]="value" (ionChange)="onChange($event)"></ion-checkbox>
      </ion-item>
  `
    }),
    __metadata("design:paramtypes", [store_1.NgRedux])
], BooleanControlRenderer);
exports.BooleanControlRenderer = BooleanControlRenderer;
exports.booleanControlTester = core_2.rankWith(2, core_2.isBooleanControl);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vbGVhbi1jb250cm9sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2NvbnRyb2xzL2Jvb2xlYW4vYm9vbGVhbi1jb250cm9sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUEsd0NBQTBDO0FBQzFDLGdEQUErQztBQUMvQywwQ0FBMkY7QUFDM0YsZ0RBQXNEO0FBV3RELElBQWEsc0JBQXNCLEdBQW5DLDRCQUFvQyxTQUFRLDBCQUFnQjtJQUMxRCxZQUFZLE9BQWdDO1FBQzFDLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUNqQixDQUFDO0NBQ0YsQ0FBQTtBQUpZLHNCQUFzQjtJQVRsQyxnQkFBUyxDQUFDO1FBQ1QsUUFBUSxFQUFFLDJCQUEyQjtRQUNyQyxRQUFRLEVBQUU7Ozs7O0dBS1Q7S0FDRixDQUFDO3FDQUVxQixlQUFPO0dBRGpCLHNCQUFzQixDQUlsQztBQUpZLHdEQUFzQjtBQU10QixRQUFBLG9CQUFvQixHQUFpQixlQUFRLENBQ3hELENBQUMsRUFDRCx1QkFBZ0IsQ0FDakIsQ0FBQyJ9