From 4d3d5fe9c8a0ca821fb7d885492ecbf792858844 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Mon, 26 Apr 2021 19:28:33 -0400 Subject: [PATCH] docs(demo): update to latest version 2.28.2 --- docs/index.html | 2 +- ...43fd1fd5c21dbe7d2.js => main-es2015.b5a80c42d940799a897e.js} | 2 +- ...25743fd1fd5c21dbe7d2.js => main-es5.b5a80c42d940799a897e.js} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename docs/{main-es2015.25743fd1fd5c21dbe7d2.js => main-es2015.b5a80c42d940799a897e.js} (56%) rename docs/{main-es5.25743fd1fd5c21dbe7d2.js => main-es5.b5a80c42d940799a897e.js} (56%) diff --git a/docs/index.html b/docs/index.html index 1944a660f..4786ec352 100644 --- a/docs/index.html +++ b/docs/index.html @@ -13,6 +13,6 @@ - + diff --git a/docs/main-es2015.25743fd1fd5c21dbe7d2.js b/docs/main-es2015.b5a80c42d940799a897e.js similarity index 56% rename from docs/main-es2015.25743fd1fd5c21dbe7d2.js rename to docs/main-es2015.b5a80c42d940799a897e.js index 159a93382..db8b90f85 100644 --- a/docs/main-es2015.25743fd1fd5c21dbe7d2.js +++ b/docs/main-es2015.b5a80c42d940799a897e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+19A":function(e,t){!function(e){e.extend(!0,window,{Slick:{RowMoveManager:function(t){var i,n,r,o=this,s=null,a=new Slick.EventHandler,l={columnId:"_move",cssClass:null,cancelEditOnDrag:!1,disableRowSelection:!1,singleRowMove:!1,width:40};function c(e){e.stopImmediatePropagation()}function d(o,s){var a=i.getCellFromEvent(o),l=a&&a.row;if(f(l,i.getDataItem(l),i)){if(t.cancelEditOnDrag&&i.getEditorLock().isActive()&&i.getEditorLock().cancelCurrentEdit(),i.getEditorLock().isActive()||!/move|selectAndMove/.test(i.getColumns()[a.cell].behavior))return!1;r=!0,o.stopImmediatePropagation();var c=t.singleRowMove?[a.row]:i.getSelectedRows();0!==c.length&&-1!=e.inArray(a.row,c)||(c=[a.row],t.disableRowSelection||i.setSelectedRows(c));var d=i.getOptions().rowHeight;s.selectedRows=c,s.selectionProxy=e("
").css("position","absolute").css("zIndex","99999").css("width",e(n).innerWidth()).css("height",d*c.length).appendTo(n),s.guide=e("
").css("position","absolute").css("zIndex","99998").css("width",e(n).innerWidth()).css("top",-1e3).appendTo(n),s.insertBefore=-1}}function u(t,a){if(r){t.stopImmediatePropagation();var l=t.pageY-e(n).offset().top;a.selectionProxy.css("top",l-5);var c=Math.max(0,Math.min(Math.round(l/i.getOptions().rowHeight),i.getDataLength()));if(c!==a.insertBefore){if(a.canMove=!1!==o.onBeforeMoveRows.notify({grid:i,rows:a.selectedRows,insertBefore:c}),s){var d=i.getDataItem(c);a.canMove=f(c,d,i)}a.guide.css("top",a.canMove?c*i.getOptions().rowHeight:-1e3),a.insertBefore=c}}}function h(e,t){r&&(r=!1,e.stopImmediatePropagation(),t.guide.remove(),t.selectionProxy.remove(),t.canMove&&o.onMoveRows.notify({grid:i,rows:t.selectedRows,insertBefore:t.insertBefore}))}function p(e,t,i,n,r,o){return f(e,r,o)?{addClasses:"cell-reorder dnd",text:""}:null}function f(e,t,i){return"function"!=typeof s||s(e,t,i)}function g(e){s=e}t&&"function"==typeof t.usabilityOverride&&g(t.usabilityOverride),e.extend(this,{onBeforeMoveRows:new Slick.Event,onMoveRows:new Slick.Event,init:function(r){t=e.extend(!0,{},l,t),n=(i=r).getCanvasNode(),a.subscribe(i.onDragInit,c).subscribe(i.onDragStart,d).subscribe(i.onDrag,u).subscribe(i.onDragEnd,h)},destroy:function(){a.unsubscribeAll()},getColumnDefinition:function(){return{id:t.columnId||"_move",name:"",field:"move",width:t.width||40,behavior:"selectAndMove",selectable:!1,resizable:!1,cssClass:t.cssClass,formatter:p}},setOptions:function(i){t=e.extend({},t,i)},usabilityOverride:g,pluginName:"RowMoveManager"})}}})}(jQuery)},"+Huw":function(e,t){!function(e){e.extend(!0,window,{Slick:{CellRangeSelector:function(t){var i,n,r,o,s,a,l,c,d,u,h,p=this,f=new Slick.EventHandler,g={selectionCss:{border:"2px dashed blue"}},m=0,v=0;function b(e,t){m=t.scrollTop,v=t.scrollLeft}function w(t,n){(s=e(i.getActiveCanvasNode(t))).offset(),c=0,d=0,h=s.hasClass("grid-canvas-bottom"),o.frozenRow>-1&&h&&(c=o.frozenBottom?e("."+i.getUID()+" .grid-canvas-bottom").height():e("."+i.getUID()+" .grid-canvas-top").height()),u=s.hasClass("grid-canvas-right"),o.frozenColumn>-1&&u&&(d=e("."+i.getUID()+" .grid-canvas-left").width()),t.stopImmediatePropagation()}function y(t,s){var c=i.getCellFromEvent(t);if(!1!==p.onBeforeCellRangeSelected.notify(c)&&i.canCellBeSelected(c.row,c.cell)&&(a=!0,t.stopImmediatePropagation()),a){i.focus();var d=s.startX-e(r).offset().left;o.frozenColumn>=0&&u&&(d+=v);var f=s.startY-e(r).offset().top;o.frozenRow>=0&&h&&(f+=m);var g=i.getCellFromPoint(d,f);return s.range={start:g,end:{}},n=s.range,l.show(new Slick.Range(g.row,g.cell))}}function x(e,t){if(a){e.stopImmediatePropagation();var n=i.getCellFromPoint(e.pageX-s.offset().left+d,e.pageY-s.offset().top+c);o.frozenColumn>=0&&!u&&n.cell>o.frozenColumn||u&&n.cell<=o.frozenColumn||o.frozenRow>=0&&!h&&n.row>=o.frozenRow||h&&n.row2*h}(o.getRowById(t[s]),e);!i&&b(m,t[s])>=0?k(t,t[s]):i&&x(t,t[s])})}}():function(){if(i){var e=i.getRenderedRange();if(d.length>0){var t="DOWN";if(c){if(c.top===e.top&&c.bottom===e.bottom)return;(c.top>e.top||0===c.top&&0===e.top&&c.bottom>e.bottom)&&(t="UP")}}d.forEach(function(i){var n=o.getRowById(i[s]),r=i[f+"sizePadding"],a=b(m,i[s])>=0;"UP"===t?(v.saveDetailViewOnScroll&&n>=e.bottom-g&&E(i),a&&n-5=e.top?k(i,i[s]):!a&&n+r>e.bottom&&x(i,i[s])):"DOWN"===t&&(v.saveDetailViewOnScroll&&n<=e.top+g&&E(i),a&&n+r+5>e.bottom&&n=0&&m.splice(i,1),m}function C(){o.beginUpdate();for(var e=d.length-1;e>=0;e--)S(d[e],!0);o.endUpdate()}function S(e,t){t||o.beginUpdate(),v.loadOnce&&E(e),e[f+"collapsed"]=!0;for(var i=1;i<=e[f+"sizePadding"];i++)o.deleteItem(e[s]+"."+i);e[f+"sizePadding"]=0,o.updateItem(e[s],e),d=d.filter(function(t){return t[s]!==e[s]}),t||o.endUpdate()}function T(e){if(v&&v.singleRowExpand&&C(),e[f+"collapsed"]=!1,d.push(e),e[f+"detailContent"]||(e[f+"detailViewLoaded"]=!1),e[f+"detailViewLoaded"]&&!0===v.loadOnce)return l.onAsyncResponse.notify({item:e,itemDetail:e,detailView:e[f+"detailContent"]},void 0,this),D(e),void o.updateItem(e[s],e);e[f+"detailContent"]=v.preTemplate(e),D(e),o.updateItem(e[s],e),v.process(e)}function E(t){if(e("."+r+" .innerDetailView_"+t[s])){var i=e("."+r+" .innerDetailView_"+t[s]).html();void 0!==i&&(t[f+"detailContent"]=i)}}"function"==typeof v.expandableOverride&&M(v.expandableOverride);var O=function(e,t){var n={};for(var r in i.getData())n[r]=null;return n[s]=e[s]+"."+t,n[f+"collapsed"]=!0,n[f+"isPadding"]=!0,n[f+"parent"]=e,n[f+"offset"]=t,n};function D(e){e[f+"sizePadding"]=Math.ceil(2*v.panelRows*13/n.rowHeight),e[f+"height"]=e[f+"sizePadding"]*n.rowHeight;for(var t=o.getIdxById(e[s]),i=1;i<=e[f+"sizePadding"];i++)o.insertItem(t+i,O(e,i))}function A(e,t,i,r,o,a){if(!I(e,o,a))return null;if(null==o[f+"collapsed"]&&(o[f+"collapsed"]=!0,o[f+"sizePadding"]=0,o[f+"height"]=0,o[f+"isPadding"]=!1,o[f+"parent"]=void 0,o[f+"offset"]=0),!o[f+"isPadding"]){if(o[f+"collapsed"]){var l=v.cssClass+" expand ";return v.collapsedClass&&(l+=v.collapsedClass),'
'}var c=[],d=n.rowHeight,u=o[f+"sizePadding"]*n.rowHeight;null!==v.maxRows&&o[f+"sizePadding"]>v.maxRows&&(u=v.maxRows*d,o[f+"sizePadding"]=v.maxRows);var h=v.cssClass+" collapse ";return v.expandedClass&&(h+=v.expandedClass),c.push('
'),c.push('
'),c.push('
'),c.push('
',o[f+"detailContent"],"
"),c.join("")}return null}function I(e,t,i){return"function"!=typeof a||a(e,t,i)}function M(e){a=e}e.extend(this,{init:function(e){if(!e)throw new Error('RowDetailView Plugin requires the Grid instance to be passed as argument to the "init()" method');i=e,r=e.getUID(),n=e.getOptions()||{},o=i.getData(),f=v&&v.keyPrefix||"_",g=i.getOptions().minRowBuffer,i.getOptions().minRowBuffer=v.panelRows+3,u.subscribe(i.onClick,w).subscribe(i.onScroll,y),v.collapseAllOnSort&&(u.subscribe(i.onSort,C),d=[],m=[]),u.subscribe(i.getData().onRowCountChanged,function(){i.updateRowCount(),i.render()}),u.subscribe(i.getData().onRowsChanged,function(e,t){i.invalidateRows(t.rows),i.render()}),l.onAsyncResponse.subscribe(function(e,t){if(!t||!t.item&&!t.itemDetail)throw'Slick.RowDetailView plugin requires the onAsyncResponse() to supply "args.item" property.';var n=t.item||t.itemDetail;n[f+"detailContent"]=t.detailView?t.detailView:v.postTemplate(n),n[f+"detailViewLoaded"]=!0,o.updateItem(n[s],n),l.onAsyncEndUpdate.notify({grid:i,item:n,itemDetail:n},e,l)}),u.subscribe(o.onSetItemsCalled,function(e,t){s=o&&o.getIdPropertyName()||"id"}),v.useSimpleViewportCalc&&u.subscribe(i.onRendered,function(e,t){t&&t.endRow&&(h=t.endRow-t.startRow)})},destroy:function(){u.unsubscribeAll(),l.onAsyncResponse.unsubscribe(),l.onAsyncEndUpdate.unsubscribe(),l.onAfterRowDetailToggle.unsubscribe(),l.onBeforeRowDetailToggle.unsubscribe(),l.onRowOutOfViewportRange.unsubscribe(),l.onRowBackToViewportRange.unsubscribe()},pluginName:"RowDetailView",collapseAll:C,collapseDetailView:S,expandDetailView:T,expandableOverride:M,getColumnDefinition:function(){return{id:v.columnId,name:"",toolTip:v.toolTip,field:"sel",width:v.width,resizable:!1,sortable:!1,alwaysRenderColumn:v.alwaysRenderColumn,cssClass:v.cssClass,formatter:A}},getExpandedRows:function(){return d},getFilterItem:function(e){return e[f+"isPadding"]&&e[f+"parent"]&&(e=e[f+"parent"]),e},getOptions:function(){return v},resizeDetailView:function(e){if(e){var t=document.querySelector("."+r+" .detailViewContainer_"+e[s]),a=document.querySelector("."+r+" .cellDetailView_"+e[s]),l=document.querySelector("."+r+" .innerDetailView_"+e[s]);if(t&&a&&l){for(var c=1;c<=e[f+"sizePadding"];c++)o.deleteItem(e[s]+"."+c);var d=n.rowHeight;t.style.minHeight=null;var u=t.scrollHeight,h=Math.ceil(u/d);e[f+"sizePadding"]=Math.ceil(2*h*13/d),e[f+"height"]=u;var p=e[f+"sizePadding"]*d;null!==v.maxRows&&e[f+"sizePadding"]>v.maxRows&&(p=v.maxRows*d,e[f+"sizePadding"]=v.maxRows),i.getOptions().minRowBuffert?a:t;for(var l=0;ll?h:l;for(var p=s.createElement("row"),f=0;f0){var y=s.createElement("hyperlinks"),x=this.hyperlinks;for(e=0,t=x.length;e0){var C=s.createElement("mergeCells");for(e=0,t=this.mergedCells.length;e0||this._footers.length>0){var T=s.createElement("headerFooter");this._headers.length>0&&T.appendChild(this.exportHeader(s)),this._footers.length>0&&T.appendChild(this.exportFooter(s)),a.appendChild(T)}for(e=0,t=this._drawings.length;e0){var O=s.createElement("tableParts");for(O.setAttribute("count",this._tables.length),e=0,t=this._tables.length;e0&&setTimeout(function(){I(x)},q))),o}var s,a="async",l="charset",c="",d="error",u="insertBefore",h="_jqjsp",p="onclick",f="on"+d,g="onload",m="onreadystatechange",v="readyState",b="removeChild",w="