UNPKG

@formio/uswds

Version:

US Web Design System templates for form.io

55 lines 2.73 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="form-builder-panel" ref="group-panel-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '">\n <div class="usa-accordion__heading form-builder-group-header" id="heading-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '">\n <h5 class="mb-0 mt-0 form-builder-group-heading">\n <button\n class="usa-accordion__button builder-group-button"\n type="button"\n data-toggle="collapse"\n data-target="#group-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '"\n data-parent="#' + ((__t = (ctx.groupId)) == null ? '' : __t) + '"\n aria-expanded="' + ((__t = (ctx.group.default)) == null ? '' : __t) + '"\n aria-controls="group-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '"\n ref="sidebar-anchor"\n >\n ' + ((__t = (ctx.t(ctx.group.title))) == null ? '' : __t) + '\n </button>\n </h5>\n </div>\n <div\n id="group-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '"\n class="collapse ' + ((__t = (ctx.group.default ? ' show' : '')) == null ? '' : __t) + '"\n data-parent="#' + ((__t = (ctx.groupId)) == null ? '' : __t) + '"\n data-default="' + ((__t = (ctx.group.default)) == null ? '' : __t) + '"\n aria-labelledby="heading-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '"\n ref="sidebar-group"\n >\n <div\n id="group-container-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '"\n class="usa-accordion__content display-flex flex-column flex-align-stretch no-drop padding-1"\n ref="sidebar-container"\n >\n '; !ctx.group.componentOrder || ctx.group.componentOrder.forEach(function(componentKey) { ; __p += '\n <span\n data-group="' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '"\n data-key="' + ((__t = (ctx.group.components[componentKey].key)) == null ? '' : __t) + '"\n data-type="' + ((__t = (ctx.group.components[componentKey].schema.type)) == null ? '' : __t) + '"\n class="usa-button usa-button--default formcomponent drag-copy"\n >\n '; if (ctx.group.components[componentKey].icon) { ; __p += '\n <i class="' + ((__t = (ctx.iconClass(ctx.group.components[componentKey].icon))) == null ? '' : __t) + '" style="margin-right: 5px;"></i>\n '; } ; __p += '\n ' + ((__t = (ctx.t(ctx.group.components[componentKey].title))) == null ? '' : __t) + '\n </span>\n '; }) ; __p += '\n ' + ((__t = (ctx.subgroups.join(''))) == null ? '' : __t) + '\n </div>\n </div>\n</div>\n'; return __p }