@schneideress/dashboardframework 0.0.247 → 0.0.248

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -395,6 +395,8 @@
395
395
  RAEvent["UpdateAppledFiterForInapplicableFilter"] = "UpdateAppledFiterForInapplicableFilter";
396
396
  /**show inapplicable filter message in global filter flyout */
397
397
  RAEvent["ShowInapplicableFilterMessage"] = "ShowInapplicableFilterMessage";
398
+ /** Bulk Action Clicked */
399
+ RAEvent["BulkActionClick"] = "BulkActionClick";
398
400
  })(exports.RAEvent || (exports.RAEvent = {}));
399
401
 
400
402
  (function (RAEventKey) {
@@ -651,6 +653,9 @@
651
653
  }
652
654
  else {
653
655
  setTimeout(function () {
656
+ _this.raDashboardEventBus.subscribe(exports.RAEvent.BulkActionClick).subscribe(function (data) {
657
+ _this.bulkActionData = JSON.parse(JSON.stringify(data)); // To create a new reference;
658
+ });
654
659
  _this.gridcellHeight = _this.options.api.getCurrentRowHeight();
655
660
  _this.domResized = !_this.domResized;
656
661
  _this.setAreaHeight();
@@ -1064,6 +1069,10 @@
1064
1069
  core.Input('app-config'),
1065
1070
  __metadata("design:type", Object)
1066
1071
  ], RADashboardArea.prototype, "appConfig", void 0);
1072
+ __decorate([
1073
+ core.Input('dashboard-info'),
1074
+ __metadata("design:type", Object)
1075
+ ], RADashboardArea.prototype, "dashboardInfo", void 0);
1067
1076
  __decorate([
1068
1077
  core.Output(),
1069
1078
  __metadata("design:type", Object)
@@ -1226,20 +1235,27 @@
1226
1235
  });
1227
1236
  });
1228
1237
  }
1229
- if (this.widgetElement && changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
1230
- var filterObj = this.getParsedConfig(this.globalFilter);
1231
- if (filterObj.WidgetInstanceId) {
1232
- if (this.data.widgetInfo.widgetInstanceId != filterObj.WidgetInstanceId)
1238
+ if (this.widgetElement) {
1239
+ if (changes.bulkActionData && changes.bulkActionData.currentValue != changes.bulkActionData.previousValue) {
1240
+ if (typeof this.widgetElement.bulkActionClicked === "function") {
1241
+ this.widgetElement.bulkActionClicked(this.bulkActionData);
1242
+ }
1243
+ }
1244
+ if (changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
1245
+ var filterObj = this.getParsedConfig(this.globalFilter);
1246
+ if (filterObj.WidgetInstanceId) {
1247
+ if (this.data.widgetInfo.widgetInstanceId != filterObj.WidgetInstanceId)
1248
+ this.refreshWidget(this.data.widgetInfo);
1249
+ }
1250
+ else {
1233
1251
  this.refreshWidget(this.data.widgetInfo);
1252
+ }
1234
1253
  }
1235
- else {
1236
- this.refreshWidget(this.data.widgetInfo);
1254
+ if (changes.width && changes.width.currentValue != changes.width.previousValue ||
1255
+ (changes.height && changes.height.currentValue != changes.height.previousValue)) {
1256
+ this.invokeWidgetResizedEvent();
1237
1257
  }
1238
1258
  }
1239
- if (changes.width && changes.width.currentValue != changes.width.previousValue ||
1240
- (changes.height && changes.height.currentValue != changes.height.previousValue)) {
1241
- this.invokeWidgetResizedEvent();
1242
- }
1243
1259
  };
1244
1260
  RAWidgetContainer.prototype.invokeWidgetResizedEvent = function () {
1245
1261
  if (this.widgetElement) {
@@ -1502,6 +1518,7 @@
1502
1518
  widgetConfigFilter.configChanges = this.getConfigChanges(false);
1503
1519
  widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
1504
1520
  widgetConfigFilter.globalFilter = this.globalFilter;
1521
+ widgetConfigFilter.dashboardInfo = me.dashboardService.dashboardInfo;
1505
1522
  this.widgetElement.loadContent(widgetConfigFilter);
1506
1523
  return [4 /*yield*/, this.setLock(widgetConfigFilter.config)];
1507
1524
  case 1:
@@ -1969,6 +1986,10 @@
1969
1986
  core.Input('grid-cell-height'),
1970
1987
  __metadata("design:type", Number)
1971
1988
  ], RAWidgetContainer.prototype, "gridCellHeight", void 0);
1989
+ __decorate([
1990
+ core.Input('bulk-action-data'),
1991
+ __metadata("design:type", Object)
1992
+ ], RAWidgetContainer.prototype, "bulkActionData", void 0);
1972
1993
  __decorate([
1973
1994
  core.Output(),
1974
1995
  __metadata("design:type", Object)
@@ -2866,10 +2887,10 @@
2866
2887
  }
2867
2888
  GridsterComponent_1 = GridsterComponent;
2868
2889
  GridsterComponent.checkCollisionTwoItems = function (item, item2) {
2869
- return (item.x < item2.x + item2.cols &&
2870
- item.x + item.cols > item2.x &&
2871
- item.y < item2.y + item2.rows &&
2872
- item.y + item.rows > item2.y);
2890
+ return item.x < item2.x + item2.cols
2891
+ && item.x + item.cols > item2.x
2892
+ && item.y < item2.y + item2.rows
2893
+ && item.y + item.rows > item2.y;
2873
2894
  };
2874
2895
  GridsterComponent.prototype.ngOnInit = function () {
2875
2896
  if (this.options.initCallback) {
@@ -2877,7 +2898,6 @@
2877
2898
  }
2878
2899
  };
2879
2900
  GridsterComponent.prototype.ngOnChanges = function (changes) {
2880
- console.log(this.$options);
2881
2901
  if (changes.options) {
2882
2902
  this.setOptions();
2883
2903
  this.options.api = {
@@ -2886,7 +2906,7 @@
2886
2906
  getNextPossiblePosition: this.getNextPossiblePosition.bind(this),
2887
2907
  getFirstPossiblePosition: this.getFirstPossiblePosition.bind(this),
2888
2908
  getLastPossiblePosition: this.getLastPossiblePosition.bind(this),
2889
- getCurrentRowHeight: this.getCurrentRowHeight.bind(this),
2909
+ getCurrentRowHeight: this.getCurrentRowHeight.bind(this)
2890
2910
  };
2891
2911
  this.columns = this.$options.minCols;
2892
2912
  this.rows = this.$options.minRows;
@@ -2900,7 +2920,7 @@
2900
2920
  GridsterComponent.prototype.resize = function () {
2901
2921
  var height;
2902
2922
  var width;
2903
- if (this.$options.gridType === "fit" && !this.mobile) {
2923
+ if (this.$options.gridType === 'fit' && !this.mobile) {
2904
2924
  width = this.el.offsetWidth;
2905
2925
  height = this.el.offsetHeight;
2906
2926
  }
@@ -2908,15 +2928,14 @@
2908
2928
  width = this.el.clientWidth;
2909
2929
  height = this.el.clientHeight;
2910
2930
  }
2911
- if ((width !== this.curWidth || height !== this.curHeight) &&
2912
- this.checkIfToResize()) {
2931
+ if ((width !== this.curWidth || height !== this.curHeight) && this.checkIfToResize()) {
2913
2932
  this.onResize();
2914
2933
  }
2915
2934
  };
2916
2935
  GridsterComponent.prototype.setOptions = function () {
2917
2936
  this.$options = GridsterUtils.merge(this.$options, this.options, this.$options);
2918
2937
  if (!this.$options.disableWindowResize && !this.windowResize) {
2919
- this.windowResize = this.renderer.listen("window", "resize", this.onResize.bind(this));
2938
+ this.windowResize = this.renderer.listen('window', 'resize', this.onResize.bind(this));
2920
2939
  }
2921
2940
  else if (this.$options.disableWindowResize && this.windowResize) {
2922
2941
  this.windowResize();
@@ -2942,9 +2961,9 @@
2942
2961
  }
2943
2962
  //if (this.options.api) {
2944
2963
  /* this.options.api getting undefined for new dashboard load- temp fix
2945
- * on new dashboard area load, old dashboard area gets destroyed, but that leads to
2946
- * ondestroy of current this.options.api instance - needs to investigate further
2947
- */
2964
+ * on new dashboard area load, old dashboard area gets destroyed, but that leads to
2965
+ * ondestroy of current this.options.api instance - needs to investigate further
2966
+ */
2948
2967
  if (false) {
2949
2968
  this.options.api.resize = undefined;
2950
2969
  this.options.api.optionsChanged = undefined;
@@ -2967,12 +2986,10 @@
2967
2986
  var clientHeight = this.el.clientHeight;
2968
2987
  var offsetHeight = this.el.offsetHeight;
2969
2988
  var scrollHeight = this.el.scrollHeight;
2970
- var verticalScrollPresent = clientWidth < offsetWidth &&
2971
- scrollHeight > offsetHeight &&
2972
- scrollHeight - offsetHeight < offsetWidth - clientWidth;
2973
- var horizontalScrollPresent = clientHeight < offsetHeight &&
2974
- scrollWidth > offsetWidth &&
2975
- scrollWidth - offsetWidth < offsetHeight - clientHeight;
2989
+ var verticalScrollPresent = clientWidth < offsetWidth && scrollHeight > offsetHeight
2990
+ && scrollHeight - offsetHeight < offsetWidth - clientWidth;
2991
+ var horizontalScrollPresent = clientHeight < offsetHeight
2992
+ && scrollWidth > offsetWidth && scrollWidth - offsetWidth < offsetHeight - clientHeight;
2976
2993
  if (verticalScrollPresent) {
2977
2994
  return false;
2978
2995
  }
@@ -2982,8 +2999,7 @@
2982
2999
  var el = this.el;
2983
3000
  var width = el.clientWidth;
2984
3001
  var height = el.clientHeight;
2985
- if (this.$options.setGridSize ||
2986
- (this.$options.gridType === "fit" && !this.mobile)) {
3002
+ if (this.$options.setGridSize || this.$options.gridType === 'fit' && !this.mobile) {
2987
3003
  width = el.offsetWidth;
2988
3004
  height = el.offsetHeight;
2989
3005
  }
@@ -2998,11 +3014,11 @@
2998
3014
  this.setGridSize();
2999
3015
  if (!this.mobile && this.$options.mobileBreakpoint > this.curWidth) {
3000
3016
  this.mobile = !this.mobile;
3001
- this.renderer.addClass(this.el, "mobile");
3017
+ this.renderer.addClass(this.el, 'mobile');
3002
3018
  }
3003
3019
  else if (this.mobile && this.$options.mobileBreakpoint < this.curWidth) {
3004
3020
  this.mobile = !this.mobile;
3005
- this.renderer.removeClass(this.el, "mobile");
3021
+ this.renderer.removeClass(this.el, 'mobile');
3006
3022
  }
3007
3023
  var rows = this.$options.minRows, columns = this.$options.minCols;
3008
3024
  var widgetsIndex = this.grid.length - 1, widget;
@@ -3030,57 +3046,57 @@
3030
3046
  var marginWidth = -this.$options.margin;
3031
3047
  if (this.$options.outerMarginLeft !== null) {
3032
3048
  marginWidth += this.$options.outerMarginLeft;
3033
- this.renderer.setStyle(this.el, "padding-left", this.$options.outerMarginLeft + "px");
3049
+ this.renderer.setStyle(this.el, 'padding-left', this.$options.outerMarginLeft + 'px');
3034
3050
  }
3035
3051
  else {
3036
3052
  marginWidth += this.$options.margin;
3037
- this.renderer.setStyle(this.el, "padding-left", this.$options.margin + "px");
3053
+ this.renderer.setStyle(this.el, 'padding-left', this.$options.margin + 'px');
3038
3054
  }
3039
3055
  if (this.$options.outerMarginRight !== null) {
3040
3056
  marginWidth += this.$options.outerMarginRight;
3041
- this.renderer.setStyle(this.el, "padding-right", this.$options.outerMarginRight + "px");
3057
+ this.renderer.setStyle(this.el, 'padding-right', this.$options.outerMarginRight + 'px');
3042
3058
  }
3043
3059
  else {
3044
3060
  marginWidth += this.$options.margin;
3045
- this.renderer.setStyle(this.el, "padding-right", this.$options.margin + "px");
3061
+ this.renderer.setStyle(this.el, 'padding-right', this.$options.margin + 'px');
3046
3062
  }
3047
3063
  this.curColWidth = (this.curWidth - marginWidth) / this.columns;
3048
3064
  var marginHeight = -this.$options.margin;
3049
3065
  if (this.$options.outerMarginTop !== null) {
3050
3066
  marginHeight += this.$options.outerMarginTop;
3051
- this.renderer.setStyle(this.el, "padding-top", this.$options.outerMarginTop + "px");
3067
+ this.renderer.setStyle(this.el, 'padding-top', this.$options.outerMarginTop + 'px');
3052
3068
  }
3053
3069
  else {
3054
3070
  marginHeight += this.$options.margin;
3055
- this.renderer.setStyle(this.el, "padding-top", this.$options.margin + "px");
3071
+ this.renderer.setStyle(this.el, 'padding-top', this.$options.margin + 'px');
3056
3072
  }
3057
3073
  if (this.$options.outerMarginBottom !== null) {
3058
3074
  marginHeight += this.$options.outerMarginBottom;
3059
- this.renderer.setStyle(this.el, "padding-bottom", this.$options.outerMarginBottom + "px");
3075
+ this.renderer.setStyle(this.el, 'padding-bottom', this.$options.outerMarginBottom + 'px');
3060
3076
  }
3061
3077
  else {
3062
3078
  marginHeight += this.$options.margin;
3063
- this.renderer.setStyle(this.el, "padding-bottom", this.$options.margin + "px");
3079
+ this.renderer.setStyle(this.el, 'padding-bottom', this.$options.margin + 'px');
3064
3080
  }
3065
3081
  this.curRowHeight = (this.curHeight - marginHeight) / this.rows;
3066
3082
  }
3067
3083
  else {
3068
3084
  this.curColWidth = (this.curWidth + this.$options.margin) / this.columns;
3069
3085
  this.curRowHeight = (this.curHeight + this.$options.margin) / this.rows;
3070
- this.renderer.setStyle(this.el, "padding-left", 0 + "px");
3071
- this.renderer.setStyle(this.el, "padding-right", 0 + "px");
3072
- this.renderer.setStyle(this.el, "padding-top", 0 + "px");
3073
- this.renderer.setStyle(this.el, "padding-bottom", 0 + "px");
3086
+ this.renderer.setStyle(this.el, 'padding-left', 0 + 'px');
3087
+ this.renderer.setStyle(this.el, 'padding-right', 0 + 'px');
3088
+ this.renderer.setStyle(this.el, 'padding-top', 0 + 'px');
3089
+ this.renderer.setStyle(this.el, 'padding-bottom', 0 + 'px');
3074
3090
  }
3075
3091
  this.gridRenderer.updateGridster();
3076
3092
  this.updateGrid();
3077
3093
  if (this.$options.setGridSize) {
3078
- this.renderer.setStyle(this.el, "width", this.columns * this.curColWidth + this.$options.margin + "px");
3079
- this.renderer.setStyle(this.el, "height", this.rows * this.curRowHeight + this.$options.margin + "px");
3094
+ this.renderer.setStyle(this.el, 'width', (this.columns * this.curColWidth + this.$options.margin) + 'px');
3095
+ this.renderer.setStyle(this.el, 'height', (this.rows * this.curRowHeight + this.$options.margin) + 'px');
3080
3096
  }
3081
3097
  else {
3082
- this.renderer.setStyle(this.el, "width", "");
3083
- this.renderer.setStyle(this.el, "height", "");
3098
+ this.renderer.setStyle(this.el, 'width', '');
3099
+ this.renderer.setStyle(this.el, 'height', '');
3084
3100
  }
3085
3101
  var widgetsIndex = this.grid.length - 1, widget;
3086
3102
  for (; widgetsIndex >= 0; widgetsIndex--) {
@@ -3092,23 +3108,18 @@
3092
3108
  setTimeout(this.resize.bind(this), 100);
3093
3109
  };
3094
3110
  GridsterComponent.prototype.updateGrid = function () {
3095
- if (this.$options.displayGrid === "always" && !this.mobile) {
3096
- this.renderer.addClass(this.el, "display-grid");
3111
+ if (this.$options.displayGrid === 'always' && !this.mobile) {
3112
+ this.renderer.addClass(this.el, 'display-grid');
3097
3113
  }
3098
- else if (this.$options.displayGrid === "onDrag&Resize" &&
3099
- this.dragInProgress) {
3100
- this.renderer.addClass(this.el, "display-grid");
3114
+ else if (this.$options.displayGrid === 'onDrag&Resize' && this.dragInProgress) {
3115
+ this.renderer.addClass(this.el, 'display-grid');
3101
3116
  }
3102
- else if (this.$options.displayGrid === "none" ||
3103
- !this.dragInProgress ||
3104
- this.mobile) {
3105
- this.renderer.removeClass(this.el, "display-grid");
3117
+ else if (this.$options.displayGrid === 'none' || !this.dragInProgress || this.mobile) {
3118
+ this.renderer.removeClass(this.el, 'display-grid');
3106
3119
  }
3107
3120
  this.setGridDimensions();
3108
- this.gridColumns.length =
3109
- Math.max(this.columns, Math.floor(this.curWidth / this.curColWidth)) || 0;
3110
- this.gridRows.length =
3111
- Math.max(this.rows, Math.floor(this.curHeight / this.curRowHeight)) || 0;
3121
+ this.gridColumns.length = Math.max(this.columns, Math.floor(this.curWidth / this.curColWidth)) || 0;
3122
+ this.gridRows.length = Math.max(this.rows, Math.floor(this.curHeight / this.curRowHeight)) || 0;
3112
3123
  this.cdRef.markForCheck();
3113
3124
  };
3114
3125
  GridsterComponent.prototype.addItem = function (itemComponent) {
@@ -3128,8 +3139,8 @@
3128
3139
  else if (this.checkCollision(itemComponent.$item)) {
3129
3140
  if (!this.$options.disableWarnings) {
3130
3141
  itemComponent.notPlaced = true;
3131
- console.warn("Can't be placed in the bounds of the dashboard, trying to auto position!/n" +
3132
- JSON.stringify(itemComponent.item, ["cols", "rows", "x", "y"]));
3142
+ console.warn('Can\'t be placed in the bounds of the dashboard, trying to auto position!/n' +
3143
+ JSON.stringify(itemComponent.item, ['cols', 'rows', 'x', 'y']));
3133
3144
  }
3134
3145
  if (!this.$options.disableAutoPositionOnConflict) {
3135
3146
  this.autoPositionItem(itemComponent);
@@ -3168,43 +3179,24 @@
3168
3179
  var noNegativePosition = item.y > -1 && item.x > -1;
3169
3180
  var maxGridCols = item.cols + item.x <= this.$options.maxCols;
3170
3181
  var maxGridRows = item.rows + item.y <= this.$options.maxRows;
3171
- var maxItemCols = item.maxItemCols === undefined
3172
- ? this.$options.maxItemCols
3173
- : item.maxItemCols;
3174
- var minItemCols = item.minItemCols === undefined
3175
- ? this.$options.minItemCols
3176
- : item.minItemCols;
3177
- var maxItemRows = item.maxItemRows === undefined
3178
- ? this.$options.maxItemRows
3179
- : item.maxItemRows;
3180
- var minItemRows = item.minItemRows === undefined
3181
- ? this.$options.minItemRows
3182
- : item.minItemRows;
3182
+ var maxItemCols = item.maxItemCols === undefined ? this.$options.maxItemCols : item.maxItemCols;
3183
+ var minItemCols = item.minItemCols === undefined ? this.$options.minItemCols : item.minItemCols;
3184
+ var maxItemRows = item.maxItemRows === undefined ? this.$options.maxItemRows : item.maxItemRows;
3185
+ var minItemRows = item.minItemRows === undefined ? this.$options.minItemRows : item.minItemRows;
3183
3186
  var inColsLimits = item.cols <= maxItemCols && item.cols >= minItemCols;
3184
3187
  var inRowsLimits = item.rows <= maxItemRows && item.rows >= minItemRows;
3185
- var minAreaLimit = item.minItemArea === undefined
3186
- ? this.$options.minItemArea
3187
- : item.minItemArea;
3188
- var maxAreaLimit = item.maxItemArea === undefined
3189
- ? this.$options.maxItemArea
3190
- : item.maxItemArea;
3188
+ var minAreaLimit = item.minItemArea === undefined ? this.$options.minItemArea : item.minItemArea;
3189
+ var maxAreaLimit = item.maxItemArea === undefined ? this.$options.maxItemArea : item.maxItemArea;
3191
3190
  var area = item.cols * item.rows;
3192
3191
  var inMinArea = minAreaLimit <= area;
3193
3192
  var inMaxArea = maxAreaLimit >= area;
3194
- return !(noNegativePosition &&
3195
- maxGridCols &&
3196
- maxGridRows &&
3197
- inColsLimits &&
3198
- inRowsLimits &&
3199
- inMinArea &&
3200
- inMaxArea);
3193
+ return !(noNegativePosition && maxGridCols && maxGridRows && inColsLimits && inRowsLimits && inMinArea && inMaxArea);
3201
3194
  };
3202
3195
  GridsterComponent.prototype.findItemWithItem = function (item) {
3203
3196
  var widgetsIndex = this.grid.length - 1, widget;
3204
3197
  for (; widgetsIndex > -1; widgetsIndex--) {
3205
3198
  widget = this.grid[widgetsIndex];
3206
- if (widget.$item !== item &&
3207
- GridsterComponent_1.checkCollisionTwoItems(widget.$item, item)) {
3199
+ if (widget.$item !== item && GridsterComponent_1.checkCollisionTwoItems(widget.$item, item)) {
3208
3200
  return widget;
3209
3201
  }
3210
3202
  }
@@ -3215,8 +3207,7 @@
3215
3207
  var widgetsIndex = this.grid.length - 1, widget;
3216
3208
  for (; widgetsIndex > -1; widgetsIndex--) {
3217
3209
  widget = this.grid[widgetsIndex];
3218
- if (widget.$item !== item &&
3219
- GridsterComponent_1.checkCollisionTwoItems(widget.$item, item)) {
3210
+ if (widget.$item !== item && GridsterComponent_1.checkCollisionTwoItems(widget.$item, item)) {
3220
3211
  a.push(widget);
3221
3212
  }
3222
3213
  }
@@ -3232,8 +3223,8 @@
3232
3223
  else {
3233
3224
  itemComponent.notPlaced = true;
3234
3225
  if (!this.$options.disableWarnings) {
3235
- console.warn("Can't be placed in the bounds of the dashboard!/n" +
3236
- JSON.stringify(itemComponent.item, ["cols", "rows", "x", "y"]));
3226
+ console.warn('Can\'t be placed in the bounds of the dashboard!/n' +
3227
+ JSON.stringify(itemComponent.item, ['cols', 'rows', 'x', 'y']));
3237
3228
  }
3238
3229
  }
3239
3230
  };
@@ -3280,10 +3271,7 @@
3280
3271
  GridsterComponent.prototype.getLastPossiblePosition = function (item) {
3281
3272
  var farthestItem = { y: 0, x: 0 };
3282
3273
  farthestItem = this.grid.reduce(function (prev, curr) {
3283
- var currCoords = {
3284
- y: curr.$item.y + curr.$item.rows - 1,
3285
- x: curr.$item.x + curr.$item.cols - 1,
3286
- };
3274
+ var currCoords = { y: curr.$item.y + curr.$item.rows - 1, x: curr.$item.x + curr.$item.cols - 1 };
3287
3275
  if (GridsterUtils.compareItems(prev, currCoords) === 1) {
3288
3276
  return currCoords;
3289
3277
  }
@@ -3332,15 +3320,12 @@
3332
3320
  ], GridsterComponent.prototype, "options", void 0);
3333
3321
  GridsterComponent = GridsterComponent_1 = __decorate([
3334
3322
  core.Component({
3335
- selector: "gridster",
3323
+ selector: 'gridster',
3336
3324
  template: "<div class=\"gridster-column\" *ngFor=\"let column of gridColumns; let i = index;\"\r\n [ngStyle]=\"gridRenderer.getGridColumnStyle(i)\"></div>\r\n<div class=\"gridster-row\" *ngFor=\"let row of gridRows; let i = index;\"\r\n [ngStyle]=\"gridRenderer.getGridRowStyle(i)\"></div>\r\n<ng-content></ng-content>\r\n<gridster-preview class=\"gridster-preview\"></gridster-preview>\r\n",
3337
3325
  encapsulation: core.ViewEncapsulation.None,
3338
3326
  styles: ["gridster{clear:both;position:relative;box-sizing:border-box;background:#fff;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:block;overflow:auto}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto;flex-flow:column}gridster.mobile gridster-item{position:relative;width:100%!important;min-height:300px!important}gridster .gridster-column,gridster .gridster-row{position:absolute;display:none;transition:.3s;box-sizing:border-box}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid #ccc;border-right:1px solid #ccc}gridster .gridster-row{border-top:1px solid #ccc;border-bottom:1px solid #ccc}"]
3339
3327
  }),
3340
- __metadata("design:paramtypes", [core.ElementRef,
3341
- core.Renderer2,
3342
- core.ChangeDetectorRef,
3343
- core.NgZone])
3328
+ __metadata("design:paramtypes", [core.ElementRef, core.Renderer2, core.ChangeDetectorRef, core.NgZone])
3344
3329
  ], GridsterComponent);
3345
3330
  return GridsterComponent;
3346
3331
  }());