ids-enterprise 4.52.0 → 4.52.4

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.
Files changed (34) hide show
  1. package/dist/css/theme-classic-contrast.css +3 -3
  2. package/dist/css/theme-classic-contrast.min.css +3 -3
  3. package/dist/css/theme-classic-dark.css +3 -3
  4. package/dist/css/theme-classic-dark.min.css +3 -3
  5. package/dist/css/theme-classic-light.css +3 -3
  6. package/dist/css/theme-classic-light.min.css +3 -3
  7. package/dist/css/theme-new-contrast.css +3 -3
  8. package/dist/css/theme-new-contrast.min.css +3 -3
  9. package/dist/css/theme-new-dark.css +3 -3
  10. package/dist/css/theme-new-dark.min.css +3 -3
  11. package/dist/css/theme-new-light.css +3 -3
  12. package/dist/css/theme-new-light.min.css +3 -3
  13. package/dist/css/theme-soho-contrast.css +3 -3
  14. package/dist/css/theme-soho-contrast.min.css +3 -3
  15. package/dist/css/theme-soho-dark.css +3 -3
  16. package/dist/css/theme-soho-dark.min.css +3 -3
  17. package/dist/css/theme-soho-light.css +3 -3
  18. package/dist/css/theme-soho-light.min.css +3 -3
  19. package/dist/css/theme-uplift-contrast.css +3 -3
  20. package/dist/css/theme-uplift-contrast.min.css +3 -3
  21. package/dist/css/theme-uplift-dark.css +3 -3
  22. package/dist/css/theme-uplift-dark.min.css +3 -3
  23. package/dist/css/theme-uplift-light.css +3 -3
  24. package/dist/css/theme-uplift-light.min.css +3 -3
  25. package/dist/js/sohoxi.esm.js +47 -41
  26. package/dist/js/sohoxi.js +47 -41
  27. package/dist/js/sohoxi.js.map +1 -1
  28. package/dist/js/sohoxi.min.js +4 -4
  29. package/dist/js/sohoxi.min.js.map +1 -1
  30. package/dist/svg/theme-classic-svg-empty.html +5 -5
  31. package/dist/svg/theme-classic-svg.html +206 -206
  32. package/dist/svg/theme-new-svg-empty.html +8 -8
  33. package/dist/svg/theme-new-svg.html +223 -223
  34. package/package.json +1 -1
package/dist/js/sohoxi.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * IDS Enterprise Components - v4.52.0
3
- * Date: 2021-06-07T14:06:06.301Z
4
- * Revision: fa1a278f3ddfa8e77b741bfbfc4e16f1d18f4d2d
2
+ * IDS Enterprise Components - v4.52.4
3
+ * Date: 2021-09-21T19:52:38.948Z
4
+ * Revision: 4dd24e44e6f9c658dd1c5a5df25bf697e9fc0685
5
5
  *
6
6
  *
7
7
  * Apache License
@@ -348,7 +348,7 @@ var Soho = (function (exports) {
348
348
 
349
349
  var name = "ids-enterprise";
350
350
  var slug = "ids-enterprise";
351
- var version = "4.52.0";
351
+ var version = "4.52.4";
352
352
  var description = "Infor Design System (IDS) Enterprise Components for the web";
353
353
  var repository = {
354
354
  type: "git",
@@ -898,9 +898,7 @@ var Soho = (function (exports) {
898
898
 
899
899
  xssUtils.isUrlLocal = function (url) {
900
900
  var isEmpty = url === '';
901
- return !isEmpty && (url[0] === '/' && (url.length === 1 || url[1] !== '/' && url[1] !== '\\') || // "/" or "/foo" but not "//" or "/\"
902
- url.length > 1 && url[0] === '~' && url[1] === '/') || // "~/" or "~/foo"
903
- url.length >= 1 && url[0] === '#'; // "#" or "#foo"
901
+ return !isEmpty && (url[0] === '/' && (url.length === 1 || url[1] !== '/' && url[1] !== '\\') || url.length > 1 && url[0] === '~' && url[1] === '/') || url.length >= 1 && url[0] === '#'; // "#" or "#foo"
904
902
  };
905
903
 
906
904
  var DOM = {};
@@ -3797,6 +3795,14 @@ var Soho = (function (exports) {
3797
3795
 
3798
3796
  numberUtils.fixTo = function toFixed(number) {
3799
3797
  var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
3798
+
3799
+ if (decimals > 10 && number.toString().indexOf('.') > -1) {
3800
+ return number.toLocaleString('en-US', {
3801
+ useGrouping: false,
3802
+ minimumFractionDigits: decimals
3803
+ });
3804
+ }
3805
+
3800
3806
  return (+(Math.round(+(number + 'e' + decimals)) + 'e' + -decimals)).toFixed(decimals); //eslint-disable-line
3801
3807
  };
3802
3808
  /**
@@ -3814,6 +3820,13 @@ var Soho = (function (exports) {
3814
3820
  var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
3815
3821
  // Parse the number into three parts. Max supported number is 18.6
3816
3822
  var numStr = number.toString();
3823
+ var hasMinus = false;
3824
+
3825
+ if (numStr.substr(0, 1) === '-') {
3826
+ hasMinus = true;
3827
+ numStr = numStr.replace('-', '');
3828
+ }
3829
+
3817
3830
  var parsedNum = '';
3818
3831
  var noDecimals = numStr.split('.');
3819
3832
  var parts = [noDecimals[0].substr(0, 10), noDecimals[0].substr(10), noDecimals[1]];
@@ -3831,7 +3844,11 @@ var Soho = (function (exports) {
3831
3844
  }
3832
3845
 
3833
3846
  if (lastPart && lastPart.substr(0, 1) === '0') {
3834
- parsedNum = "".concat(firstPart, "0").concat(parsedNum);
3847
+ parsedNum = "".concat(firstPart).concat(parsedNum);
3848
+ }
3849
+
3850
+ if (hasMinus) {
3851
+ return "-".concat(parsedNum);
3835
3852
  }
3836
3853
 
3837
3854
  return parsedNum;
@@ -5841,8 +5858,8 @@ var Soho = (function (exports) {
5841
5858
  percentFormat = percentFormat.replace('¤', percentSign);
5842
5859
  }
5843
5860
 
5844
- if (typeof number === 'string') {
5845
- number = Locale.parseNumber(number);
5861
+ if (typeof number === 'string' && !((options === null || options === void 0 ? void 0 : options == null ? void 0 : options.parseNumber) === false)) {
5862
+ number = Locale.parseNumber(number, options);
5846
5863
  }
5847
5864
 
5848
5865
  if (number.toString().indexOf('e') > -1) {
@@ -5996,18 +6013,18 @@ var Soho = (function (exports) {
5996
6013
  numString = numString.toString();
5997
6014
  }
5998
6015
 
5999
- var group = options && options.group ? options.group : numSettings ? numSettings.group : ',';
6016
+ var group = options && options.group !== undefined ? options.group : numSettings ? numSettings.group : ',';
6000
6017
  var decimal = options && options.decimal ? options.decimal : numSettings ? numSettings.decimal : '.';
6001
6018
  var percentSign = options && options.percentSign ? options.percentSign : numSettings ? numSettings.percentSign : '%';
6002
6019
  var currencySign = options && options.currencySign ? options.currencySign : localeData.currencySign || '$';
6003
- var exp = group === ' ' ? new RegExp(/\s/g) : new RegExp("\\".concat(group), 'g');
6020
+ var exp = group === ' ' || group === '' ? new RegExp(/\s/g) : new RegExp("\\".concat(group), 'g');
6004
6021
  numString = numString.replace(exp, '');
6005
6022
  numString = numString.replace(decimal, '.');
6006
6023
  numString = numString.replace(percentSign, '');
6007
6024
  numString = numString.replace(currencySign, '');
6008
6025
  numString = numString.replace('$', '');
6009
6026
  numString = numString.replace(' ', '');
6010
- return numString.length >= 19 ? numString : parseFloat(numString);
6027
+ return numString.length >= 18 ? numString : parseFloat(numString);
6011
6028
  },
6012
6029
 
6013
6030
  /**
@@ -16756,9 +16773,7 @@ var Soho = (function (exports) {
16756
16773
  }).length; // The number of times we need to see occurrences of the `targetChar` before we
16757
16774
  // know it is the one we're looking for is:
16758
16775
 
16759
- var requiredNumberOfMatches = countTargetCharInPlaceholder + countTargetCharInIntersection + countTargetCharInPipedChars + ( // The character to the right of the caret isn't included in `intersection`
16760
- // so add one if we are tracking the character to the right
16761
- trackRightCharacter ? 1 : 0); // Now we start looking for the location of the `targetChar`.
16776
+ var requiredNumberOfMatches = countTargetCharInPlaceholder + countTargetCharInIntersection + countTargetCharInPipedChars + (trackRightCharacter ? 1 : 0); // Now we start looking for the location of the `targetChar`.
16762
16777
  // We keep looping forward and store the index in every iteration. Once we have encountered
16763
16778
  // enough occurrences of the target character, we break out of the loop
16764
16779
  // If are searching for the second `1` in `1214`, `startingSearchIndex` will point at `4`.
@@ -31232,8 +31247,7 @@ var Soho = (function (exports) {
31232
31247
  var value = isPrivate ? obj._value : obj.value; //eslint-disable-line
31233
31248
 
31234
31249
  return obj && !isUndefined(value) && obj.format ? //eslint-disable-line
31235
- format(fixPercent(value, ds), obj.format, ds) : //eslint-disable-line
31236
- obj ? fixPercent(value, ds) : 0;
31250
+ format(fixPercent(value, ds), obj.format, ds) : obj ? fixPercent(value, ds) : 0;
31237
31251
  };
31238
31252
 
31239
31253
  var self = this;
@@ -34230,8 +34244,7 @@ var Soho = (function (exports) {
34230
34244
  }
34231
34245
 
34232
34246
  if (selected < 1) {
34233
- if (typeof o.fieldName !== 'undefined' && typeof o.fieldValue !== 'undefined' && o.fieldValue === (isSingle && self.settings.isStacked ? d[0][o.fieldName] : d[o.fieldName]) || //eslint-disable-line
34234
- typeof o.index !== 'undefined' && o.index === i || o.data && equals(o.data, dataset[gIdx].data[i]) || o.elem && $(this).is(o.elem)) {
34247
+ if (typeof o.fieldName !== 'undefined' && typeof o.fieldValue !== 'undefined' && o.fieldValue === (isSingle && self.settings.isStacked ? d[0][o.fieldName] : d[o.fieldName]) || typeof o.index !== 'undefined' && o.index === i || o.data && equals(o.data, dataset[gIdx].data[i]) || o.elem && $(this).is(o.elem)) {
34235
34248
  selected++;
34236
34249
  selector = d3.select(this);
34237
34250
  barIndex = i;
@@ -35106,10 +35119,7 @@ var Soho = (function (exports) {
35106
35119
  }).attr('class', function (d, i) {
35107
35120
  return "bar series-".concat(i);
35108
35121
  }).style('fill', function (d, i) {
35109
- return s.isStacked ? // eslint-disable-line
35110
- series.length === 1 ? charts.chartColor(i, 'bar-single', d) : // eslint-disable-line
35111
- charts.chartColor(d.index, 'bar', series[d.index]) : // eslint-disable-line
35112
- charts.chartColor(i, 'bar', legendMap[i]);
35122
+ return s.isStacked ? series.length === 1 ? charts.chartColor(i, 'bar-single', d) : charts.chartColor(d.index, 'bar', series[d.index]) : charts.chartColor(i, 'bar', legendMap[i]);
35113
35123
  }) // eslint-disable-line
35114
35124
  .attr('mask', function (d, i) {
35115
35125
  if (dataset.length === 1 && dataset[0][i].pattern) {
@@ -35430,8 +35440,7 @@ var Soho = (function (exports) {
35430
35440
  return 0;
35431
35441
  }
35432
35442
 
35433
- return s.isStacked && !s.isSingle ? xScale(d.x0) + 1 : //eslint-disable-line
35434
- d.x < 0 ? xScale(d.x) + 1 : xScale(0) + 1;
35443
+ return s.isStacked && !s.isSingle ? xScale(d.x0) + 1 : d.x < 0 ? xScale(d.x) + 1 : xScale(0) + 1;
35435
35444
  });
35436
35445
  s.svg = self.svg; // Add Legends
35437
35446
 
@@ -41327,9 +41336,7 @@ var Soho = (function (exports) {
41327
41336
  * @returns {boolean} true if the key is a control key.
41328
41337
  */
41329
41338
  isControl: function isControl(keycode) {
41330
- var valid = keycode > 7 && keycode < 48 || // control chars
41331
- keycode > 90 && keycode < 94 || // windows keys
41332
- keycode > 111 && keycode < 146; // function keys
41339
+ var valid = keycode > 7 && keycode < 48 || keycode > 90 && keycode < 94 || keycode > 111 && keycode < 146; // function keys
41333
41340
 
41334
41341
  return valid;
41335
41342
  },
@@ -84312,14 +84319,9 @@ var Soho = (function (exports) {
84312
84319
  var valid = false;
84313
84320
 
84314
84321
  if (shiftKey) {
84315
- valid = keycode > 64 && keycode < 91 || // letter keys
84316
- keycode >= 33 && keycode <= 38 || keycode >= 40 && keycode <= 43 || keycode === 126 || keycode === 58 || keycode === 60 || keycode >= 123 && keycode <= 125 || keycode === 94 || keycode === 95 || keycode >= 62 && keycode <= 64;
84322
+ valid = keycode > 64 && keycode < 91 || keycode >= 33 && keycode <= 38 || keycode >= 40 && keycode <= 43 || keycode === 126 || keycode === 58 || keycode === 60 || keycode >= 123 && keycode <= 125 || keycode === 94 || keycode === 95 || keycode >= 62 && keycode <= 64;
84317
84323
  } else {
84318
- valid = keycode === 13 || // enter key
84319
- keycode >= 48 && keycode <= 57 || // number keys
84320
- keycode >= 97 && keycode <= 122 || // letter keys
84321
- keycode === 59 || keycode === 61 || keycode >= 44 && keycode <= 47 || keycode === 96 || // ;=,-./` (in order)
84322
- keycode >= 91 && keycode <= 93 || keycode === 39; // [\]' (in order)
84324
+ valid = keycode === 13 || keycode >= 48 && keycode <= 57 || keycode >= 97 && keycode <= 122 || keycode === 59 || keycode === 61 || keycode >= 44 && keycode <= 47 || keycode === 96 || keycode >= 91 && keycode <= 93 || keycode === 39; // [\]' (in order)
84323
84325
  }
84324
84326
 
84325
84327
  return valid;
@@ -84394,8 +84396,7 @@ var Soho = (function (exports) {
84394
84396
  var length = value.length + (isExtraLinebreaks ? this.countLinebreaks(value) : 0);
84395
84397
  var max = self.getMaxLength();
84396
84398
  var remaining = parseInt(max, 10) - length;
84397
- var text = (self.settings.charRemainingText ? self.settings.charRemainingText : //eslint-disable-line
84398
- Locale.translate('CharactersLeft') === 'CharactersLeft' ? 'Characters Left' : Locale.translate('CharactersLeft')).replace('{0}', remaining.toString());
84399
+ var text = (self.settings.charRemainingText ? self.settings.charRemainingText : Locale.translate('CharactersLeft') === 'CharactersLeft' ? 'Characters Left' : Locale.translate('CharactersLeft')).replace('{0}', remaining.toString());
84399
84400
 
84400
84401
  if (self.counter) {
84401
84402
  if (length >= max) {
@@ -98440,7 +98441,13 @@ var Soho = (function (exports) {
98440
98441
  this.settings.columns[idx].hidden = true;
98441
98442
  this.headerNodeCheckbox = this.headerNodes().eq(idx);
98442
98443
  if (!((_this$settings4 = this.settings) !== null && _this$settings4 !== void 0 && (_this$settings4$froze = _this$settings4 == null ? void 0 : _this$settings4.frozenColumns) !== null && _this$settings4$froze !== void 0 && (_this$settings4$froze == null ? void 0 : _this$settings4$froze.left.length))) this.headerNodes().eq(idx).addClass('is-hidden');
98443
- this.headerNodes().eq(idx).off().remove();
98444
+
98445
+ if (idx === 0 && id === 'selectionCheckbox') {
98446
+ this.headerNodes().eq(idx).off().remove();
98447
+ } else {
98448
+ this.headerNodes().eq(idx).addClass('is-hidden');
98449
+ }
98450
+
98444
98451
  this.colGroupNodes().eq(idx).addClass('is-hidden');
98445
98452
  var frozenLeft = ((_this$settings5 = this.settings) === null || _this$settings5 === void 0 ? void 0 : (_this$settings5$froze = _this$settings5 == null ? void 0 : _this$settings5.frozenColumns) === null || _this$settings5$froze === void 0 ? void 0 : _this$settings5$froze == null ? void 0 : _this$settings5$froze.left.length) || 0;
98446
98453
  this.tableBody.find("> tr > td:nth-child(".concat(idx - frozenLeft + 1, ")")).addClass('is-hidden');
@@ -101994,8 +102001,7 @@ var Soho = (function (exports) {
101994
102001
  if (key === 9 && e.shiftKey && target.is('.code-block-actions')) {
101995
102002
  self.focusNextPrev('prev', node);
101996
102003
  } else {
101997
- if (!isRTL && (key === 37 || key === 9 && e.shiftKey) || // eslint-disable-line
101998
- isRTL && (key === 39 || key === 9)) {
102004
+ if (!isRTL && (key === 37 || key === 9 && e.shiftKey) || isRTL && (key === 39 || key === 9)) {
101999
102005
  // eslint-disable-line
102000
102006
  cell = getNextVisibleCell(cell, lastCell, true);
102001
102007
  } else {