UNPKG

ws-form-builder

Version:
40 lines 5.09 kB
"use strict"; /** * @fileoverview This file is generated by the Angular template compiler. * Do not edit. * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride} * tslint:disable */ Object.defineProperty(exports, "__esModule", { value: true }); var i0 = require("@angular/core"); var i1 = require("ionic-angular/components/label/label"); var i2 = require("ionic-angular/config/config"); var i3 = require("../../../node_modules/ionic-angular/components/item/item.ngfactory"); var i4 = require("@angular/common"); var i5 = require("ionic-angular/components/item/item"); var i6 = require("ionic-angular/util/form"); var i7 = require("ionic-angular/components/item/item-reorder"); var i8 = require("ionic-angular/components/item/item-content"); var i9 = require("../../../node_modules/ionic-angular/components/input/input.ngfactory"); var i10 = require("ionic-angular/components/input/input"); var i11 = require("ionic-angular/platform/platform"); var i12 = require("ionic-angular/components/app/app"); var i13 = require("ionic-angular/components/content/content"); var i14 = require("@angular/forms"); var i15 = require("ionic-angular/platform/dom-controller"); var i16 = require("./ws-text-input"); var i17 = require("../../providers/form-builder/form-builder"); var styles_WsTextInputComponent = [""]; var RenderType_WsTextInputComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_WsTextInputComponent, data: {} }); exports.RenderType_WsTextInputComponent = RenderType_WsTextInputComponent; function View_WsTextInputComponent_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "ion-label", [["color", "primary"], ["floating", ""]], null, null, null, null, null)), i0.ɵdid(1, 16384, [[1, 4]], 0, i1.Label, [i2.Config, i0.ElementRef, i0.Renderer, [8, ""], [8, null], [8, null], [8, null]], { color: [0, "color"] }, null), (_l()(), i0.ɵted(2, null, ["", ""]))], function (_ck, _v) { var currVal_0 = "primary"; _ck(_v, 1, 0, currVal_0); }, function (_ck, _v) { var _co = _v.component; var currVal_1 = _co.question.question; _ck(_v, 2, 0, currVal_1); }); } function View_WsTextInputComponent_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵted(-1, null, ["\n "])), (_l()(), i0.ɵeld(1, 0, null, null, 13, "ion-item", [["class", "item item-block"]], null, null, null, i3.View_Item_0, i3.RenderType_Item)), i0.ɵdid(2, 278528, null, 0, i4.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), i0.ɵdid(3, 1097728, null, 3, i5.Item, [i6.Form, i2.Config, i0.ElementRef, i0.Renderer, [2, i7.ItemReorder]], null, null), i0.ɵqud(603979776, 1, { contentLabel: 0 }), i0.ɵqud(603979776, 2, { _buttons: 1 }), i0.ɵqud(603979776, 3, { _icons: 1 }), i0.ɵdid(7, 16384, null, 0, i8.ItemContent, [], null, null), (_l()(), i0.ɵted(-1, 2, ["\n "])), (_l()(), i0.ɵand(16777216, null, 1, 1, null, View_WsTextInputComponent_1)), i0.ɵdid(10, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, 2, ["\n "])), (_l()(), i0.ɵeld(12, 0, null, 3, 1, "ion-input", [], null, [[null, "ionChange"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("ionChange" === en)) { var pd_0 = (_co.setAnswer($event, _co.question) !== false); ad = (pd_0 && ad); } return ad; }, i9.View_TextInput_0, i9.RenderType_TextInput)), i0.ɵdid(13, 5423104, null, 0, i10.TextInput, [i2.Config, i11.Platform, i6.Form, i12.App, i0.ElementRef, i0.Renderer, [2, i13.Content], [2, i5.Item], [2, i14.NgControl], i15.DomController], { value: [0, "value"], placeholder: [1, "placeholder"] }, { ionChange: "ionChange" }), (_l()(), i0.ɵted(-1, 2, ["\n "])), (_l()(), i0.ɵted(-1, null, ["\n "]))], function (_ck, _v) { var _co = _v.component; var currVal_0 = i0.ɵinlineInterpolate(1, "ws-input ", _co.fieldClass, ""); var currVal_1 = ((!_co.isFieldValid && _co.showError) ? "field-error" : ""); _ck(_v, 2, 0, currVal_0, currVal_1); var currVal_2 = !_co.question.hideQuestion; _ck(_v, 10, 0, currVal_2); var currVal_3 = i0.ɵinlineInterpolate(1, "", _co.fieldValue, ""); var currVal_4 = i0.ɵinlineInterpolate(1, "", _co.question.placeholder, ""); _ck(_v, 13, 0, currVal_3, currVal_4); }, null); } exports.View_WsTextInputComponent_0 = View_WsTextInputComponent_0; function View_WsTextInputComponent_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ws-text-input", [], null, null, null, View_WsTextInputComponent_0, RenderType_WsTextInputComponent)), i0.ɵdid(1, 114688, null, 0, i16.WsTextInputComponent, [i17.FormBuilderProvider], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); } exports.View_WsTextInputComponent_Host_0 = View_WsTextInputComponent_Host_0; var WsTextInputComponentNgFactory = i0.ɵccf("ws-text-input", i16.WsTextInputComponent, View_WsTextInputComponent_Host_0, { question: "question" }, { answerGiven: "answerGiven" }, []); exports.WsTextInputComponentNgFactory = WsTextInputComponentNgFactory; //# sourceMappingURL=ws-text-input.ngfactory.js.map