formsflow-theming
Version:
US Web Design System templates for form.io
41 lines • 1.31 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default=function(ctx) {
var __t, __p = '', __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
__p += '<select\r\n ref="' +
((__t = (ctx.input.ref ? ctx.input.ref : 'selectContainer')) == null ? '' : __t) +
'"\r\n class="formsflow-select maxw-full ' +
((__t = (ctx.disabled ? 'bg-base-lightest' : '')) == null ? '' : __t) +
'"\r\n ';
for (var attr in ctx.input.attr) { ;
__p += '\r\n ' +
((__t = (attr)) == null ? '' : __t) +
'="' +
((__t = (ctx.input.attr[attr])) == null ? '' : __t) +
'"\r\n ';
} ;
__p += '\r\n ';
if (!ctx.input.attr.id) { ;
__p += '\r\n id="' +
((__t = (ctx.instance.id)) == null ? '' : __t) +
'-' +
((__t = (ctx.component.key)) == null ? '' : __t) +
'"\r\n ';
} ;
__p += '\r\n ';
if (ctx.component.description) { ;
__p += '\r\n aria-describedby="d-' +
((__t = (ctx.instance.id)) == null ? '' : __t) +
'-' +
((__t = (ctx.component.key)) == null ? '' : __t) +
'"\r\n ';
} ;
__p += '\r\n aria-required="' +
((__t = (ctx.input.ref === 'selectContainer' || !ctx.input.ref ? ctx.input.component.validate.required : ctx.component.fields[ctx.input.ref].required)) == null ? '' : __t) +
'"\r\n>' +
((__t = (ctx.selectOptions)) == null ? '' : __t) +
'</select>\r\n';
return __p
}