@schneideress/dashboardframework 0.0.209 → 0.0.210

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.
@@ -1901,7 +1901,6 @@
1901
1901
  size.width = this.width;
1902
1902
  size.cellHeight = this.gridCellHeight;
1903
1903
  this.widgetElement.widgetResized(size);
1904
- this.setTitleLineFor1xView();
1905
1904
  }
1906
1905
  };
1907
1906
  /**
@@ -2187,6 +2186,7 @@
2187
2186
  */
2188
2187
  function () { return __awaiter(_this, void 0, void 0, function () {
2189
2188
  var titleLineEnabled;
2189
+ var _this = this;
2190
2190
  return __generator(this, function (_a) {
2191
2191
  switch (_a.label) {
2192
2192
  case 0:
@@ -2214,6 +2214,19 @@
2214
2214
  function (e) {
2215
2215
  widgetContainer.setEmptyState(e.detail);
2216
2216
  }));
2217
+ widgetContainer.widgetElement.addEventListener('set-title-underline', (/**
2218
+ * @param {?} e
2219
+ * @return {?}
2220
+ */
2221
+ function (e) {
2222
+ console.log("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
2223
+ console.log(e);
2224
+ console.log(e.details);
2225
+ if (e.detail == true)
2226
+ _this.enableTitleLine = true;
2227
+ else
2228
+ _this.enableTitleLine = _this.enableTitleLineActual;
2229
+ }));
2217
2230
  titleLineEnabled = widgetContainer.widgetElement.titleLineEnabled();
2218
2231
  if (typeof (titleLineEnabled) != 'undefined') {
2219
2232
  this.enableTitleLine = titleLineEnabled;
@@ -2261,7 +2274,6 @@
2261
2274
  return [4 /*yield*/, widgetContainer.setDownloadIcon()];
2262
2275
  case 2:
2263
2276
  _a.sent();
2264
- this.setTitleLineFor1xView();
2265
2277
  return [2 /*return*/];
2266
2278
  }
2267
2279
  });
@@ -2764,22 +2776,6 @@
2764
2776
  else
2765
2777
  this.noPadding = false;
2766
2778
  };
2767
- /**
2768
- * @private
2769
- * @return {?}
2770
- */
2771
- RAWidgetContainer.prototype.setTitleLineFor1xView = /**
2772
- * @private
2773
- * @return {?}
2774
- */
2775
- function () {
2776
- /** @type {?} */
2777
- var titleLineEnabled1x = this.widgetElement.titleLineEnabledFor1xView();
2778
- if (typeof (titleLineEnabled1x) != 'undefined' && titleLineEnabled1x && (this.height == 1 || this.width == 1))
2779
- this.enableTitleLine = true;
2780
- else
2781
- this.enableTitleLine = this.enableTitleLineActual;
2782
- };
2783
2779
  RAWidgetContainer.decorators = [
2784
2780
  { type: core.Component, args: [{
2785
2781
  selector: 'ra-widget-container',