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