@adobe/coral-spectrum
Version:
Coral Spectrum is a JavaScript library of Web Components following Spectrum design patterns.
86 lines • 3.96 kB
JavaScript
const template = (function anonymous(data_0
) {
var frag = document.createDocumentFragment();
var data = data_0;
var el0 = this["remove"] = document.createElement("button","coral-button");
el0.id = data_0["uid"]+"-remove";
el0.setAttribute("aria-labelledby", data_0["uid"]+"-remove "+data_0["uid"]);
el0.setAttribute("aria-label", data_0["i18n"]["get"]('Remove'));
el0.setAttribute("title", data_0["i18n"]["get"]('Remove'));
el0.setAttribute("tracking", "off");
el0.setAttribute("type", "button");
el0.setAttribute("is", "coral-button");
el0.setAttribute("handle", "remove");
el0.setAttribute("variant", "quietaction");
el0.setAttribute("icon", "delete");
el0.setAttribute("iconsize", "S");
el0.setAttribute("iconautoarialabel", "on");
el0.className += " _coral-Multifield-remove";
el0.setAttribute("coral-multifield-remove", "");
frag.appendChild(el0);
var el1 = document.createTextNode("\n");
frag.appendChild(el1);
var el2 = this["move"] = document.createElement("button","coral-button");
el2.id = data_0["uid"]+"-reorder";
el2.setAttribute("aria-labelledby", data_0["uid"]+"-reorder "+data_0["uid"]);
el2.setAttribute("aria-label", data_0["i18n"]["get"]('Reorder'));
el2.setAttribute("aria-roledescription", data_0["i18n"]["get"]('reorder_drag_handle'));
el2.setAttribute("aria-grabbed", "false");
el2.setAttribute("aria-pressed", "false");
el2.setAttribute("title", data_0["i18n"]["get"]('reorder_hint'));
el2.setAttribute("tracking", "off");
el2.setAttribute("type", "button");
el2.setAttribute("is", "coral-button");
el2.setAttribute("handle", "move");
el2.setAttribute("variant", "quietaction");
el2.setAttribute("icon", "moveUpDown");
el2.setAttribute("iconsize", "S");
el2.setAttribute("iconautoarialabel", "on");
el2.className += " _coral-Multifield-move u-coral-openHand";
el2.setAttribute("coral-multifield-move", "");
frag.appendChild(el2);
var el3 = document.createTextNode("\n");
frag.appendChild(el3);
var el4 = this["reorderup"] = document.createElement("button","coral-button");
el4.id = data_0["uid"]+"-up";
el4.setAttribute("aria-labelledby", data_0["uid"]+"-up "+data_0["uid"]);
el4.setAttribute("aria-label", data_0["i18n"]["get"]('Reorder up'));
el4.setAttribute("aria-grabbed", "false");
el4.setAttribute("aria-pressed", "false");
el4.setAttribute("title", data_0["i18n"]["get"]('reorder_hint'));
el4.setAttribute("tracking", "off");
el4.setAttribute("type", "button");
el4.setAttribute("is", "coral-button");
el4.setAttribute("handle", "reorderup");
el4.setAttribute("variant", "quietaction");
el4.setAttribute("icon", "ChevronUp");
el4.setAttribute("iconsize", "S");
el4.setAttribute("iconautoarialabel", "on");
el4.className += " _coral-Multifield-up u-coral-openHand";
el4.setAttribute("coral-multifield-up", "");
frag.appendChild(el4);
var el5 = document.createTextNode("\n");
frag.appendChild(el5);
var el6 = this["reorderdown"] = document.createElement("button","coral-button");
el6.id = data_0["uid"]+"-down";
el6.setAttribute("aria-labelledby", data_0["uid"]+"-down "+data_0["uid"]);
el6.setAttribute("aria-label", data_0["i18n"]["get"]('Reorder down'));
el6.setAttribute("aria-grabbed", "false");
el6.setAttribute("aria-pressed", "false");
el6.setAttribute("title", data_0["i18n"]["get"]('reorder_hint'));
el6.setAttribute("tracking", "off");
el6.setAttribute("type", "button");
el6.setAttribute("is", "coral-button");
el6.setAttribute("handle", "reorderdown");
el6.setAttribute("variant", "quietaction");
el6.setAttribute("icon", "ChevronDown");
el6.setAttribute("iconsize", "S");
el6.setAttribute("iconautoarialabel", "on");
el6.className += " _coral-Multifield-down u-coral-openHand";
el6.setAttribute("coral-multifield-down", "");
frag.appendChild(el6);
var el7 = document.createTextNode("\n");
frag.appendChild(el7);
return frag;
});
export default template;