UNPKG

formsflow-theming

Version:

US Web Design System templates for form.io

35 lines 1.29 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 += '<fieldset class="formsflow-fieldset">\r\n '; if (ctx.component.legend) { ; __p += '\r\n <legend ref="header" class="formsflow-sr-only">\r\n ' + ((__t = (ctx.t(ctx.component.legend))) == null ? '' : __t) + '\r\n </legend>\r\n <span class="legend-wrapper formsflow-legend">\r\n <span class="position-relative ' + ((__t = (ctx.component.collapsible ? 'formio-clickable' : '')) == null ? '' : __t) + '">\r\n ' + ((__t = (ctx.t(ctx.component.legend))) == null ? '' : __t) + '\r\n </span>\r\n '; if (ctx.component.tooltip) { ; __p += '\r\n <span ref="tooltip" data-tooltip="' + ((__t = (ctx.component.tooltip)) == null ? '' : __t) + '" class="' + ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) + ' text-base" tabindex="0"></span>\r\n '; } ; __p += '\r\n </span>\r\n '; } ; __p += '\r\n '; if (!ctx.collapsed) { ; __p += '\r\n <div class="fieldset-body" ref="' + ((__t = (ctx.nestedKey)) == null ? '' : __t) + '">\r\n ' + ((__t = (ctx.children)) == null ? '' : __t) + '\r\n </div>\r\n '; } ; __p += '\r\n</fieldset>\r\n'; return __p }