UNPKG

formsflow-theming

Version:

US Web Design System templates for form.io

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