@eclipse-scout/core 22.0.0 → 22.0.1

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.
@@ -312,7 +312,7 @@ class App {
312
312
 
313
313
  $loadingRoot.oneAnimationEnd(() => $loadingRoot.remove());
314
314
 
315
- if ($loadingRoot.css('opacity') == 1) {
315
+ if ($loadingRoot.css('opacity') === '1') {
316
316
  $loadingRoot.addClass('fadeout and-more');
317
317
  } else {
318
318
  $loadingRoot.addClass('fadeout');
@@ -3189,8 +3189,6 @@ __webpack_require__.r(__webpack_exports__);
3189
3189
  /* harmony export */ "default": () => (/* binding */ BreadcrumbBarLayout)
3190
3190
  /* harmony export */ });
3191
3191
  /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./src/index.js");
3192
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3193
-
3194
3192
  /*
3195
3193
  * Copyright (c) 2010-2020 BSI Business Systems Integration AG.
3196
3194
  * All rights reserved. This program and the accompanying materials
@@ -3205,40 +3203,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3205
3203
  class BreadcrumbBarLayout extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractLayout {
3206
3204
  constructor(breadcrumbBar) {
3207
3205
  super();
3208
-
3209
- _defineProperty(this, "_collapse", function ($container, containerSize) {
3210
- let currentIndex = 1;
3211
-
3212
- const visibleBreadcrumbItems = this._visibleBreadcrumbItems();
3213
-
3214
- let prefSize = this._actualPrefSize(visibleBreadcrumbItems, true);
3215
-
3216
- while (prefSize.width > containerSize.width && currentIndex < visibleBreadcrumbItems.length - 1) {
3217
- // remove breadcrumbItems until size fits or only 2 breadcrumbItems are visible
3218
- const crumb = visibleBreadcrumbItems[currentIndex];
3219
- crumb.$container.hide();
3220
- crumb._layHidden = true;
3221
- visibleBreadcrumbItems.splice(currentIndex, 1);
3222
- prefSize = this._actualPrefSize(visibleBreadcrumbItems, true);
3223
- }
3224
- });
3225
-
3226
- _defineProperty(this, "_breadcrumbItemsWidth", function (breadcrumbItems, considerEllipsis) {
3227
- let breadcrumbsWidth = 0;
3228
- breadcrumbItems = breadcrumbItems || this._visibleBreadcrumbItems();
3229
- breadcrumbItems.forEach(breadcrumbItem => {
3230
- if (breadcrumbItem.rendered) {
3231
- breadcrumbsWidth += breadcrumbItem.$container.outerWidth(true);
3232
- }
3233
- }, this);
3234
-
3235
- if (considerEllipsis && this._breadcrumbBar._ellipsisBreadcrumbItem && this._breadcrumbBar._ellipsisBreadcrumbItem.rendered) {
3236
- breadcrumbsWidth += this._breadcrumbBar._ellipsisBreadcrumbItem.$container.outerWidth(true);
3237
- }
3238
-
3239
- return breadcrumbsWidth;
3240
- });
3241
-
3242
3206
  this._breadcrumbBar = breadcrumbBar;
3243
3207
  }
3244
3208
 
@@ -3271,6 +3235,23 @@ class BreadcrumbBarLayout extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractLa
3271
3235
  this._collapse(breadcrumbItems, containerSize);
3272
3236
  }
3273
3237
 
3238
+ _collapse($container, containerSize) {
3239
+ let currentIndex = 1;
3240
+
3241
+ const visibleBreadcrumbItems = this._visibleBreadcrumbItems();
3242
+
3243
+ let prefSize = this._actualPrefSize(visibleBreadcrumbItems, true);
3244
+
3245
+ while (prefSize.width > containerSize.width && currentIndex < visibleBreadcrumbItems.length - 1) {
3246
+ // remove breadcrumbItems until size fits or only 2 breadcrumbItems are visible
3247
+ const crumb = visibleBreadcrumbItems[currentIndex];
3248
+ crumb.$container.hide();
3249
+ crumb._layHidden = true;
3250
+ visibleBreadcrumbItems.splice(currentIndex, 1);
3251
+ prefSize = this._actualPrefSize(visibleBreadcrumbItems, true);
3252
+ }
3253
+ }
3254
+
3274
3255
  _applyToEllipsis(fun) {
3275
3256
  if (this._breadcrumbBar._ellipsisBreadcrumbItem) {
3276
3257
  fun(this._breadcrumbBar._ellipsisBreadcrumbItem);
@@ -3327,6 +3308,22 @@ class BreadcrumbBarLayout extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractLa
3327
3308
  */
3328
3309
 
3329
3310
 
3311
+ _breadcrumbItemsWidth(breadcrumbItems, considerEllipsis) {
3312
+ let breadcrumbsWidth = 0;
3313
+ breadcrumbItems = breadcrumbItems || this._visibleBreadcrumbItems();
3314
+ breadcrumbItems.forEach(breadcrumbItem => {
3315
+ if (breadcrumbItem.rendered) {
3316
+ breadcrumbsWidth += breadcrumbItem.$container.outerWidth(true);
3317
+ }
3318
+ }, this);
3319
+
3320
+ if (considerEllipsis && this._breadcrumbBar._ellipsisBreadcrumbItem && this._breadcrumbBar._ellipsisBreadcrumbItem.rendered) {
3321
+ breadcrumbsWidth += this._breadcrumbBar._ellipsisBreadcrumbItem.$container.outerWidth(true);
3322
+ }
3323
+
3324
+ return breadcrumbsWidth;
3325
+ }
3326
+
3330
3327
  }
3331
3328
 
3332
3329
  /***/ }),
@@ -88546,9 +88543,8 @@ class Table extends _index__WEBPACK_IMPORTED_MODULE_0__.Widget {
88546
88543
  let $row = $cell.parent();
88547
88544
  return $row.data('aggregateRow')
88548
88545
  /* row in the table */
88549
- || $row.hasClass('table-aggregate')
88546
+ || $row.hasClass('table-aggregate');
88550
88547
  /* aggregate table control */
88551
- ;
88552
88548
  }
88553
88549
 
88554
88550
  reload(reloadReason) {
@@ -102891,7 +102887,7 @@ class ColumnOptimalWidthMeasurer {
102891
102887
 
102892
102888
  let $neighbour = cellRange[cellRange.length - 1];
102893
102889
 
102894
- if ($neighbour.hasClass('empty') || $cell.hasClass('halign-right') == $neighbour.hasClass('halign-right')) {
102890
+ if ($neighbour.hasClass('empty') || $cell.hasClass('halign-right') === $neighbour.hasClass('halign-right')) {
102895
102891
  return 0;
102896
102892
  }
102897
102893
 
@@ -118090,7 +118086,9 @@ class LazyNodeFilter {
118090
118086
  } // not expanded: remove lazy expand marker (forget lazy expanded children)
118091
118087
 
118092
118088
 
118093
- node.childNodes.forEach(child => child._lazyNodeFilterAccepted = false);
118089
+ node.childNodes.forEach(child => {
118090
+ child._lazyNodeFilterAccepted = false;
118091
+ });
118094
118092
 
118095
118093
  if (!node.parentNode || !node.parentNode.expandedLazy || !node.parentNode.lazyExpandingEnabled || !this.tree.lazyExpandingEnabled) {
118096
118094
  // no lazy expanding supported
@@ -118105,7 +118103,7 @@ class LazyNodeFilter {
118105
118103
  break;
118106
118104
  }
118107
118105
 
118108
- if (selectedNode == node) {
118106
+ if (selectedNode === node) {
118109
118107
  node._lazyNodeFilterAccepted = true;
118110
118108
  return true;
118111
118109
  }
@@ -118398,7 +118396,9 @@ class Tree extends _index__WEBPACK_IMPORTED_MODULE_0__.Widget {
118398
118396
  }
118399
118397
 
118400
118398
  this._inSelectionPathList[selectedNode.id] = true;
118401
- selectedNode.childNodes.forEach(child => this._inSelectionPathList[child.id] = true);
118399
+ selectedNode.childNodes.forEach(child => {
118400
+ this._inSelectionPathList[child.id] = true;
118401
+ });
118402
118402
  let parentNode = selectedNode.parentNode;
118403
118403
 
118404
118404
  while (parentNode) {
@@ -128386,7 +128386,8 @@ function uninstallDragAndDropHandler(target) {
128386
128386
  * @property {String} [selector] CSS selector which will be added to the event source.
128387
128387
  * @property {dropType} [dropType] Returns the allowed drop type during a drop event. Default is {@link dragAndDrop.SCOUT_TYPES.FILE_TRANSFER}
128388
128388
  * @property {dropMaximumSize} [dropMaximumSize] Returns the maximum allowed size of a dropped object. Default is {@link DragAndDropTarget.dropMaximumSize}
128389
- * @property {validateFiles} [validateFiles] An optional function to add a custom file validation logic. Throw a {@link dropValidationErrorMessage} to indicate a failed validation. if no custom validator is installed, the default maximum file size validator is invoked.
128389
+ * @property {validateFiles} [validateFiles] An optional function to add a custom file validation logic. Throw a {@link dropValidationErrorMessage} to indicate a failed validation.
128390
+ * If no custom validator is installed, the default maximum file size validator is invoked.
128390
128391
  * @property {additionalDropProperties} [additionalDropProperties] Returns additional drop properties to be used in {@link DragAndDropHandler.uploadFiles} as uploadProperties
128391
128392
  */
128392
128393
 
@@ -128650,7 +128651,7 @@ function onSwipe($element, id, onDown, onMove, onUp) {
128650
128651
  let deltaX = pageX - origPageX;
128651
128652
  let newLeft = origPosLeft + deltaX;
128652
128653
 
128653
- if (newLeft != curPosLeft) {
128654
+ if (newLeft !== curPosLeft) {
128654
128655
  // only update swipe direction if it actually changed
128655
128656
  direction = Math.sign(newLeft - curPosLeft);
128656
128657
  }