UNPKG

formiojs

Version:

Common js library for client side interaction with <form.io>

41 lines 1.47 kB
Object.defineProperty(exports, "__esModule", { value: true }); exports.default=function(ctx) { var __t, __p = '', __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } __p += '<div class="field-wrapper\n ' + ((__t = (ctx.isRightPosition ? 'field-wrapper--reverse' : '')) == null ? '' : __t) + '">\n '; if (!ctx.label.hidden) { ; __p += '\n <div class="field-label\n ' + ((__t = (ctx.isRightAlign ? 'field-label--right' : '')) == null ? '' : __t) + '"\n style="' + ((__t = (ctx.labelStyles)) == null ? '' : __t) + '">\n ' + ((__t = ( ctx.labelMarkup )) == null ? '' : __t) + '\n </div>\n '; } ; __p += '\n\n '; if (ctx.label.hidden && ctx.label.className && ctx.component.validate.required) { ; __p += '\n <div class="field-label\n ' + ((__t = (ctx.isRightAlign ? 'field-label--right' : '')) == null ? '' : __t) + '"\n style="' + ((__t = (ctx.labelStyles)) == null ? '' : __t) + '">\n <label class="' + ((__t = (ctx.label.className)) == null ? '' : __t) + '"></label>\n </div>\n '; } ; __p += '\n\n <div class="field-content" style="' + ((__t = (ctx.contentStyles)) == null ? '' : __t) + '">\n ' + ((__t = (ctx.element)) == null ? '' : __t) + '\n </div>\n</div>\n\n'; if (ctx.component.description) { ; __p += '\n <div class="form-text text-muted">' + ((__t = (ctx.t(ctx.component.description, { _userInput: true }))) == null ? '' : __t) + '</div>\n'; } ; __p += '\n'; return __p }