-
Notifications
You must be signed in to change notification settings - Fork 77
/
ui-grid.emptyBaseLayer.min.js
2 lines (2 loc) · 2.25 KB
/
ui-grid.emptyBaseLayer.min.js
1
2
/*! For license information please see ui-grid.emptyBaseLayer.min.js.LICENSE.txt */
(()=>{var e={726:e=>{e.exports='<div class="ui-grid-empty-base-layer-container ui-grid-canvas">\n <div class="ui-grid-row"\n ng-repeat="(rowRenderIndex, row) in grid.baseLayer.emptyRows track by $index"\n ng-style="Viewport.rowStyle(rowRenderIndex)">\n <div>\n <div>\n <div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name"\n class="ui-grid-cell {{ col.getColClass(false) }}">\n </div>\n </div>\n </div>\n </div>\n</div>\n'},806:()=>{!function(){"use strict";var e=angular.module("ui.grid.emptyBaseLayer",["ui.grid"]);e.service("uiGridBaseLayerService",["gridUtil","$compile",function(e,r){return{initializeGrid:function(e,r){e.baseLayer={emptyRows:[]},!1!==e.options.enableEmptyGridBaseLayer&&(e.options.enableEmptyGridBaseLayer=!r)},setNumberOfEmptyRows:function(e,r){var i=r.options.rowHeight,n=Math.ceil(e/i);if(n>0){r.baseLayer.emptyRows=[];for(var t=0;t<n;t++)r.baseLayer.emptyRows.push({})}}}}]),e.directive("uiGridEmptyBaseLayer",["gridUtil","uiGridBaseLayerService","$parse",function(e,r,i){return{require:"^uiGrid",scope:!1,compile:function(){return{pre:function(e,n,t,a){var o=!1===i(t.uiGridEmptyBaseLayer)(e);r.initializeGrid(a.grid,o)},post:function(e,i,n,t){if(t.grid.options.enableEmptyGridBaseLayer){var a=t.grid.renderContainers.body,o=a.getViewportHeight();t.grid.registerStyleComputation({func:function(){var e;return(e=a.getViewportHeight())!==o&&(o=e,1)&&r.setNumberOfEmptyRows(o,t.grid),function(e){return".grid"+t.grid.id+" .ui-grid-render-container .ui-grid-empty-base-layer-container.ui-grid-canvas { height: "+e+"px; }"}(o)}})}}}}}}]),e.directive("uiGridViewport",["$compile","gridUtil","$templateCache",function(e,r,i){return{priority:-200,scope:!1,compile:function(e){var r=i.get("ui-grid/emptyBaseLayerContainer");return e.prepend(r),{pre:function(e,r,i,n){},post:function(e,r,i,n){}}}}}])}()},561:(e,r,i)=>{angular.module("ui.grid.emptyBaseLayer").run(["$templateCache",function(e){"use strict";e.put("ui-grid/emptyBaseLayerContainer",i(726))}])}},r={};function i(n){var t=r[n];if(void 0!==t)return t.exports;var a=r[n]={exports:{}};return e[n](a,a.exports,i),a.exports}i(806),i(561)})();