UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

1 lines 20.4 kB
module.exports=function(i){var n={};function l(e){if(n[e])return n[e].exports;var t=n[e]={exports:{},id:e,loaded:!1};return i[e].call(t.exports,t,t.exports,l),t.loaded=!0,t.exports}return l.m=i,l.c=n,l.p="",l(0)}({0:function(e,t,i){e.exports=i(1005)},3:function(e,t){e.exports=function(){throw Error("define cannot be used indirect")}},997:function(e,t){e.exports=require("./formatblock")},1005:function(e,t,i){var n;i(3),i=[i(997),i(1006)],void 0===(t="function"==typeof(n=function(){var u=window.kendo.jQuery,t=void 0,w=window.kendo,i=u.extend,f=w.ui.editor,m=f.Dom,a=f.EditorUtils,c=f.RangeUtils,n=f.Command,v="kendoEditor",l="k-state-active",d="k-state-selected",h="scope",_="row",C="col",x="rowgroup",T="colgroup",g="colspan",b="rowspan",A="table",R="thead",p="tbody",y="tr",S="td",k="th",I=f.Tool,s=f.ToolTemplate,o=f.InsertHtmlCommand,z=f.BlockFormatFinder,N=f.BlockFormatTool,E=f.FormatCommand,r=f.EditorUtils.registerTool,H=f.EditorUtils.registerFormat,M=w.ui.Editor.fn.options.formats,P=w.getTouches,L=w.template,B="<td style='width:#=width#%;'>#=content#</td>",F=new z([{tags:[A]}]),W=o.extend({init:function(e){var t=u.extend({postProcess:this.postProcess,skipCleaners:true},e||{});o.fn.init.call(this,t)},_tableHtml:function(e,t){e=e||1;t=t||1;var i=L(B)({width:100/t,content:f.emptyTableCellContent});var n=100/e;return"<table class='k-table' data-last>"+new Array(e+1).join("<tr style='height:"+n+"%;'>"+new Array(t+1).join(i)+"</tr>")+"</table>"},postProcess:function(e,t){var i=u("table[data-last]",e.document).removeAttr("data-last");t.setStart(i.find(S)[0],0);t.collapse(true);e.selectRange(t)},exec:function(){var e=this.options;e.html=this._tableHtml(e.rows,e.columns);o.fn.exec.call(this)}}),j=I.extend({initialize:function(e,t){I.fn.initialize.call(this,e,t);var i=u(this.options.popupTemplate).appendTo("body").kendoPopup({anchor:e,copyAnchorStyles:false,open:this._open.bind(this),activate:this._activate.bind(this),close:this._close.bind(this)}).data("kendoPopup");e.on("click",this._toggle.bind(this)).on("keydown",this._keydown.bind(this));var n=this._editor=t.editor;this._popup=i;var l=new f.TableWizardTool({template:new s({template:a.tableWizardButtonTemplate,title:n.options.messages.tableWizard}),command:f.TableWizardCommand,insertNewTable:true});r("tableWizardInsert",l);var o=u("<div>"+l.options.template.getHtml()+"</div>");o.appendTo(i.element);if(n.toolbar)n.toolbar.attachToolsEvents(o)},popup:function(){return this._popup},_activate:u.noop,_open:function(){this._popup.options.anchor.addClass(l)},_close:function(){this._popup.options.anchor.removeClass(l)},_keydown:function(e){var t=this,i=w.keys,n=e.keyCode,l=true;if(n==i.DOWN&&e.altKey||n==i.ENTER||n==i.SPACEBAR){t._popup.open();l=false}else if(n==i.ESC)t._popup.close()},_toggle:function(e){var t=u(e.target).closest(".k-tool");if(!t.hasClass("k-disabled"))this.popup().toggle()},update:function(e){var t=this.popup();if(t.wrapper&&t.wrapper.css("display")=="block")t.close();e.removeClass("k-hover")},destroy:function(){this._popup.destroy()}}),D=j.extend({init:function(e){this.cols=8;this.rows=6;j.fn.init.call(this,u.extend(e,{command:W,popupTemplate:"<div class='k-ct-popup'>"+"<div>"+new Array(this.cols*this.rows+1).join("<span class='k-ct-cell k-state-disabled'></span>")+"</div>"+"<div class='k-status'></div>"+"</div>"}))},_activate:function(){var i=this,e=i._popup.element,t=e.find(".k-ct-cell"),n=t.eq(0),l=t.eq(t.length-1),o=w.getOffset(n),a=w.getOffset(l),p=i.cols,c=i.rows,s,r;e.find("*").addBack().attr("unselectable","on");a.left+=l[0].offsetWidth;a.top+=l[0].offsetHeight;s=(a.left-o.left)/p;r=(a.top-o.top)/c;function d(e){var t=u(window);return{row:Math.floor((e.clientY+t.scrollTop()-o.top)/r)+1,col:Math.floor((e.clientX+t.scrollLeft()-o.left)/s)+1}}e.autoApplyNS(v).on("mousemove",".k-ct-cell",function(e){i._setTableSize(d(e))}).on("mouseleave",".k-ct-cell",function(){i._setTableSize()}).on("down",".k-ct-cell",function(e){e.preventDefault();var t=P(e)[0];i._exec(d(t.location))})},_valid:function(e){return e&&e.row>0&&e.col>0&&e.row<=this.rows&&e.col<=this.cols},_exec:function(e){if(this._valid(e)){this._editor.exec("createTable",{rows:e.row,columns:e.col});this._popup.close()}},_setTableSize:function(t){var e=this._popup.element;var i=e.find(".k-status");var n=e.find(".k-ct-cell");var l=this.cols;var o=this._editor.options.messages;if(this._valid(t)){i.text(w.format(o.createTableHint,t.row,t.col));n.each(function(e){u(this).toggleClass(d,e%l<t.col&&e/l<t.row)})}else{i.text(o.createTable);n.removeClass(d)}},_keydown:function(e){var t=this._popup.visible();j.fn._keydown.call(this,e);if(!this._popup.visible())return;var i=w.keys;var n=e.keyCode;var p=this._popup.element.find(".k-ct-cell");var l=Math.max(p.filter(".k-state-selected").last().index(),0);var o=Math.floor(l/this.cols);var a=l%this.cols;var s=false,r;if(n==i.DOWN&&!e.altKey){s=true;o++}else if(n==i.UP){s=true;o--}else if(n==i.RIGHT){s=true;a++}else if(n==i.LEFT){s=true;a--}else if(n==i.TAB){r=this._popup.element.find(".k-button");if(r.length>0){s=true;r.trigger("focus")}}var d={row:Math.max(1,Math.min(this.rows,o+1)),col:Math.max(1,Math.min(this.cols,a+1))};if(n==i.ENTER&&t)this._exec(d);else this._setTableSize(d);if(s){e.preventDefault();e.stopImmediatePropagation()}},_open:function(){var e=this._editor.options.messages;j.fn._open.call(this);this.popup().element.find(".k-status").text(e.createTable).end().find(".k-ct-cell").removeClass(d)},_close:function(){j.fn._close.call(this);this.popup().element.off("."+v)}}),O=n.extend({undo:function(){var e=this.restorePoint;e.restoreHtml();u(this.editor.body).find(".k-element-resize-handle-wrapper").each(function(e,t){t.remove()});this.editor.selectRange(e.toRange())},_clearColIndexAttr:function(e){m.clearTableMappings(e,"col-index")},_mapColIndices:function(e){m.reMapTableColumns(e,"col-index")},_findRowSpanCell:function(e,t,i){var n,l;for(var o=t;o>=0;o--){n=e.rows[o];l=u(n).find("[col-index="+i+"]");if(l.length)return l}},_resetElementResizing:function(e){e._destroyResizings();e._initializeColumnResizing();e._initializeRowResizing();e._initializeElementResizing()},_findNextTdInRow:function(e,t){var i=e.find("td:last-child"),n=parseInt(i.attr("col-index"),10)+i.prop("colSpan")-1,l;for(var o=t;o<=n;o++){l=e.find("[col-index="+o+"]");if(l.length)return l}},_adjustColgroups:function(e,t){var i=t.getElementsByTagName(C),n=t.getElementsByTagName(T),l=e.cells,o=l.length,a,s,r;while(i.length>0)i[0].remove();while(n.length>0)n[0].remove();for(a=o-1;a>=0;a--){r=l[a];if(r.getAttribute(h)===T){s=m.createEmptyNode(this.editor.document,T);s.setAttribute("span",r.getAttribute(g));t.prepend(s)}else t.prepend(m.createEmptyNode(this.editor.document,C))}},_associateHeaderIds:function(e){m.clearTableMappings(e,"col-index");m.reMapTableColumns(e,"col-index");u(e).find("th, td").removeAttr("id headers");m.associateWithIds(e)},_getNumberOfColumns:function(e){return m._getNumberOfColumns(e,"td, th")}}),V=O.extend({exec:function(){var e=this.lockRange(true),t=m.closest(e.endContainer,[S,k]),i=m.closest(t,A),n=this.options.position||"after",p,l,o,a,s,c,r;if(!i||this.immutables()&&f.Immutables.immutableParent(t)){this.releaseRange(e);return}this._mapColIndices(i);l=t.parentNode;s=m.findNodeIndex(l,true);if(t.rowSpan>1&&n==="after")l=i.rows[s+t.rowSpan-1];p=this._getNumberOfColumns(i);a=l.cloneNode(true);u(a).empty();for(var d=0;d<p;d=d+o.prop("colSpan")){o=u(l).find("[col-index="+d+"]");if(o.length)if(o.prop("rowSpan")>1&&n==="after"&&o)o.attr(b,o.prop("rowSpan")+1);else this._appendCell(a,o);else{s=m.findNodeIndex(l,true);o=this._findRowSpanCell(l.parentElement,s,d);c=o.closest(y).index();if(c+o.prop("rowSpan")-1===s&&n==="after")this._appendCell(a,o);else o.attr(b,o.prop("rowSpan")+1)}r=u(a).find("[col-index="+d+"]");if(r.attr(h)===x&&!r.attr(b))r.attr(h,_)}if(n=="before")m.insertBefore(a,l);else m.insertAfter(a,l);if(u(i).find("[headers]").length>0)this._associateHeaderIds(i);this._clearColIndexAttr(i);this.releaseRange(e);this._resetElementResizing(this.editor)},_appendCell:function(e,t){var i;i=t.clone();i.html(f.emptyTableCellContent);i.removeAttr(b);i.appendTo(e)}}),q=O.extend({exec:function(){var e=this.lockRange(true),t=m.closest(e.endContainer,[S,k]),i=m.closest(t,A),n=i.getElementsByTagName(C),p=i.getElementsByTagName(T),l,o,a=i&&i.rows,s,r,d=this.options.position||"after";if(!t||this.immutables()&&f.Immutables.immutableParent(t)){this.releaseRange(e);return}this._mapColIndices(i);l=parseInt(t.getAttribute("col-index"),10);if(t.colSpan>1&&d==="after"){t.setAttribute("col-index",l+t.colSpan-1);l=l+t.colSpan-1}for(o=0;o<a.length;o++){s=this._processForColSpan(a[o],l,d,t);if(!s)continue;r=s.cloneNode();r.innerHTML=f.emptyTableCellContent;r.removeAttribute(g);if(r.getAttribute(h)&&r.getAttribute(h)===T)r.setAttribute(h,C);if(d=="before")m.insertBefore(r,s);else m.insertAfter(r,s);this._resizeCells(r,s)}if(n.length>0||p.length>0)this._adjustColgroups(a[0],i);if(u(i).find("[headers]").length>0)this._associateHeaderIds(i);this._clearColIndexAttr(i);this.releaseRange(e);this._resetElementResizing(this.editor)},_processForColSpan:function(e,t,i,n){var l,o,a=t-1;l=u(e).find("[col-index="+t+"]")[0];if(l&&l.colSpan>1&&i==="after"&&l!==n){l.colSpan+=1;return}if(l)return l;for(a;a>=0;a--){l=u(e).find("[col-index="+a+"]")[0];if(l&&l.colSpan>1)break}if(!l)return;o=parseInt(l.getAttribute("col-index"),10)+l.colSpan-1;if(o===t&&i==="after")return l;else if(t<=o)l.setAttribute(g,l.colSpan+1)},_resizeCells:function(e,t){var i=e.style.width,n,l,o;if(!i)return;n=parseFloat(i);l=i.slice(n.toString().length);o=n/2+l;e.style.width=o;t.style.width=o}}),U=O.extend({exec:function(){var e=this.lockRange();var t=c.mapAll(e,function(e){return u(e).closest(y)[0]});var i=m.closest(e.endContainer,[S,k]);var n=t[0];var p=i?i.rowSpan:1;var l=u(t[0]).index();var o=m.closest(n,A);var a=n.parentElement;var s;if(!o||this.immutables()&&f.Immutables.immutableParent(n)){this.releaseRange(e);return}for(var r=0;r<p;r++)if(t.indexOf(a.rows[l+r])<0)t.push(a.rows[l+r]);if(o.rows.length<=t.length){s=m.next(o);if(!s||m.insignificant(s))s=m.prev(o);if(s&&s.rows)s=s.rows[0].cells[0];m.remove(o);this._resetElementResizing(this.editor)}else if(a.rows.length<=t.length){s=a.nextSibling;if(!s)s=a.previousSibling;m.remove(a)}else{this._mapColIndices(o);for(var d=0;d<t.length;d++){n=t[d];m.removeTextSiblings(n);s=m.next(n)||m.prev(n);s=s.cells[0];this._focusElement(e,s);s=null;this._handleRowSpanCells(o,n);m.remove(n)}this._clearColIndexAttr(o)}if(u(o).find("[headers]").length>0)this._associateHeaderIds(o);else if(m.is(a,R)&&u(o).find("[scope]").length>0)this._adjustColgroups(a.rows[0],o);if(s)this._focusElement(e,s);this._resetElementResizing(this.editor)},_focusElement:function(e,t){e.setStart(t,0);e.collapse(true);this.editor.selectRange(e)},_handleRowSpanCells:function(e,t){var i,n,l,o,a=m.findNodeIndex(t,true),s=e.rows[0],r=s.cells[s.cells.length-1],d=parseInt(r.getAttribute("col-index"),10)+r.colSpan-1;for(i=0;i<=d;i=i+n.prop("colSpan")){n=u(t).find("[col-index="+i+"]");if(n.length&&n.prop("rowSpan")>1){o=e.rows[a+1];l=u(o).find("[col-index="+(i+1)+"]");if(l.length)l.before(n);else u(o).append(n);this._reduceRowSpan(n)}if(!n.length){n=this._findRowSpanCell(t.parentElement,a,i);this._reduceRowSpan(n)}}},_reduceRowSpan:function(e){var t=e.prop("rowSpan")-1;if(t<=1){e.removeAttr(b);if(e.attr(h)===x)e.attr(h,_)}else e.attr(b,t)}}),K=O.extend({exec:function(){var e=this.lockRange(),t=m.closest(e.endContainer,[S,k]),i=m.closest(t,A),n=i&&i.rows,l=m.findNodeIndex(t,true),o=n&&n[0].cells.length,p=i.getElementsByTagName(C),c=i.getElementsByTagName(T),a,s,r,d;if(!t||this.immutables()&&f.Immutables.immutableParent(t)){this.releaseRange(e);return}if(o==1||t.colSpan==o){a=m.next(i);if(!a||m.insignificant(a))a=m.prev(i);if(a&&a.rows)a=a.rows[0].cells[0];m.remove(i);this._resetElementResizing(this.editor)}else{m.removeTextSiblings(t);a=m.next(t)||m.prev(t);this._mapColIndices(i);l=parseInt(t.getAttribute("col-index"),10);for(d=0;d<t.colSpan;d++)for(s=0;s<n.length;s=s+(r.prop("rowSpan")||1)){r=u(n[s]).find("[col-index="+(l+d)+"]");if(r.length&&r.prop("colSpan")<=1)r.remove();else this._handleColSpanCells(n[s],l+d)}this._clearColIndexAttr(i)}if(p.length>0||c.length>0)this._adjustColgroups(n[0],i);if(u(i).find("[headers]").length>0)this._associateHeaderIds(i);if(a){e.setStart(a,0);e.collapse(true);this.editor.selectRange(e)}this._resetElementResizing(this.editor)},_handleColSpanCells:function(e,t){var i=u(e).find("[col-index="+t+"]");if(i.length&&i.prop("colSpan")>1){var n=i.clone(true);i.after(n);this._reduceColSpan(n);n.attr("col-index",parseInt(i.attr("col-index"),10)+1);i.remove();return}for(var l=t;l>=0;l--){i=u(e).find("[col-index="+l+"]");if(i.length){this._reduceColSpan(i);i.attr("col-index",parseInt(i.attr("col-index"),10)+1);return}}},_reduceColSpan:function(e){var t=e.prop("colSpan")-1;if(t<=1){e.removeAttr(g);if(e.attr(h)===T)e.attr(h,C)}else e.attr(g,t)}}),G=O.extend({exec:function(){var e=this.lockRange(),t=m.closest(e.endContainer,[S,k]),i,n,l,o,a;if(!t){this.releaseRange(e);return}i=m.closest(t,A);n=t.parentNode;l=m.findNodeIndex(t,true);o=n.children[l+1];if(this.immutables()&&f.Immutables.immutableParent(t)){this.releaseRange(e);return}this._mapColIndices(i);l=parseInt(u(t).attr("col-index"),10);o=u(n).find("[col-index="+(l+1+this._getColspan(t)-1)+"]").get(0);if(!o||o.rowSpan!==t.rowSpan||t.tagName!==o.tagName){this._clearColIndexAttr(i);this.releaseRange(e);return}a=this._getColspan(t)+this._getColspan(o);u(t).prop(g,a).append(m.emptyNode(o)?"":"<br/>"+o.innerHTML);u(t).width(t.offsetWidth);u(o).remove();if(t.getAttribute(h)===C)t.setAttribute(h,T);if(t.getAttribute(h)===T)this._adjustColgroups(n,i);if(u(i).find("[headers]").length>0)this._associateHeaderIds(i);this._clearColIndexAttr(i);this.releaseRange(e);this._resetElementResizing(this.editor)},_getColspan:function(e){return parseInt(e.getAttribute(g),10)||1}}),Q=O.extend({exec:function(){var e=this.lockRange(),t=m.closest(e.endContainer,[S,k]),i,n,l,o,a,s,r;if(!t){this.releaseRange(e);return}i=m.closest(t,y);n=m.closest(t,[R,p]);l=m.closest(t,A);o=m.findNodeIndex(t,true);a=m.findNodeIndex(i,true);if(a+1===n.rows.length){this.releaseRange(e);return}s=n.rows[a+this._getRowspan(t)];r=s&&s.children[o];if(this.immutables()&&f.Immutables.immutableParent(t)){this.releaseRange(e);return}this._mapColIndices(l);o=u(t).attr("col-index");r=u(s).find("[col-index="+o+"]").get(0);if(!r||r.colSpan!==t.colSpan||t.tagName!==r.tagName){this._clearColIndexAttr(l);this.releaseRange(e);return}u(t).prop(b,this._getRowspan(t)+this._getRowspan(r)).append(m.emptyNode(r)?"":"<br/>"+r.innerHTML);if(t.getAttribute(h)===_)t.setAttribute(h,x);u(r).remove();if(u(l).find("[headers]").length>0)this._associateHeaderIds(l);this._clearColIndexAttr(l);this.releaseRange(e)},_getRowspan:function(e){return parseInt(e.getAttribute(b),10)||1}}),X=O.extend({exec:function(){var e=this.lockRange(),t=this.options.type,i=t==="row"?g:b,n=m.closest(e.endContainer,[S,k]),l=m.closest(n,[R,p]),o=m.closest(n,A),a=m.createEmptyNode(this.editor.document,n.nodeName.toLowerCase());if(!n||this.immutables()&&f.Immutables.immutableParent(n)){this.releaseRange(e);return}this._mapColIndices(o);if(t==="row"&&u(n).is("["+i+"]"))this._splitCellHorizontally(n,l,i,a);else if(t==="column"&&u(n).is("["+i+"]"))this._splitCellVertically(n,l,i,a);if(u(n).prop(i.toLowerCase())<=1)u(n).removeAttr(i);if(u(o).find("[headers]").length>0)this._associateHeaderIds(o);this._clearColIndexAttr(o);this.releaseRange(e)},_getRowspanValue:function(e){return parseInt(e.getAttribute(b),10)},_getColspanValue:function(e){return parseInt(e.getAttribute(g),10)},_splitCellHorizontally:function(e,t,i,n){var l=e.rowSpan,o=e.colSpan,a=u(n),s=Math.floor(o/2);if(s>1)a.attr(g,s);if(l>1)a.attr(b,l);u(e).prop(i,o-s).after(a);u(e).width(e.offsetWidth);a.width(a[0].offsetWidth);if(e.hasAttribute(h))if(e.getAttribute(h)===T){a.attr(h,C);if(!e.getAttribute(g)||e.getAttribute(g)==="1")e.setAttribute(h,C);this._adjustColgroups(e.parentNode,t.parentNode)}else a.attr(h,e.getAttribute(h))},_splitCellVertically:function(e,t,i,n){var p=m.closest(e,y),c=parseInt(u(e).attr("col-index"),10),f=m.findNodeIndex(p,true),l=e.rowSpan,o=e.colSpan,a=Math.floor(l/2),s=u(t).find(y).eq(f+l-a),r=this._findNextTdInRow(s,c+o),d=u(n);if(a>1)d.attr(b,a);if(o>1)d.attr(g,o);if(r&&r.length)r.before(d);else s.append(d);u(e).prop(i,l-a);if(e.hasAttribute(h))if(e.getAttribute(h)===x){d.attr(h,_);if(!e.getAttribute(b)||e.getAttribute(b)==="1")e.setAttribute(h,_)}else d.attr(h,e.getAttribute(h))}}),e=I.extend({command:function(e){var t={row:{insert:V,delete:U,merge:G,split:X},column:{insert:q,delete:K,merge:Q,split:X}};e=i(e,this.options);e.action=e.action||"insert";return new t[e.type][e.action](e)},initialize:function(e,t){I.fn.initialize.call(this,e,t);e.addClass("k-disabled");e.attr("disabled","disabled")},update:function(e,t){var i=!F.isFormatted(t);if(i===true){e.parent().addClass("k-hidden k-disabled");e.attr("disabled","disabled");e.addClass("k-disabled")}else{e.parent().removeClass("k-hidden k-disabled");e.prop("disabled",false);e.removeClass("k-disabled")}}}),Y=E.extend({exec:function(){var e=this;var t=e.editor;E.fn.exec.call(this);if(t.elementResizing)t.elementResizing._showResizeHandles()}}),J=N.extend({initialize:function(e,t){N.fn.initialize.call(this,e,t);e.addClass("k-disabled");e.attr("disabled","disabled")},update:function(e,t){var i=!F.isFormatted(t);var n=this.options.finder.isFormatted(t,this.isTable);if(i===true){e.parent().addClass("k-hidden k-disabled");e.attr("disabled","disabled");e.addClass("k-disabled")}else{e.parent().removeClass("k-hidden k-disabled");e.prop("disabled",false);e.removeClass("k-disabled")}e.toggleClass("k-selected",n);e.attr("aria-pressed",n)},command:function(e){var t=this;return new Y(i(e,{formatter:t.options.formatter}))},isTable:function(e){return m.is(e,"table")}});i(w.ui.editor,{PopupTool:j,TableCommand:W,InsertTableTool:D,TableFormatTool:J,TableFormatCommand:Y,TableModificationTool:e,InsertRowCommand:V,InsertColumnCommand:q,DeleteRowCommand:U,DeleteColumnCommand:K,MergeCellsHorizontallyCommand:G,MergeCellsVerticallyCommand:Q,SplitCellCommand:X}),r("createTable",new D({template:new s({template:a.buttonTemplate,popup:true,title:"Create table"})})),r("addColumnLeft",new e({type:"column",position:"before",template:new s({template:a.buttonTemplate,title:"Add column on the left"})})),r("addColumnRight",new e({type:"column",template:new s({template:a.buttonTemplate,title:"Add column on the right"})})),r("addRowAbove",new e({type:"row",position:"before",template:new s({template:a.buttonTemplate,title:"Add row above"})})),r("addRowBelow",new e({type:"row",template:new s({template:a.buttonTemplate,title:"Add row below"})})),r("deleteRow",new e({type:"row",action:"delete",template:new s({template:a.buttonTemplate,title:"Delete row"})})),r("deleteColumn",new e({type:"column",action:"delete",template:new s({template:a.buttonTemplate,title:"Delete column"})})),r("mergeCellsHorizontally",new e({type:"row",action:"merge",template:new s({template:a.buttonTemplate,title:"Merge Cell Right"})})),r("mergeCellsVertically",new e({type:"column",action:"merge",template:new s({template:a.buttonTemplate,title:"Merge Cell Down"})})),r("splitCellHorizontally",new e({type:"row",action:"split",template:new s({template:a.buttonTemplate,title:"Split Cell"})})),r("splitCellVertically",new e({type:"column",action:"split",template:new s({template:a.buttonTemplate,title:"Split Cell"})})),H("tableAlignLeft",[{tags:["table"],attr:{style:{marginLeft:"",marginRight:"auto"}}},{tags:["table"],attr:{align:"left"}}]),r("tableAlignLeft",new J({format:M.tableAlignLeft,template:new s({template:a.buttonTemplate,title:"Table Align Left"})})),H("tableAlignCenter",[{tags:["table"],attr:{style:{marginLeft:"auto",marginRight:"auto"}}},{tags:["table"],attr:{align:"center"}}]),r("tableAlignCenter",new J({format:M.tableAlignCenter,template:new s({template:a.buttonTemplate,title:"Table Align Center"})})),H("tableAlignRight",[{tags:["table"],attr:{style:{marginLeft:"auto",marginRight:""}}},{tags:["table"],attr:{align:"right"}}]),r("tableAlignRight",new J({format:M.tableAlignRight,template:new s({template:a.buttonTemplate,title:"Table Align Left"})}))})?n.apply(t,i):n)||(e.exports=t)},1006:function(e,t){e.exports=require("./insert")}});