@skyux/core 5.5.0 → 5.6.2

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 (55) hide show
  1. package/bundles/skyux-core.umd.js +8 -10
  2. package/documentation.json +577 -1032
  3. package/esm2015/lib/modules/adapter-service/adapter.service.js +1 -1
  4. package/esm2015/lib/modules/adapter-service/adapter.service.js.map +1 -1
  5. package/esm2015/lib/modules/affix/affix-config.js.map +1 -1
  6. package/esm2015/lib/modules/affix/affix.directive.js.map +1 -1
  7. package/esm2015/lib/modules/affix/affix.module.js.map +1 -1
  8. package/esm2015/lib/modules/affix/affixer.js +1 -1
  9. package/esm2015/lib/modules/affix/affixer.js.map +1 -1
  10. package/esm2015/lib/modules/dock/dock-dom-adapter.service.js +1 -1
  11. package/esm2015/lib/modules/dock/dock-dom-adapter.service.js.map +1 -1
  12. package/esm2015/lib/modules/dock/dock.component.js.map +1 -1
  13. package/esm2015/lib/modules/dock/dock.module.js.map +1 -1
  14. package/esm2015/lib/modules/dock/dock.service.js +3 -3
  15. package/esm2015/lib/modules/dock/dock.service.js.map +1 -1
  16. package/esm2015/lib/modules/dynamic-component/dynamic-component.service.js.map +1 -1
  17. package/esm2015/lib/modules/log/log.service.js +1 -0
  18. package/esm2015/lib/modules/log/log.service.js.map +1 -1
  19. package/esm2015/lib/modules/media-query/media-query.service.js.map +1 -1
  20. package/esm2015/lib/modules/numeric/numeric.module.js.map +1 -1
  21. package/esm2015/lib/modules/numeric/numeric.pipe.js +4 -4
  22. package/esm2015/lib/modules/numeric/numeric.pipe.js.map +1 -1
  23. package/esm2015/lib/modules/numeric/numeric.service.js +5 -4
  24. package/esm2015/lib/modules/numeric/numeric.service.js.map +1 -1
  25. package/esm2015/lib/modules/overlay/overlay-instance.js.map +1 -1
  26. package/esm2015/lib/modules/overlay/overlay.component.js +1 -1
  27. package/esm2015/lib/modules/overlay/overlay.component.js.map +1 -1
  28. package/esm2015/lib/modules/overlay/overlay.module.js.map +1 -1
  29. package/esm2015/lib/modules/overlay/overlay.service.js.map +1 -1
  30. package/esm2015/lib/modules/percent-pipe/percent-pipe.module.js.map +1 -1
  31. package/esm2015/lib/modules/percent-pipe/percent.pipe.js.map +1 -1
  32. package/esm2015/lib/modules/scrollable-host/scrollable-host.service.js +4 -4
  33. package/esm2015/lib/modules/scrollable-host/scrollable-host.service.js.map +1 -1
  34. package/esm2015/lib/modules/shared/number-format/number-format-utility.js +0 -2
  35. package/esm2015/lib/modules/shared/number-format/number-format-utility.js.map +1 -1
  36. package/esm2015/lib/modules/shared/sky-core-resources.module.js +1 -1
  37. package/esm2015/lib/modules/shared/sky-core-resources.module.js.map +1 -1
  38. package/esm2015/lib/modules/title/title.service.js.map +1 -1
  39. package/esm2015/lib/modules/viewkeeper/viewkeeper.directive.js +2 -2
  40. package/esm2015/lib/modules/viewkeeper/viewkeeper.directive.js.map +1 -1
  41. package/esm2015/lib/modules/viewkeeper/viewkeeper.js +4 -7
  42. package/esm2015/lib/modules/viewkeeper/viewkeeper.js.map +1 -1
  43. package/esm2015/lib/modules/viewkeeper/viewkeeper.service.js.map +1 -1
  44. package/esm2015/testing/mock-media-query.service.js.map +1 -1
  45. package/esm2015/testing/mock-ui-config.service.js.map +1 -1
  46. package/fesm2015/skyux-core-testing.js.map +1 -1
  47. package/fesm2015/skyux-core.js +58 -61
  48. package/fesm2015/skyux-core.js.map +1 -1
  49. package/lib/modules/affix/affix.directive.d.ts +2 -2
  50. package/lib/modules/affix/affixer.d.ts +1 -1
  51. package/lib/modules/dock/dock.service.d.ts +2 -2
  52. package/lib/modules/numeric/numeric.pipe.d.ts +2 -2
  53. package/lib/modules/overlay/overlay-instance.d.ts +1 -1
  54. package/lib/modules/shared/number-format/number-format-utility.d.ts +0 -1
  55. package/package.json +11 -10
@@ -1511,6 +1511,7 @@
1511
1511
  }
1512
1512
  /*istanbul ignore else */
1513
1513
  if (window.console) {
1514
+ // eslint-disable-next-line prefer-spread,prefer-rest-params
1514
1515
  window.console.warn.apply(window.console, arguments);
1515
1516
  }
1516
1517
  };
@@ -2094,7 +2095,6 @@
2094
2095
  // See: https://github.com/ng-packagr/ng-packagr/issues/641
2095
2096
  // @dynamic
2096
2097
  var SkyNumberFormatUtility = /** @class */ (function () {
2097
- /* istanbul ignore next */
2098
2098
  function SkyNumberFormatUtility() {
2099
2099
  }
2100
2100
  SkyNumberFormatUtility.formatNumber = function (locale, value, style, digits, currency, currencyAsSymbol, currencySign) {
@@ -2211,6 +2211,7 @@
2211
2211
  this.storeShortenSymbol(output);
2212
2212
  var locale = options.locale || this.currentLocale;
2213
2213
  var digits;
2214
+ var isDecimal;
2214
2215
  // Checks the string entered for format. Using toLowerCase to ignore case.
2215
2216
  switch ((_a = options.format) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
2216
2217
  // In a case where a decimal value was not shortened and
@@ -2219,7 +2220,7 @@
2219
2220
  // Note: This will need to be reviewed if we support currencies with
2220
2221
  // three decimal digits.
2221
2222
  case 'currency':
2222
- var isDecimal = value % 1 !== 0;
2223
+ isDecimal = value % 1 !== 0;
2223
2224
  if (options.minDigits) {
2224
2225
  digits = "1." + options.minDigits + "-" + options.digits;
2225
2226
  }
@@ -2229,12 +2230,12 @@
2229
2230
  else {
2230
2231
  digits = "1.0-" + options.digits;
2231
2232
  }
2233
+ output = SkyNumberFormatUtility.formatNumber(locale, parseFloat(output), i1.SkyIntlNumberFormatStyle.Currency, digits, options.iso,
2232
2234
  // Angular 5+ needs a string for this parameter, but Angular 4 needs a boolean.
2233
2235
  // To support both versions we can supply 'symbol' which will evaluate truthy for Angular 4
2234
2236
  // and the appropriate string value for Angular 5+.
2235
2237
  // See: https://angular.io/api/common/CurrencyPipe#parameters
2236
- var symbolDisplay = 'symbol';
2237
- output = SkyNumberFormatUtility.formatNumber(locale, parseFloat(output), i1.SkyIntlNumberFormatStyle.Currency, digits, options.iso, symbolDisplay, options.currencySign);
2238
+ 'symbol', options.currencySign);
2238
2239
  break;
2239
2240
  // The following is a catch-all to ensure that if
2240
2241
  // anything but currency (or a future option) are entered,
@@ -3284,25 +3285,22 @@
3284
3285
  };
3285
3286
  SkyViewkeeper.prototype.shouldFixEl = function (boundaryInfo, verticalOffset) {
3286
3287
  var anchorTop;
3287
- var doFixEl;
3288
3288
  if (boundaryInfo.spacerEl) {
3289
3289
  anchorTop = getOffset(boundaryInfo.spacerEl, this.scrollableHost).top;
3290
3290
  }
3291
3291
  else {
3292
3292
  anchorTop = getOffset(this.el, this.scrollableHost).top;
3293
3293
  }
3294
- doFixEl =
3295
- boundaryInfo.scrollTop + verticalOffset + this.viewportMarginTop >
3296
- anchorTop;
3294
+ var doFixEl = boundaryInfo.scrollTop + verticalOffset + this.viewportMarginTop >
3295
+ anchorTop;
3297
3296
  return doFixEl;
3298
3297
  };
3299
3298
  SkyViewkeeper.prototype.getFixedStyles = function (boundaryInfo, verticalOffset) {
3300
- var elFixedTop;
3301
3299
  // If the element needs to be fixed, this will calculate its position. The position
3302
3300
  // will be 0 (fully visible) unless the user is scrolling the boundary out of view.
3303
3301
  // In that case, the element should begin to scroll out of view with the
3304
3302
  // rest of the boundary by setting its top position to a negative value.
3305
- elFixedTop = Math.min(boundaryInfo.boundaryBottom -
3303
+ var elFixedTop = Math.min(boundaryInfo.boundaryBottom -
3306
3304
  boundaryInfo.elHeight -
3307
3305
  boundaryInfo.scrollTop, verticalOffset);
3308
3306
  var elFixedWidth = boundaryInfo.boundaryEl.getBoundingClientRect().width;