@dosgato/templating
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -11,7 +11,7 @@ "use strict"; | ||
return ` | ||
<div class="dg-edit-bar ${(_a = opts.extraClass) !== null && _a !== void 0 ? _a : ''}" data-path="${(0, txstate_utils_1.htmlEncode)(path)}"> | ||
<div class="dg-edit-bar ${(_a = opts.extraClass) !== null && _a !== void 0 ? _a : ''}" data-path="${(0, txstate_utils_1.htmlEncode)(path)}" draggable="true" ondragstart="window.dgEditing.drag(event)" ondragover="window.dgEditing.over(event)" ondragend="window.dgEditing.drop(event)"> | ||
<span id="${id}" class="dg-edit-bar-label">${(0, txstate_utils_1.htmlEncode)(opts.label)}</span> | ||
<button onClick="window.dgEditing.edit" aria-describedby="${id}">Edit</button> | ||
<button onClick="window.dgEditing.move" aria-describedby="${id}">Move</button> | ||
<button onClick="window.dgEditing.del" aria-describedby="${id}">Trash</button> | ||
<button onclick="window.dgEditing.edit(event)" aria-describedby="${id}">Edit</button> | ||
<button onclick="window.dgEditing.move(event)" aria-describedby="${id}">Move</button> | ||
<button onclick="window.dgEditing.del(event)" aria-describedby="${id}">Trash</button> | ||
</div> | ||
@@ -26,4 +26,4 @@ `.trim(); | ||
return ` | ||
<div class="dg-new-bar ${(_a = opts.extraClass) !== null && _a !== void 0 ? _a : ''}" data-path="${(0, txstate_utils_1.htmlEncode)(path)}"> | ||
<button>${(0, txstate_utils_1.htmlEncode)(opts.label)}</button> | ||
<div role="button" onclick="window.dgEditing.create(event)" class="dg-new-bar ${(_a = opts.extraClass) !== null && _a !== void 0 ? _a : ''}" data-path="${(0, txstate_utils_1.htmlEncode)(path)}"> | ||
${(0, txstate_utils_1.htmlEncode)(opts.label)} | ||
</div> | ||
@@ -30,0 +30,0 @@ `.trim(); |
{ | ||
"name": "@dosgato/templating", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "A library to support building templates for dosgato CMS.", | ||
@@ -5,0 +5,0 @@ "exports": { |
37371
769