@skyux/core 5.1.1 → 5.2.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.
Files changed (79) hide show
  1. package/README.md +1 -1
  2. package/bundles/skyux-core-testing.umd.js +27 -32
  3. package/bundles/skyux-core-testing.umd.js.map +1 -1
  4. package/bundles/skyux-core.umd.js +427 -374
  5. package/bundles/skyux-core.umd.js.map +1 -1
  6. package/documentation.json +615 -630
  7. package/esm2015/modules/adapter-service/adapter.module.js +5 -5
  8. package/esm2015/modules/adapter-service/adapter.service.js +9 -8
  9. package/esm2015/modules/adapter-service/focusable-children-options.js +1 -1
  10. package/esm2015/modules/affix/affix-auto-fit-context.js +1 -1
  11. package/esm2015/modules/affix/affix-config.js +1 -1
  12. package/esm2015/modules/affix/affix-offset-change.js +1 -1
  13. package/esm2015/modules/affix/affix-offset.js +1 -1
  14. package/esm2015/modules/affix/affix-placement-change.js +1 -1
  15. package/esm2015/modules/affix/affix-utils.js +3 -8
  16. package/esm2015/modules/affix/affix.directive.js +7 -7
  17. package/esm2015/modules/affix/affix.module.js +8 -16
  18. package/esm2015/modules/affix/affix.service.js +6 -6
  19. package/esm2015/modules/affix/affixer.js +21 -19
  20. package/esm2015/modules/affix/dom-utils.js +3 -4
  21. package/esm2015/modules/dock/dock-dom-adapter.service.js +8 -7
  22. package/esm2015/modules/dock/dock-insert-component-config.js +1 -1
  23. package/esm2015/modules/dock/dock-item-config.js +1 -1
  24. package/esm2015/modules/dock/dock-item-reference.js +1 -1
  25. package/esm2015/modules/dock/dock-item.js +1 -1
  26. package/esm2015/modules/dock/dock-location.js +1 -1
  27. package/esm2015/modules/dock/dock-options.js +1 -1
  28. package/esm2015/modules/dock/dock.component.js +13 -17
  29. package/esm2015/modules/dock/dock.module.js +9 -21
  30. package/esm2015/modules/dock/dock.service.js +6 -6
  31. package/esm2015/modules/dynamic-component/dynamic-component-location.js +1 -1
  32. package/esm2015/modules/dynamic-component/dynamic-component-options.js +1 -1
  33. package/esm2015/modules/dynamic-component/dynamic-component.module.js +5 -5
  34. package/esm2015/modules/dynamic-component/dynamic-component.service.js +7 -7
  35. package/esm2015/modules/format/app-format.js +5 -5
  36. package/esm2015/modules/id/id.directive.js +5 -5
  37. package/esm2015/modules/id/id.module.js +7 -11
  38. package/esm2015/modules/log/log.module.js +5 -5
  39. package/esm2015/modules/log/log.service.js +5 -5
  40. package/esm2015/modules/media-query/media-breakpoints.js +1 -1
  41. package/esm2015/modules/media-query/media-query-listener.js +1 -1
  42. package/esm2015/modules/media-query/media-query.module.js +5 -5
  43. package/esm2015/modules/media-query/media-query.service.js +12 -12
  44. package/esm2015/modules/mutation/mutation-observer-service.js +5 -5
  45. package/esm2015/modules/numeric/numeric.module.js +9 -24
  46. package/esm2015/modules/numeric/numeric.options.js +1 -1
  47. package/esm2015/modules/numeric/numeric.pipe.js +33 -19
  48. package/esm2015/modules/numeric/numeric.service.js +16 -15
  49. package/esm2015/modules/overlay/overlay-adapter.service.js +5 -5
  50. package/esm2015/modules/overlay/overlay-config.js +1 -1
  51. package/esm2015/modules/overlay/overlay-context.js +1 -1
  52. package/esm2015/modules/overlay/overlay-instance.js +1 -1
  53. package/esm2015/modules/overlay/overlay.component.js +11 -11
  54. package/esm2015/modules/overlay/overlay.module.js +8 -16
  55. package/esm2015/modules/overlay/overlay.service.js +13 -11
  56. package/esm2015/modules/percent-pipe/percent-pipe.module.js +9 -24
  57. package/esm2015/modules/percent-pipe/percent.pipe.js +7 -6
  58. package/esm2015/modules/scrollable-host/scrollable-host.service.js +96 -25
  59. package/esm2015/modules/shared/number-format/number-format-utility.js +8 -5
  60. package/esm2015/modules/shared/sky-core-resources.module.js +21 -12
  61. package/esm2015/modules/title/set-title-args.js +1 -1
  62. package/esm2015/modules/title/title.service.js +5 -5
  63. package/esm2015/modules/ui-config/ui-config.service.js +5 -5
  64. package/esm2015/modules/viewkeeper/viewkeeper-boundary-info.js +1 -1
  65. package/esm2015/modules/viewkeeper/viewkeeper-host-options.js +4 -4
  66. package/esm2015/modules/viewkeeper/viewkeeper.directive.js +14 -11
  67. package/esm2015/modules/viewkeeper/viewkeeper.js +25 -15
  68. package/esm2015/modules/viewkeeper/viewkeeper.module.js +7 -11
  69. package/esm2015/modules/viewkeeper/viewkeeper.service.js +5 -5
  70. package/esm2015/modules/window/window-ref.js +5 -5
  71. package/esm2015/testing/mock-media-query.service.js +7 -7
  72. package/esm2015/testing/mock-ui-config.service.js +18 -21
  73. package/fesm2015/skyux-core-testing.js +22 -25
  74. package/fesm2015/skyux-core-testing.js.map +1 -1
  75. package/fesm2015/skyux-core.js +410 -368
  76. package/fesm2015/skyux-core.js.map +1 -1
  77. package/modules/numeric/numeric.pipe.d.ts +8 -2
  78. package/modules/scrollable-host/scrollable-host.service.d.ts +25 -6
  79. package/package.json +6 -6
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
2
2
  import { NgModule, Injectable, EventEmitter, Directive, Input, Output, Injector, ViewContainerRef, Component, ChangeDetectionStrategy, ViewChild, Pipe, ElementRef, Optional } from '@angular/core';
3
3
  import * as i4 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import { Subject, fromEvent, BehaviorSubject, of } from 'rxjs';
6
- import { takeUntil, debounceTime, take } from 'rxjs/operators';
5
+ import { Subject, fromEvent, BehaviorSubject, Observable, of } from 'rxjs';
6
+ import { takeUntil, debounceTime } from 'rxjs/operators';
7
7
  import * as i1 from '@skyux/i18n';
8
8
  import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS, SkyIntlNumberFormatStyle, SkyIntlNumberFormatter } from '@skyux/i18n';
9
9
  import * as i3 from '@angular/router';
@@ -16,10 +16,10 @@ import * as i1$1 from '@angular/platform-browser';
16
16
  */
17
17
  class SkyCoreAdapterModule {
18
18
  }
19
- SkyCoreAdapterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreAdapterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
20
- SkyCoreAdapterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreAdapterModule });
21
- SkyCoreAdapterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreAdapterModule });
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreAdapterModule, decorators: [{
19
+ SkyCoreAdapterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
20
+ SkyCoreAdapterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterModule });
21
+ SkyCoreAdapterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterModule });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterModule, decorators: [{
23
23
  type: NgModule,
24
24
  args: [{}]
25
25
  }] });
@@ -55,7 +55,7 @@ const SKY_TABBABLE_SELECTOR = [
55
55
  'object',
56
56
  'embed',
57
57
  '*[contenteditable=true]:not([disabled])',
58
- '*[tabindex]:not([disabled])'
58
+ '*[tabindex]:not([disabled])',
59
59
  ].join(', ');
60
60
  class SkyCoreAdapterService {
61
61
  constructor(rendererFactory) {
@@ -140,7 +140,8 @@ class SkyCoreAdapterService {
140
140
  const containerElement = elementRef.nativeElement.querySelector(containerSelector);
141
141
  const focusableChildren = this.getFocusableChildren(containerElement);
142
142
  // Focus first focusable child if available. Otherwise, set focus on container.
143
- if (!this.focusFirstElement(focusableChildren) && focusOnContainerIfNoChildrenFound) {
143
+ if (!this.focusFirstElement(focusableChildren) &&
144
+ focusOnContainerIfNoChildrenFound) {
144
145
  containerElement.focus();
145
146
  }
146
147
  }
@@ -249,12 +250,12 @@ class SkyCoreAdapterService {
249
250
  return hasBounds;
250
251
  }
251
252
  }
252
- SkyCoreAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
253
- SkyCoreAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreAdapterService, providedIn: 'root' });
254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreAdapterService, decorators: [{
253
+ SkyCoreAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
254
+ SkyCoreAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterService, providedIn: 'root' });
255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreAdapterService, decorators: [{
255
256
  type: Injectable,
256
257
  args: [{
257
- providedIn: 'root'
258
+ providedIn: 'root',
258
259
  }]
259
260
  }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }]; } });
260
261
 
@@ -271,12 +272,7 @@ var SkyAffixAutoFitContext;
271
272
  })(SkyAffixAutoFitContext || (SkyAffixAutoFitContext = {}));
272
273
 
273
274
  function getNextPlacement(placement) {
274
- const placements = [
275
- 'above',
276
- 'right',
277
- 'below',
278
- 'left'
279
- ];
275
+ const placements = ['above', 'right', 'below', 'left'];
280
276
  let index = placements.indexOf(placement) + 1;
281
277
  if (index >= placements.length) {
282
278
  index = 0;
@@ -288,7 +284,7 @@ function getInversePlacement(placement) {
288
284
  above: 'below',
289
285
  below: 'above',
290
286
  right: 'left',
291
- left: 'right'
287
+ left: 'right',
292
288
  };
293
289
  return pairings[placement];
294
290
  }
@@ -328,7 +324,7 @@ function getElementOffset(element, bufferOffset = {}) {
328
324
  bottom,
329
325
  left,
330
326
  right,
331
- top
327
+ top,
332
328
  };
333
329
  }
334
330
  function getOverflowParents(child) {
@@ -340,8 +336,7 @@ function getOverflowParents(child) {
340
336
  parentElement instanceof HTMLElement) {
341
337
  const overflowY = window
342
338
  .getComputedStyle(parentElement, undefined)
343
- .overflowY
344
- .toLowerCase();
339
+ .overflowY.toLowerCase();
345
340
  if (overflowY === 'auto' ||
346
341
  overflowY === 'hidden' ||
347
342
  overflowY === 'scroll') {
@@ -376,7 +371,7 @@ const DEFAULT_AFFIX_CONFIG = {
376
371
  enableAutoFit: false,
377
372
  horizontalAlignment: 'center',
378
373
  isSticky: false,
379
- placement: 'above'
374
+ placement: 'above',
380
375
  };
381
376
  class SkyAffixer {
382
377
  constructor(affixedElement, renderer) {
@@ -454,7 +449,8 @@ class SkyAffixer {
454
449
  this._overflowScroll.complete();
455
450
  this._offsetChange =
456
451
  this._placementChange =
457
- this._overflowScroll = undefined;
452
+ this._overflowScroll =
453
+ undefined;
458
454
  }
459
455
  affix() {
460
456
  this.baseRect = this.baseElement.getBoundingClientRect();
@@ -480,9 +476,10 @@ class SkyAffixer {
480
476
  break;
481
477
  }
482
478
  if (!isAffixedElementFullyVisible) {
483
- placement = (attempts % 2 === 0)
484
- ? getInversePlacement(placement)
485
- : getNextPlacement(placement);
479
+ placement =
480
+ attempts % 2 === 0
481
+ ? getInversePlacement(placement)
482
+ : getNextPlacement(placement);
486
483
  }
487
484
  attempts++;
488
485
  } while (!isAffixedElementFullyVisible && attempts < maxAttempts);
@@ -519,7 +516,7 @@ class SkyAffixer {
519
516
  top = top + affixedRect.height;
520
517
  break;
521
518
  case 'middle':
522
- top = top + (affixedRect.height / 2);
519
+ top = top + affixedRect.height / 2;
523
520
  break;
524
521
  case 'bottom':
525
522
  default:
@@ -533,7 +530,7 @@ class SkyAffixer {
533
530
  default:
534
531
  break;
535
532
  case 'middle':
536
- top = top - (affixedRect.height / 2);
533
+ top = top - affixedRect.height / 2;
537
534
  break;
538
535
  case 'bottom':
539
536
  top = top - affixedRect.height;
@@ -546,7 +543,7 @@ class SkyAffixer {
546
543
  break;
547
544
  case 'center':
548
545
  default:
549
- left = baseRect.left + (baseRect.width / 2) - (affixedRect.width / 2);
546
+ left = baseRect.left + baseRect.width / 2 - affixedRect.width / 2;
550
547
  break;
551
548
  case 'right':
552
549
  left = baseRect.right - affixedRect.width;
@@ -566,7 +563,7 @@ class SkyAffixer {
566
563
  break;
567
564
  case 'middle':
568
565
  default:
569
- top = baseRect.top + (baseRect.height / 2) - (affixedRect.height / 2);
566
+ top = baseRect.top + baseRect.height / 2 - affixedRect.height / 2;
570
567
  break;
571
568
  case 'bottom':
572
569
  top = baseRect.bottom - affixedRect.height;
@@ -642,7 +639,7 @@ class SkyAffixer {
642
639
  }
643
640
  getAutoFitContextParent() {
644
641
  const bodyElement = this.overflowParents[0];
645
- return (this.config.autoFitContext === SkyAffixAutoFitContext.OverflowParent)
642
+ return this.config.autoFitContext === SkyAffixAutoFitContext.OverflowParent
646
643
  ? this.getImmediateOverflowParent()
647
644
  : bodyElement;
648
645
  }
@@ -650,7 +647,7 @@ class SkyAffixer {
650
647
  if (this.currentPlacement !== placement) {
651
648
  this.currentPlacement = placement;
652
649
  this._placementChange.next({
653
- placement
650
+ placement,
654
651
  });
655
652
  }
656
653
  }
@@ -663,7 +660,8 @@ class SkyAffixer {
663
660
  this.baseRect =
664
661
  this.currentPlacement =
665
662
  this.currentOffset =
666
- this.overflowParents = undefined;
663
+ this.overflowParents =
664
+ undefined;
667
665
  }
668
666
  isNewOffset(offset) {
669
667
  if (this.currentOffset === undefined) {
@@ -682,12 +680,12 @@ class SkyAffixer {
682
680
  top: this.baseRect.top,
683
681
  left: this.baseRect.left,
684
682
  right: this.baseRect.right,
685
- bottom: this.baseRect.bottom
683
+ bottom: this.baseRect.bottom,
686
684
  }, this.config.autoFitOverflowOffset);
687
685
  }
688
686
  addScrollListeners() {
689
687
  this.scrollListeners = this.overflowParents.map((parentElement) => {
690
- const overflow = (parentElement === document.body) ? 'window' : parentElement;
688
+ const overflow = parentElement === document.body ? 'window' : parentElement;
691
689
  return this.renderer.listen(overflow, 'scroll', () => {
692
690
  this.affix();
693
691
  this._overflowScroll.next();
@@ -695,8 +693,7 @@ class SkyAffixer {
695
693
  });
696
694
  }
697
695
  addResizeListener() {
698
- this.resizeListener = fromEvent(window, 'resize')
699
- .subscribe(() => this.affix());
696
+ this.resizeListener = fromEvent(window, 'resize').subscribe(() => this.affix());
700
697
  }
701
698
  removeResizeListener() {
702
699
  if (this.resizeListener) {
@@ -708,7 +705,7 @@ class SkyAffixer {
708
705
  if (this.scrollListeners) {
709
706
  // Remove renderer-generated listeners by calling the listener itself.
710
707
  // https://github.com/angular/angular/issues/9368#issuecomment-227199778
711
- this.scrollListeners.forEach(listener => listener());
708
+ this.scrollListeners.forEach((listener) => listener());
712
709
  this.scrollListeners = undefined;
713
710
  }
714
711
  }
@@ -726,12 +723,12 @@ class SkyAffixService {
726
723
  return new SkyAffixer(affixed.nativeElement, this.renderer);
727
724
  }
728
725
  }
729
- SkyAffixService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAffixService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
730
- SkyAffixService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAffixService, providedIn: 'root' });
731
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAffixService, decorators: [{
726
+ SkyAffixService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
727
+ SkyAffixService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixService, providedIn: 'root' });
728
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixService, decorators: [{
732
729
  type: Injectable,
733
730
  args: [{
734
- providedIn: 'root'
731
+ providedIn: 'root',
735
732
  }]
736
733
  }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }]; } });
737
734
 
@@ -793,16 +790,16 @@ class SkyAffixDirective {
793
790
  horizontalAlignment: this.affixHorizontalAlignment,
794
791
  isSticky: this.affixIsSticky,
795
792
  placement: this.affixPlacement,
796
- verticalAlignment: this.affixVerticalAlignment
793
+ verticalAlignment: this.affixVerticalAlignment,
797
794
  });
798
795
  }
799
796
  }
800
- SkyAffixDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAffixDirective, deps: [{ token: i0.ElementRef }, { token: SkyAffixService }], target: i0.ɵɵFactoryTarget.Directive });
801
- SkyAffixDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyAffixDirective, selector: "[skyAffixTo]", inputs: { skyAffixTo: "skyAffixTo", affixAutoFitContext: "affixAutoFitContext", affixAutoFitOverflowOffset: "affixAutoFitOverflowOffset", affixEnableAutoFit: "affixEnableAutoFit", affixHorizontalAlignment: "affixHorizontalAlignment", affixIsSticky: "affixIsSticky", affixPlacement: "affixPlacement", affixVerticalAlignment: "affixVerticalAlignment" }, outputs: { affixOffsetChange: "affixOffsetChange", affixOverflowScroll: "affixOverflowScroll", affixPlacementChange: "affixPlacementChange" }, usesOnChanges: true, ngImport: i0 });
802
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAffixDirective, decorators: [{
797
+ SkyAffixDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixDirective, deps: [{ token: i0.ElementRef }, { token: SkyAffixService }], target: i0.ɵɵFactoryTarget.Directive });
798
+ SkyAffixDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: SkyAffixDirective, selector: "[skyAffixTo]", inputs: { skyAffixTo: "skyAffixTo", affixAutoFitContext: "affixAutoFitContext", affixAutoFitOverflowOffset: "affixAutoFitOverflowOffset", affixEnableAutoFit: "affixEnableAutoFit", affixHorizontalAlignment: "affixHorizontalAlignment", affixIsSticky: "affixIsSticky", affixPlacement: "affixPlacement", affixVerticalAlignment: "affixVerticalAlignment" }, outputs: { affixOffsetChange: "affixOffsetChange", affixOverflowScroll: "affixOverflowScroll", affixPlacementChange: "affixPlacementChange" }, usesOnChanges: true, ngImport: i0 });
799
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixDirective, decorators: [{
803
800
  type: Directive,
804
801
  args: [{
805
- selector: '[skyAffixTo]'
802
+ selector: '[skyAffixTo]',
806
803
  }]
807
804
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SkyAffixService }]; }, propDecorators: { skyAffixTo: [{
808
805
  type: Input
@@ -830,23 +827,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
830
827
 
831
828
  class SkyAffixModule {
832
829
  }
833
- SkyAffixModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAffixModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
834
- SkyAffixModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAffixModule, declarations: [SkyAffixDirective], imports: [CommonModule], exports: [SkyAffixDirective] });
835
- SkyAffixModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAffixModule, imports: [[
836
- CommonModule
837
- ]] });
838
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAffixModule, decorators: [{
830
+ SkyAffixModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
831
+ SkyAffixModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixModule, declarations: [SkyAffixDirective], imports: [CommonModule], exports: [SkyAffixDirective] });
832
+ SkyAffixModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixModule, imports: [[CommonModule]] });
833
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAffixModule, decorators: [{
839
834
  type: NgModule,
840
835
  args: [{
841
- imports: [
842
- CommonModule
843
- ],
844
- exports: [
845
- SkyAffixDirective
846
- ],
847
- declarations: [
848
- SkyAffixDirective
849
- ]
836
+ imports: [CommonModule],
837
+ exports: [SkyAffixDirective],
838
+ declarations: [SkyAffixDirective],
850
839
  }]
851
840
  }] });
852
841
 
@@ -902,12 +891,12 @@ class MutationObserverService {
902
891
  return new MutationObserver(callback);
903
892
  }
904
893
  }
905
- MutationObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: MutationObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
906
- MutationObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: MutationObserverService, providedIn: 'root' });
907
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: MutationObserverService, decorators: [{
894
+ MutationObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MutationObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
895
+ MutationObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MutationObserverService, providedIn: 'root' });
896
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MutationObserverService, decorators: [{
908
897
  type: Injectable,
909
898
  args: [{
910
- providedIn: 'root'
899
+ providedIn: 'root',
911
900
  }]
912
901
  }] });
913
902
 
@@ -931,7 +920,8 @@ class SkyDockDomAdapterService {
931
920
  this.currentDockHeight =
932
921
  this.ngUnsubscribe =
933
922
  this.observer =
934
- this.styleElement = undefined;
923
+ this.styleElement =
924
+ undefined;
935
925
  }
936
926
  setSticky(elementRef) {
937
927
  this.renderer.addClass(elementRef.nativeElement, 'sky-dock-sticky');
@@ -950,7 +940,7 @@ class SkyDockDomAdapterService {
950
940
  attributes: true,
951
941
  childList: true,
952
942
  characterData: true,
953
- subtree: true
943
+ subtree: true,
954
944
  });
955
945
  fromEvent(window, 'resize')
956
946
  .pipe(debounceTime(250), takeUntil(this.ngUnsubscribe))
@@ -978,9 +968,9 @@ class SkyDockDomAdapterService {
978
968
  this.renderer.removeChild(document.head, this.styleElement);
979
969
  }
980
970
  }
981
- SkyDockDomAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockDomAdapterService, deps: [{ token: MutationObserverService }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
982
- SkyDockDomAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockDomAdapterService });
983
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockDomAdapterService, decorators: [{
971
+ SkyDockDomAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockDomAdapterService, deps: [{ token: MutationObserverService }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
972
+ SkyDockDomAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockDomAdapterService });
973
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockDomAdapterService, decorators: [{
984
974
  type: Injectable
985
975
  }], ctorParameters: function () { return [{ type: MutationObserverService }, { type: i0.RendererFactory2 }]; } });
986
976
 
@@ -1013,27 +1003,27 @@ class SkyDockComponent {
1013
1003
  const factory = this.resolver.resolveComponentFactory(component);
1014
1004
  const injector = Injector.create({
1015
1005
  providers: config.providers || [],
1016
- parent: this.injector
1006
+ parent: this.injector,
1017
1007
  });
1018
1008
  const componentRef = this.target.createComponent(factory, undefined, injector);
1019
- const stackOrder = (config.stackOrder !== null && config.stackOrder !== undefined)
1009
+ const stackOrder = config.stackOrder !== null && config.stackOrder !== undefined
1020
1010
  ? config.stackOrder
1021
1011
  : this.getHighestStackOrder();
1022
1012
  this.itemRefs.push({
1023
1013
  componentRef,
1024
- stackOrder
1014
+ stackOrder,
1025
1015
  });
1026
1016
  this.sortItemsByStackOrder();
1027
1017
  this.changeDetector.markForCheck();
1028
1018
  return {
1029
1019
  componentRef,
1030
- stackOrder
1020
+ stackOrder,
1031
1021
  };
1032
1022
  }
1033
1023
  removeItem(item) {
1034
1024
  const viewRef = item.componentRef.hostView;
1035
1025
  this.target.remove(this.target.indexOf(viewRef));
1036
- const found = this.itemRefs.find(i => i.componentRef.hostView === viewRef);
1026
+ const found = this.itemRefs.find((i) => i.componentRef.hostView === viewRef);
1037
1027
  this.itemRefs.splice(this.itemRefs.indexOf(found), 1);
1038
1028
  }
1039
1029
  setOptions(options) {
@@ -1067,53 +1057,37 @@ class SkyDockComponent {
1067
1057
  return this.itemRefs[0].stackOrder + 1;
1068
1058
  }
1069
1059
  }
1070
- SkyDockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ElementRef }, { token: i0.Injector }, { token: SkyDockDomAdapterService }], target: i0.ɵɵFactoryTarget.Component });
1071
- SkyDockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyDockComponent, selector: "sky-dock", providers: [
1072
- SkyDockDomAdapterService
1073
- ], viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container\n #target\n></ng-container>", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:0;bottom:0;right:0}:host.sky-dock-sticky{position:sticky}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1074
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockComponent, decorators: [{
1060
+ SkyDockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ElementRef }, { token: i0.Injector }, { token: SkyDockDomAdapterService }], target: i0.ɵɵFactoryTarget.Component });
1061
+ SkyDockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: SkyDockComponent, selector: "sky-dock", providers: [SkyDockDomAdapterService], viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container #target></ng-container>\n", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:0;bottom:0;right:0}:host.sky-dock-sticky{position:sticky}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1062
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockComponent, decorators: [{
1075
1063
  type: Component,
1076
1064
  args: [{
1077
1065
  selector: 'sky-dock',
1078
1066
  templateUrl: './dock.component.html',
1079
1067
  styleUrls: ['./dock.component.scss'],
1080
- providers: [
1081
- SkyDockDomAdapterService
1082
- ],
1083
- changeDetection: ChangeDetectionStrategy.OnPush
1068
+ providers: [SkyDockDomAdapterService],
1069
+ changeDetection: ChangeDetectionStrategy.OnPush,
1084
1070
  }]
1085
1071
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }, { type: i0.ElementRef }, { type: i0.Injector }, { type: SkyDockDomAdapterService }]; }, propDecorators: { target: [{
1086
1072
  type: ViewChild,
1087
1073
  args: ['target', {
1088
1074
  read: ViewContainerRef,
1089
- static: true
1075
+ static: true,
1090
1076
  }]
1091
1077
  }] } });
1092
1078
 
1093
1079
  class SkyDockModule {
1094
1080
  }
1095
- SkyDockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1096
- SkyDockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockModule, declarations: [SkyDockComponent], imports: [CommonModule] });
1097
- SkyDockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockModule, providers: [
1098
- MutationObserverService
1099
- ], imports: [[
1100
- CommonModule
1101
- ]] });
1102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockModule, decorators: [{
1081
+ SkyDockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1082
+ SkyDockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockModule, declarations: [SkyDockComponent], imports: [CommonModule] });
1083
+ SkyDockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockModule, providers: [MutationObserverService], imports: [[CommonModule]] });
1084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockModule, decorators: [{
1103
1085
  type: NgModule,
1104
1086
  args: [{
1105
- imports: [
1106
- CommonModule
1107
- ],
1108
- declarations: [
1109
- SkyDockComponent
1110
- ],
1111
- entryComponents: [
1112
- SkyDockComponent
1113
- ],
1114
- providers: [
1115
- MutationObserverService
1116
- ]
1087
+ imports: [CommonModule],
1088
+ declarations: [SkyDockComponent],
1089
+ entryComponents: [SkyDockComponent],
1090
+ providers: [MutationObserverService],
1117
1091
  }]
1118
1092
  }] });
1119
1093
 
@@ -1163,12 +1137,12 @@ class SkyAppWindowRef {
1163
1137
  return getWindow();
1164
1138
  }
1165
1139
  }
1166
- SkyAppWindowRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAppWindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1167
- SkyAppWindowRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAppWindowRef, providedIn: 'root' });
1168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAppWindowRef, decorators: [{
1140
+ SkyAppWindowRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppWindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1141
+ SkyAppWindowRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppWindowRef, providedIn: 'root' });
1142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppWindowRef, decorators: [{
1169
1143
  type: Injectable,
1170
1144
  args: [{
1171
- providedIn: 'root'
1145
+ providedIn: 'root',
1172
1146
  }]
1173
1147
  }] });
1174
1148
 
@@ -1194,7 +1168,7 @@ class SkyDynamicComponentService {
1194
1168
  */
1195
1169
  createComponent(componentType, options) {
1196
1170
  options = options || {
1197
- location: SkyDynamicComponentLocation.BodyBottom
1171
+ location: SkyDynamicComponentLocation.BodyBottom,
1198
1172
  };
1199
1173
  const componentRef = this.componentFactoryResolver
1200
1174
  .resolveComponentFactory(componentType)
@@ -1238,15 +1212,15 @@ class SkyDynamicComponentService {
1238
1212
  return componentRef.hostView.rootNodes[0];
1239
1213
  }
1240
1214
  }
1241
- SkyDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: SkyAppWindowRef }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
1242
- SkyDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDynamicComponentService, providedIn: 'any' });
1243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDynamicComponentService, decorators: [{
1215
+ SkyDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: SkyAppWindowRef }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
1216
+ SkyDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentService, providedIn: 'any' });
1217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentService, decorators: [{
1244
1218
  type: Injectable,
1245
1219
  args: [{
1246
1220
  // Must be 'any' so that the component is created in the context of its module's injector.
1247
1221
  // If set to 'root', the component's dependency injections would only be derived from the root
1248
1222
  // injector and may loose context if the component is created within a lazy-loaded module.
1249
- providedIn: 'any'
1223
+ providedIn: 'any',
1250
1224
  }]
1251
1225
  }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }, { type: SkyAppWindowRef }, { type: i0.RendererFactory2 }]; } });
1252
1226
 
@@ -1313,7 +1287,7 @@ class SkyDockService {
1313
1287
  }
1314
1288
  dockOptions = {
1315
1289
  location: dynamicLocation,
1316
- referenceEl: this.options.referenceEl
1290
+ referenceEl: this.options.referenceEl,
1317
1291
  };
1318
1292
  }
1319
1293
  this.dockRef = this.dynamicComponentService.createComponent(SkyDockComponent, dockOptions);
@@ -1324,12 +1298,12 @@ class SkyDockService {
1324
1298
  this.dockRef = undefined;
1325
1299
  }
1326
1300
  }
1327
- SkyDockService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockService, deps: [{ token: SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Injectable });
1328
- SkyDockService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockService, providedIn: 'root' });
1329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDockService, decorators: [{
1301
+ SkyDockService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockService, deps: [{ token: SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Injectable });
1302
+ SkyDockService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockService, providedIn: 'root' });
1303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDockService, decorators: [{
1330
1304
  type: Injectable,
1331
1305
  args: [{
1332
- providedIn: 'root'
1306
+ providedIn: 'root',
1333
1307
  }]
1334
1308
  }], ctorParameters: function () { return [{ type: SkyDynamicComponentService }]; } });
1335
1309
 
@@ -1340,10 +1314,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
1340
1314
  */
1341
1315
  class SkyDynamicComponentModule {
1342
1316
  }
1343
- SkyDynamicComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDynamicComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1344
- SkyDynamicComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDynamicComponentModule });
1345
- SkyDynamicComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDynamicComponentModule });
1346
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyDynamicComponentModule, decorators: [{
1317
+ SkyDynamicComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1318
+ SkyDynamicComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentModule });
1319
+ SkyDynamicComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentModule });
1320
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyDynamicComponentModule, decorators: [{
1347
1321
  type: NgModule,
1348
1322
  args: [{}]
1349
1323
  }] });
@@ -1355,12 +1329,12 @@ class SkyAppFormat {
1355
1329
  });
1356
1330
  }
1357
1331
  }
1358
- SkyAppFormat.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAppFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1359
- SkyAppFormat.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAppFormat, providedIn: 'root' });
1360
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAppFormat, decorators: [{
1332
+ SkyAppFormat.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1333
+ SkyAppFormat.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppFormat, providedIn: 'root' });
1334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppFormat, decorators: [{
1361
1335
  type: Injectable,
1362
1336
  args: [{
1363
- providedIn: 'root'
1337
+ providedIn: 'root',
1364
1338
  }]
1365
1339
  }] });
1366
1340
 
@@ -1386,30 +1360,26 @@ class SkyIdDirective {
1386
1360
  return this._id;
1387
1361
  }
1388
1362
  }
1389
- SkyIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIdDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1390
- SkyIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyIdDirective, selector: "[skyId]", exportAs: ["skyId"], ngImport: i0 });
1391
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIdDirective, decorators: [{
1363
+ SkyIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1364
+ SkyIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: SkyIdDirective, selector: "[skyId]", exportAs: ["skyId"], ngImport: i0 });
1365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdDirective, decorators: [{
1392
1366
  type: Directive,
1393
1367
  args: [{
1394
1368
  selector: '[skyId]',
1395
- exportAs: 'skyId'
1369
+ exportAs: 'skyId',
1396
1370
  }]
1397
1371
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; } });
1398
1372
 
1399
1373
  class SkyIdModule {
1400
1374
  }
1401
- SkyIdModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1402
- SkyIdModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIdModule, declarations: [SkyIdDirective], exports: [SkyIdDirective] });
1403
- SkyIdModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIdModule });
1404
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIdModule, decorators: [{
1375
+ SkyIdModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1376
+ SkyIdModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdModule, declarations: [SkyIdDirective], exports: [SkyIdDirective] });
1377
+ SkyIdModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdModule });
1378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyIdModule, decorators: [{
1405
1379
  type: NgModule,
1406
1380
  args: [{
1407
- declarations: [
1408
- SkyIdDirective
1409
- ],
1410
- exports: [
1411
- SkyIdDirective
1412
- ]
1381
+ declarations: [SkyIdDirective],
1382
+ exports: [SkyIdDirective],
1413
1383
  }]
1414
1384
  }] });
1415
1385
 
@@ -1419,10 +1389,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
1419
1389
  */
1420
1390
  class SkyLogModule {
1421
1391
  }
1422
- SkyLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1423
- SkyLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLogModule });
1424
- SkyLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLogModule });
1425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLogModule, decorators: [{
1392
+ SkyLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1393
+ SkyLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogModule });
1394
+ SkyLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogModule });
1395
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogModule, decorators: [{
1426
1396
  type: NgModule,
1427
1397
  args: [{}]
1428
1398
  }] });
@@ -1438,12 +1408,12 @@ class SkyLogService {
1438
1408
  }
1439
1409
  }
1440
1410
  }
1441
- SkyLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1442
- SkyLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLogService, providedIn: 'root' });
1443
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLogService, decorators: [{
1411
+ SkyLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1412
+ SkyLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogService, providedIn: 'root' });
1413
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyLogService, decorators: [{
1444
1414
  type: Injectable,
1445
1415
  args: [{
1446
- providedIn: 'root'
1416
+ providedIn: 'root',
1447
1417
  }]
1448
1418
  }] });
1449
1419
 
@@ -1453,10 +1423,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
1453
1423
  */
1454
1424
  class SkyMediaQueryModule {
1455
1425
  }
1456
- SkyMediaQueryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyMediaQueryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1457
- SkyMediaQueryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyMediaQueryModule });
1458
- SkyMediaQueryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyMediaQueryModule });
1459
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyMediaQueryModule, decorators: [{
1426
+ SkyMediaQueryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1427
+ SkyMediaQueryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryModule });
1428
+ SkyMediaQueryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryModule });
1429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryModule, decorators: [{
1460
1430
  type: NgModule,
1461
1431
  args: [{}]
1462
1432
  }] });
@@ -1469,20 +1439,20 @@ class SkyMediaQueryService {
1469
1439
  this.breakpoints = [
1470
1440
  {
1471
1441
  mediaQueryString: SkyMediaQueryService.xs,
1472
- name: SkyMediaBreakpoints.xs
1442
+ name: SkyMediaBreakpoints.xs,
1473
1443
  },
1474
1444
  {
1475
1445
  mediaQueryString: SkyMediaQueryService.sm,
1476
- name: SkyMediaBreakpoints.sm
1446
+ name: SkyMediaBreakpoints.sm,
1477
1447
  },
1478
1448
  {
1479
1449
  mediaQueryString: SkyMediaQueryService.md,
1480
- name: SkyMediaBreakpoints.md
1450
+ name: SkyMediaBreakpoints.md,
1481
1451
  },
1482
1452
  {
1483
1453
  mediaQueryString: SkyMediaQueryService.lg,
1484
- name: SkyMediaBreakpoints.lg
1485
- }
1454
+ name: SkyMediaBreakpoints.lg,
1455
+ },
1486
1456
  ];
1487
1457
  this.mediaQueries = [];
1488
1458
  this.addListeners();
@@ -1505,7 +1475,7 @@ class SkyMediaQueryService {
1505
1475
  return this.currentSubject.subscribe({
1506
1476
  next: (breakpoints) => {
1507
1477
  listener(breakpoints);
1508
- }
1478
+ },
1509
1479
  });
1510
1480
  }
1511
1481
  /**
@@ -1534,7 +1504,7 @@ class SkyMediaQueryService {
1534
1504
  }
1535
1505
  return {
1536
1506
  mediaQueryList: mq,
1537
- listener
1507
+ listener,
1538
1508
  };
1539
1509
  });
1540
1510
  }
@@ -1565,12 +1535,12 @@ SkyMediaQueryService.md = '(min-width: 992px) and (max-width: 1199px)';
1565
1535
  * The size for the `lg` breakpoint.
1566
1536
  */
1567
1537
  SkyMediaQueryService.lg = '(min-width: 1200px)';
1568
- SkyMediaQueryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyMediaQueryService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
1569
- SkyMediaQueryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyMediaQueryService, providedIn: 'root' });
1570
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyMediaQueryService, decorators: [{
1538
+ SkyMediaQueryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
1539
+ SkyMediaQueryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryService, providedIn: 'root' });
1540
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyMediaQueryService, decorators: [{
1571
1541
  type: Injectable,
1572
1542
  args: [{
1573
- providedIn: 'root'
1543
+ providedIn: 'root',
1574
1544
  }]
1575
1545
  }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
1576
1546
 
@@ -1581,7 +1551,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
1581
1551
  * To update this file, simply rerun the command.
1582
1552
  */
1583
1553
  const RESOURCES = {
1584
- 'EN-US': { "skyux_numeric_billions_symbol": { "message": "B" }, "skyux_numeric_millions_symbol": { "message": "M" }, "skyux_numeric_thousands_symbol": { "message": "K" }, "skyux_numeric_trillions_symbol": { "message": "T" } },
1554
+ 'EN-US': {
1555
+ skyux_numeric_billions_symbol: { message: 'B' },
1556
+ skyux_numeric_millions_symbol: { message: 'M' },
1557
+ skyux_numeric_thousands_symbol: { message: 'K' },
1558
+ skyux_numeric_trillions_symbol: { message: 'T' },
1559
+ },
1585
1560
  };
1586
1561
  class SkyCoreResourcesProvider {
1587
1562
  getString(localeInfo, name) {
@@ -1593,22 +1568,26 @@ class SkyCoreResourcesProvider {
1593
1568
  */
1594
1569
  class SkyCoreResourcesModule {
1595
1570
  }
1596
- SkyCoreResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1597
- SkyCoreResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreResourcesModule, exports: [SkyI18nModule] });
1598
- SkyCoreResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreResourcesModule, providers: [{
1571
+ SkyCoreResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1572
+ SkyCoreResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreResourcesModule, exports: [SkyI18nModule] });
1573
+ SkyCoreResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreResourcesModule, providers: [
1574
+ {
1599
1575
  provide: SKY_LIB_RESOURCES_PROVIDERS,
1600
1576
  useClass: SkyCoreResourcesProvider,
1601
- multi: true
1602
- }], imports: [SkyI18nModule] });
1603
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyCoreResourcesModule, decorators: [{
1577
+ multi: true,
1578
+ },
1579
+ ], imports: [SkyI18nModule] });
1580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyCoreResourcesModule, decorators: [{
1604
1581
  type: NgModule,
1605
1582
  args: [{
1606
1583
  exports: [SkyI18nModule],
1607
- providers: [{
1584
+ providers: [
1585
+ {
1608
1586
  provide: SKY_LIB_RESOURCES_PROVIDERS,
1609
1587
  useClass: SkyCoreResourcesProvider,
1610
- multi: true
1611
- }]
1588
+ multi: true,
1589
+ },
1590
+ ],
1612
1591
  }]
1613
1592
  }] });
1614
1593
 
@@ -1695,15 +1674,18 @@ class SkyNumberFormatUtility {
1695
1674
  throw new Error(`${digits} is not a valid digit info for number pipes`);
1696
1675
  }
1697
1676
  /* istanbul ignore else */
1698
- if (parts[1] != null) { // min integer digits
1677
+ if (parts[1] != null) {
1678
+ // min integer digits
1699
1679
  minInt = parseIntAutoRadix(parts[1]);
1700
1680
  }
1701
1681
  /* istanbul ignore else */
1702
- if (parts[3] != null) { // min fraction digits
1682
+ if (parts[3] != null) {
1683
+ // min fraction digits
1703
1684
  minFraction = parseIntAutoRadix(parts[3]);
1704
1685
  }
1705
1686
  /* istanbul ignore else */
1706
- if (parts[5] != null) { // max fraction digits
1687
+ if (parts[5] != null) {
1688
+ // max fraction digits
1707
1689
  maxFraction = parseIntAutoRadix(parts[5]);
1708
1690
  }
1709
1691
  }
@@ -1713,7 +1695,7 @@ class SkyNumberFormatUtility {
1713
1695
  maximumFractionDigits: maxFraction,
1714
1696
  currency: currency,
1715
1697
  currencyAsSymbol: currencyAsSymbol,
1716
- currencySign: currencySign
1698
+ currencySign: currencySign,
1717
1699
  });
1718
1700
  }
1719
1701
  }
@@ -1723,10 +1705,10 @@ class SkyNumericService {
1723
1705
  constructor(resourcesService) {
1724
1706
  this.resourcesService = resourcesService;
1725
1707
  this.symbolIndex = [
1726
- { value: 1E12, label: this.getSymbol('skyux_numeric_trillions_symbol') },
1727
- { value: 1E9, label: this.getSymbol('skyux_numeric_billions_symbol') },
1728
- { value: 1E6, label: this.getSymbol('skyux_numeric_millions_symbol') },
1729
- { value: 1E3, label: this.getSymbol('skyux_numeric_thousands_symbol') }
1708
+ { value: 1e12, label: this.getSymbol('skyux_numeric_trillions_symbol') },
1709
+ { value: 1e9, label: this.getSymbol('skyux_numeric_billions_symbol') },
1710
+ { value: 1e6, label: this.getSymbol('skyux_numeric_millions_symbol') },
1711
+ { value: 1e3, label: this.getSymbol('skyux_numeric_thousands_symbol') },
1730
1712
  ];
1731
1713
  }
1732
1714
  /**
@@ -1759,8 +1741,9 @@ class SkyNumericService {
1759
1741
  for (let i = 0; i < this.symbolIndex.length; i++) {
1760
1742
  let symbol = this.symbolIndex[i];
1761
1743
  if (options.truncate &&
1762
- roundedNumberAbs >= options.truncateAfter && roundedNumberAbs >= symbol.value) {
1763
- roundedNumber = this.roundNumber((value / symbol.value), options.digits);
1744
+ roundedNumberAbs >= options.truncateAfter &&
1745
+ roundedNumberAbs >= symbol.value) {
1746
+ roundedNumber = this.roundNumber(value / symbol.value, options.digits);
1764
1747
  if (Math.abs(roundedNumber) === 1000 && i > 0) {
1765
1748
  // Rounding caused the number to cross into the range of the next symbol.
1766
1749
  symbol = this.symbolIndex[i - 1];
@@ -1782,7 +1765,7 @@ class SkyNumericService {
1782
1765
  // Note: This will need to be reviewed if we support currencies with
1783
1766
  // three decimal digits.
1784
1767
  case 'currency':
1785
- const isDecimal = (value % 1 !== 0);
1768
+ const isDecimal = value % 1 !== 0;
1786
1769
  if (options.minDigits) {
1787
1770
  digits = `1.${options.minDigits}-${options.digits}`;
1788
1771
  }
@@ -1856,7 +1839,7 @@ class SkyNumericService {
1856
1839
  const isExponentFormat = valueStr.includes('e');
1857
1840
  if (isExponentFormat) {
1858
1841
  const [base, exp] = valueStr.split('e');
1859
- const newExp = scaleUp ? (Number(exp) + scalar) : (Number(exp) - scalar);
1842
+ const newExp = scaleUp ? Number(exp) + scalar : Number(exp) - scalar;
1860
1843
  return Number(`${base}e${newExp}`);
1861
1844
  }
1862
1845
  else {
@@ -1869,10 +1852,10 @@ class SkyNumericService {
1869
1852
  * @param value The string to derive the shorten symbol from.
1870
1853
  */
1871
1854
  storeShortenSymbol(value) {
1872
- const symbols = this.symbolIndex.map(s => s.label);
1855
+ const symbols = this.symbolIndex.map((s) => s.label);
1873
1856
  const regexp = new RegExp(symbols.join('|'), 'ig');
1874
1857
  const match = value.match(regexp);
1875
- this.shortSymbol = (match) ? match.toString() : '';
1858
+ this.shortSymbol = match ? match.toString() : '';
1876
1859
  }
1877
1860
  /**
1878
1861
  * Must have previously called storeShortenSymbol to have something to replace.
@@ -1892,12 +1875,12 @@ class SkyNumericService {
1892
1875
  return this.resourcesService.getStringForLocale({ locale: 'en_US' }, key);
1893
1876
  }
1894
1877
  }
1895
- SkyNumericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyNumericService, deps: [{ token: i1.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Injectable });
1896
- SkyNumericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyNumericService, providedIn: 'any' });
1897
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyNumericService, decorators: [{
1878
+ SkyNumericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericService, deps: [{ token: i1.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Injectable });
1879
+ SkyNumericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericService, providedIn: 'any' });
1880
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericService, decorators: [{
1898
1881
  type: Injectable,
1899
1882
  args: [{
1900
- providedIn: 'any'
1883
+ providedIn: 'any',
1901
1884
  }]
1902
1885
  }], ctorParameters: function () { return [{ type: i1.SkyLibResourcesService }]; } });
1903
1886
 
@@ -1912,14 +1895,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
1912
1895
  * ```
1913
1896
  */
1914
1897
  class SkyNumericPipe {
1915
- constructor(localeProvider, numericService) {
1898
+ constructor(localeProvider, numericService, changeDetector) {
1916
1899
  this.localeProvider = localeProvider;
1917
1900
  this.numericService = numericService;
1901
+ this.changeDetector = changeDetector;
1918
1902
  this.ngUnsubscribe = new Subject();
1919
- this.localeProvider.getLocaleInfo()
1903
+ this.localeProvider
1904
+ .getLocaleInfo()
1920
1905
  .pipe(takeUntil(this.ngUnsubscribe))
1921
1906
  .subscribe((localeInfo) => {
1922
- numericService.currentLocale = localeInfo.locale;
1907
+ this.providerLocale = localeInfo.locale;
1908
+ numericService.currentLocale = this.providerLocale;
1909
+ this.changeDetector.markForCheck();
1923
1910
  });
1924
1911
  }
1925
1912
  ngOnDestroy() {
@@ -1927,13 +1914,19 @@ class SkyNumericPipe {
1927
1914
  this.ngUnsubscribe.complete();
1928
1915
  }
1929
1916
  transform(value, config) {
1917
+ var _a;
1918
+ let newCacheKey = (config ? JSON.stringify(config, Object.keys(config).sort()) : '') +
1919
+ `${value}_${(config === null || config === void 0 ? void 0 : config.locale) || this.providerLocale}`;
1920
+ /* If the value and locale are the same as the last transform then return the previous value
1921
+ instead of reformatting. */
1922
+ if (this.formattedValue && this.cacheKey === newCacheKey) {
1923
+ return this.formattedValue;
1924
+ }
1930
1925
  const options = new NumericOptions();
1931
1926
  // The default number of digits is `1`. When truncate is disabled, set digits
1932
1927
  // to `0` to avoid the unnecessary addition of `.0` at the end of the formatted number.
1933
- if (config &&
1934
- config.truncate === false &&
1935
- config.digits === undefined) {
1936
- config.digits = 0;
1928
+ if (config && config.truncate === false && config.digits === undefined) {
1929
+ options.digits = 0;
1937
1930
  }
1938
1931
  // If the minimum digits is less than the set maximum digits then throw an error
1939
1932
  if (config &&
@@ -1943,51 +1936,40 @@ class SkyNumericPipe {
1943
1936
  throw new Error('The `digits` property must be greater than or equal to the `minDigits` property');
1944
1937
  // If there is a minimum digits given but not a maximum then default the maximum to the minimum
1945
1938
  }
1946
- else if (config &&
1947
- config.minDigits &&
1948
- !config.digits) {
1949
- config.digits = config.minDigits;
1939
+ else if (config && config.minDigits && !config.digits) {
1940
+ options.digits = config.minDigits;
1950
1941
  }
1951
1942
  Object.assign(options, config);
1952
- return this.numericService.formatNumber(value, options);
1943
+ // Assign properties for proper result caching.
1944
+ this.rawValue = value;
1945
+ this.lastTransformLocale = (_a = config === null || config === void 0 ? void 0 : config.locale) !== null && _a !== void 0 ? _a : this.providerLocale;
1946
+ this.cacheKey = newCacheKey;
1947
+ this.formattedValue = this.numericService.formatNumber(value, options);
1948
+ return this.formattedValue;
1953
1949
  }
1954
1950
  }
1955
- SkyNumericPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyNumericPipe, deps: [{ token: i1.SkyAppLocaleProvider }, { token: SkyNumericService }], target: i0.ɵɵFactoryTarget.Pipe });
1956
- SkyNumericPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyNumericPipe, name: "skyNumeric" });
1957
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyNumericPipe, decorators: [{
1951
+ SkyNumericPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericPipe, deps: [{ token: i1.SkyAppLocaleProvider }, { token: SkyNumericService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
1952
+ SkyNumericPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericPipe, name: "skyNumeric", pure: false });
1953
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericPipe, decorators: [{
1958
1954
  type: Pipe,
1959
1955
  args: [{
1960
- name: 'skyNumeric'
1956
+ name: 'skyNumeric',
1957
+ pure: false,
1961
1958
  }]
1962
- }], ctorParameters: function () { return [{ type: i1.SkyAppLocaleProvider }, { type: SkyNumericService }]; } });
1959
+ }], ctorParameters: function () { return [{ type: i1.SkyAppLocaleProvider }, { type: SkyNumericService }, { type: i0.ChangeDetectorRef }]; } });
1963
1960
 
1964
1961
  class SkyNumericModule {
1965
1962
  }
1966
- SkyNumericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyNumericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1967
- SkyNumericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyNumericModule, declarations: [SkyNumericPipe], imports: [SkyI18nModule,
1968
- SkyCoreResourcesModule], exports: [SkyNumericPipe] });
1969
- SkyNumericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyNumericModule, providers: [
1970
- SkyNumericPipe
1971
- ], imports: [[
1972
- SkyI18nModule,
1973
- SkyCoreResourcesModule
1974
- ]] });
1975
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyNumericModule, decorators: [{
1963
+ SkyNumericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1964
+ SkyNumericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericModule, declarations: [SkyNumericPipe], imports: [SkyI18nModule, SkyCoreResourcesModule], exports: [SkyNumericPipe] });
1965
+ SkyNumericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericModule, providers: [SkyNumericPipe], imports: [[SkyI18nModule, SkyCoreResourcesModule]] });
1966
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyNumericModule, decorators: [{
1976
1967
  type: NgModule,
1977
1968
  args: [{
1978
- declarations: [
1979
- SkyNumericPipe
1980
- ],
1981
- providers: [
1982
- SkyNumericPipe
1983
- ],
1984
- imports: [
1985
- SkyI18nModule,
1986
- SkyCoreResourcesModule
1987
- ],
1988
- exports: [
1989
- SkyNumericPipe
1990
- ]
1969
+ declarations: [SkyNumericPipe],
1970
+ providers: [SkyNumericPipe],
1971
+ imports: [SkyI18nModule, SkyCoreResourcesModule],
1972
+ exports: [SkyNumericPipe],
1991
1973
  }]
1992
1974
  }] });
1993
1975
 
@@ -2116,7 +2098,7 @@ class SkyOverlayComponent {
2116
2098
  const factory = this.resolver.resolveComponentFactory(component);
2117
2099
  const injector = Injector.create({
2118
2100
  providers,
2119
- parent: this.injector
2101
+ parent: this.injector,
2120
2102
  });
2121
2103
  const componentRef = this.targetRef.createComponent(factory, undefined, injector);
2122
2104
  // Run an initial change detection cycle after the component has been created.
@@ -2151,7 +2133,7 @@ class SkyOverlayComponent {
2151
2133
  addRouteListener() {
2152
2134
  /*istanbul ignore else*/
2153
2135
  if (this.router) {
2154
- this.routerSubscription = this.router.events.subscribe(event => {
2136
+ this.routerSubscription = this.router.events.subscribe((event) => {
2155
2137
  /* istanbul ignore else */
2156
2138
  if (event instanceof NavigationStart) {
2157
2139
  this._closed.next();
@@ -2166,15 +2148,15 @@ class SkyOverlayComponent {
2166
2148
  }
2167
2149
  }
2168
2150
  }
2169
- SkyOverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: SkyCoreAdapterService }, { token: SkyOverlayContext }, { token: i3.Router, optional: true }], target: i0.ɵɵFactoryTarget.Component });
2170
- SkyOverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyOverlayComponent, selector: "sky-overlay", viewQueries: [{ propertyName: "overlayContentRef", first: true, predicate: ["overlayContentRef"], descendants: true, read: ElementRef, static: true }, { propertyName: "overlayRef", first: true, predicate: ["overlayRef"], descendants: true, read: ElementRef, static: true }, { propertyName: "targetRef", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<div\n [class]=\"wrapperClass\"\n [style.zIndex]=\"zIndex\"\n [ngClass]=\"{\n 'enable-pointer-events-pass-through': enablePointerEvents,\n 'sky-overlay': true\n }\"\n #overlayRef\n>\n <div\n class=\"sky-overlay-content\"\n #overlayContentRef\n >\n <ng-template\n #target\n >\n </ng-template>\n </div>\n <div *ngIf=\"showBackdrop\"\n class=\"sky-overlay-backdrop\"\n ></div>\n</div>\n", styles: [".sky-overlay{position:fixed;top:0;right:0;left:0;bottom:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-content{position:relative;z-index:1;display:inline-flex;align-self:start;pointer-events:auto}.sky-overlay-backdrop{background:rgba(0,0,0,.5);top:0;right:0;left:0;bottom:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayComponent, decorators: [{
2151
+ SkyOverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: SkyCoreAdapterService }, { token: SkyOverlayContext }, { token: i3.Router, optional: true }], target: i0.ɵɵFactoryTarget.Component });
2152
+ SkyOverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: SkyOverlayComponent, selector: "sky-overlay", viewQueries: [{ propertyName: "overlayContentRef", first: true, predicate: ["overlayContentRef"], descendants: true, read: ElementRef, static: true }, { propertyName: "overlayRef", first: true, predicate: ["overlayRef"], descendants: true, read: ElementRef, static: true }, { propertyName: "targetRef", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<div\n [class]=\"wrapperClass\"\n [style.zIndex]=\"zIndex\"\n [ngClass]=\"{\n 'enable-pointer-events-pass-through': enablePointerEvents,\n 'sky-overlay': true\n }\"\n #overlayRef\n>\n <div class=\"sky-overlay-content\" #overlayContentRef>\n <ng-template #target> </ng-template>\n </div>\n <div *ngIf=\"showBackdrop\" class=\"sky-overlay-backdrop\"></div>\n</div>\n", styles: [".sky-overlay{position:fixed;top:0;right:0;left:0;bottom:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-content{position:relative;z-index:1;display:inline-flex;align-self:start;pointer-events:auto}.sky-overlay-backdrop{background:rgba(0,0,0,.5);top:0;right:0;left:0;bottom:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayComponent, decorators: [{
2172
2154
  type: Component,
2173
2155
  args: [{
2174
2156
  selector: 'sky-overlay',
2175
2157
  templateUrl: './overlay.component.html',
2176
2158
  styleUrls: ['./overlay.component.scss'],
2177
- changeDetection: ChangeDetectionStrategy.OnPush
2159
+ changeDetection: ChangeDetectionStrategy.OnPush,
2178
2160
  }]
2179
2161
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: SkyCoreAdapterService }, { type: SkyOverlayContext }, { type: i3.Router, decorators: [{
2180
2162
  type: Optional
@@ -2182,41 +2164,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
2182
2164
  type: ViewChild,
2183
2165
  args: ['overlayContentRef', {
2184
2166
  read: ElementRef,
2185
- static: true
2167
+ static: true,
2186
2168
  }]
2187
2169
  }], overlayRef: [{
2188
2170
  type: ViewChild,
2189
2171
  args: ['overlayRef', {
2190
2172
  read: ElementRef,
2191
- static: true
2173
+ static: true,
2192
2174
  }]
2193
2175
  }], targetRef: [{
2194
2176
  type: ViewChild,
2195
2177
  args: ['target', {
2196
2178
  read: ViewContainerRef,
2197
- static: true
2179
+ static: true,
2198
2180
  }]
2199
2181
  }] } });
2200
2182
 
2201
2183
  class SkyOverlayModule {
2202
2184
  }
2203
- SkyOverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2204
- SkyOverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayModule, declarations: [SkyOverlayComponent], imports: [CommonModule] });
2205
- SkyOverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayModule, imports: [[
2206
- CommonModule
2207
- ]] });
2208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayModule, decorators: [{
2185
+ SkyOverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2186
+ SkyOverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayModule, declarations: [SkyOverlayComponent], imports: [CommonModule] });
2187
+ SkyOverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayModule, imports: [[CommonModule]] });
2188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayModule, decorators: [{
2209
2189
  type: NgModule,
2210
2190
  args: [{
2211
- imports: [
2212
- CommonModule
2213
- ],
2214
- declarations: [
2215
- SkyOverlayComponent
2216
- ],
2217
- entryComponents: [
2218
- SkyOverlayComponent
2219
- ]
2191
+ imports: [CommonModule],
2192
+ declarations: [SkyOverlayComponent],
2193
+ entryComponents: [SkyOverlayComponent],
2220
2194
  }]
2221
2195
  }] });
2222
2196
 
@@ -2250,12 +2224,12 @@ class SkyOverlayAdapterService {
2250
2224
  }
2251
2225
  }
2252
2226
  }
2253
- SkyOverlayAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
2254
- SkyOverlayAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayAdapterService, providedIn: 'root' });
2255
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayAdapterService, decorators: [{
2227
+ SkyOverlayAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
2228
+ SkyOverlayAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayAdapterService, providedIn: 'root' });
2229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayAdapterService, decorators: [{
2256
2230
  type: Injectable,
2257
2231
  args: [{
2258
- providedIn: 'root'
2232
+ providedIn: 'root',
2259
2233
  }]
2260
2234
  }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }]; } });
2261
2235
 
@@ -2324,10 +2298,12 @@ class SkyOverlayService {
2324
2298
  createOverlay(config) {
2325
2299
  const injector = Injector.create({
2326
2300
  parent: this.injector,
2327
- providers: [{
2301
+ providers: [
2302
+ {
2328
2303
  provide: SkyOverlayContext,
2329
- useValue: new SkyOverlayContext(config)
2330
- }]
2304
+ useValue: new SkyOverlayContext(config),
2305
+ },
2306
+ ],
2331
2307
  });
2332
2308
  const componentRef = this.componentFactoryResolver
2333
2309
  .resolveComponentFactory(SkyOverlayComponent)
@@ -2345,7 +2321,7 @@ class SkyOverlayService {
2345
2321
  enablePointerEvents: false,
2346
2322
  enableScroll: true,
2347
2323
  showBackdrop: false,
2348
- wrapperClass: ''
2324
+ wrapperClass: '',
2349
2325
  };
2350
2326
  return Object.assign(Object.assign({}, defaults), config);
2351
2327
  }
@@ -2353,7 +2329,7 @@ class SkyOverlayService {
2353
2329
  SkyOverlayService.overlays.splice(SkyOverlayService.overlays.indexOf(instance), 1);
2354
2330
  if (instance.config.enableScroll === false) {
2355
2331
  // Only release the body scroll if no other overlay wishes it to be disabled.
2356
- const anotherOverlayDisablesScroll = SkyOverlayService.overlays.some(o => !o.config.enableScroll);
2332
+ const anotherOverlayDisablesScroll = SkyOverlayService.overlays.some((o) => !o.config.enableScroll);
2357
2333
  if (!anotherOverlayDisablesScroll) {
2358
2334
  this.adapter.releaseBodyScroll();
2359
2335
  }
@@ -2361,12 +2337,12 @@ class SkyOverlayService {
2361
2337
  }
2362
2338
  }
2363
2339
  SkyOverlayService.overlays = [];
2364
- SkyOverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: SkyOverlayAdapterService }], target: i0.ɵɵFactoryTarget.Injectable });
2365
- SkyOverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayService, providedIn: 'root' });
2366
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyOverlayService, decorators: [{
2340
+ SkyOverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: SkyOverlayAdapterService }], target: i0.ɵɵFactoryTarget.Injectable });
2341
+ SkyOverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayService, providedIn: 'root' });
2342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyOverlayService, decorators: [{
2367
2343
  type: Injectable,
2368
2344
  args: [{
2369
- providedIn: 'root'
2345
+ providedIn: 'root',
2370
2346
  }]
2371
2347
  }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: SkyOverlayAdapterService }]; } });
2372
2348
 
@@ -2376,7 +2352,8 @@ class SkyPercentPipe {
2376
2352
  this.defaultFormat = '1.0-2';
2377
2353
  this.defaultLocale = 'en-US';
2378
2354
  this.ngUnsubscribe = new Subject();
2379
- this.localeProvider.getLocaleInfo()
2355
+ this.localeProvider
2356
+ .getLocaleInfo()
2380
2357
  .pipe(takeUntil(this.ngUnsubscribe))
2381
2358
  .subscribe((localeInfo) => {
2382
2359
  this.defaultLocale = localeInfo.locale;
@@ -2400,70 +2377,126 @@ class SkyPercentPipe {
2400
2377
  this.formattedValue = SkyNumberFormatUtility.formatNumber(locale, this.value, SkyIntlNumberFormatStyle.Percent, format);
2401
2378
  }
2402
2379
  }
2403
- SkyPercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyPercentPipe, deps: [{ token: i1.SkyAppLocaleProvider }], target: i0.ɵɵFactoryTarget.Pipe });
2404
- SkyPercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyPercentPipe, name: "skyPercent", pure: false });
2405
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyPercentPipe, decorators: [{
2380
+ SkyPercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipe, deps: [{ token: i1.SkyAppLocaleProvider }], target: i0.ɵɵFactoryTarget.Pipe });
2381
+ SkyPercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipe, name: "skyPercent", pure: false });
2382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipe, decorators: [{
2406
2383
  type: Pipe,
2407
2384
  args: [{
2408
2385
  name: 'skyPercent',
2409
- pure: false
2386
+ pure: false,
2410
2387
  }]
2411
2388
  }], ctorParameters: function () { return [{ type: i1.SkyAppLocaleProvider }]; } });
2412
2389
 
2413
2390
  class SkyPercentPipeModule {
2414
2391
  }
2415
- SkyPercentPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyPercentPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2416
- SkyPercentPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyPercentPipeModule, declarations: [SkyPercentPipe], imports: [CommonModule,
2417
- SkyCoreResourcesModule], exports: [SkyPercentPipe] });
2418
- SkyPercentPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyPercentPipeModule, providers: [
2419
- SkyPercentPipe
2420
- ], imports: [[
2421
- CommonModule,
2422
- SkyCoreResourcesModule
2423
- ]] });
2424
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyPercentPipeModule, decorators: [{
2392
+ SkyPercentPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2393
+ SkyPercentPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipeModule, declarations: [SkyPercentPipe], imports: [CommonModule, SkyCoreResourcesModule], exports: [SkyPercentPipe] });
2394
+ SkyPercentPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipeModule, providers: [SkyPercentPipe], imports: [[CommonModule, SkyCoreResourcesModule]] });
2395
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyPercentPipeModule, decorators: [{
2425
2396
  type: NgModule,
2426
2397
  args: [{
2427
- declarations: [
2428
- SkyPercentPipe
2429
- ],
2430
- providers: [
2431
- SkyPercentPipe
2432
- ],
2433
- imports: [
2434
- CommonModule,
2435
- SkyCoreResourcesModule
2436
- ],
2437
- exports: [
2438
- SkyPercentPipe
2439
- ]
2398
+ declarations: [SkyPercentPipe],
2399
+ providers: [SkyPercentPipe],
2400
+ imports: [CommonModule, SkyCoreResourcesModule],
2401
+ exports: [SkyPercentPipe],
2440
2402
  }]
2441
2403
  }] });
2442
2404
 
2405
+ function notifySubscribers(subscribers, item) {
2406
+ for (const subscriber of subscribers) {
2407
+ subscriber.next(item);
2408
+ }
2409
+ }
2443
2410
  class SkyScrollableHostService {
2444
2411
  constructor(mutationObserverSvc, windowRef) {
2445
2412
  this.mutationObserverSvc = mutationObserverSvc;
2446
2413
  this.windowRef = windowRef;
2447
2414
  }
2448
- getScrollabeHost(elementRef) {
2415
+ /**
2416
+ * Returns the given element's current scrollable host
2417
+ * @param elementRef The element whose scrollable host is being requested
2418
+ * @returns The current scrollable host
2419
+ */
2420
+ getScrollableHost(elementRef) {
2449
2421
  return this.findScrollableHost(elementRef.nativeElement);
2450
2422
  }
2451
- watchScrollableHost(elementRef, completionObservable) {
2452
- let scrollableHost = this.findScrollableHost(elementRef.nativeElement);
2453
- let behaviorSubject = new BehaviorSubject(scrollableHost);
2454
- const mutationObserver = this.mutationObserverSvc.create(() => {
2455
- let newScrollableHost = this.findScrollableHost(elementRef.nativeElement);
2456
- if (newScrollableHost !== scrollableHost) {
2457
- scrollableHost = newScrollableHost;
2423
+ /**
2424
+ * Returns an observable which emits the given element's current scrollable host
2425
+ * @param elementRef The element whose scrollable host is being requested
2426
+ * @param completionObservable An observable which alerts the internal observers that they should complete
2427
+ * @returns An observable which emits the current scrollable host
2428
+ * @internal
2429
+ */
2430
+ watchScrollableHost(elementRef) {
2431
+ let subscribers = [];
2432
+ let mutationObserver;
2433
+ return new Observable((subscriber) => {
2434
+ subscribers.push(subscriber);
2435
+ let scrollableHost = this.findScrollableHost(elementRef.nativeElement);
2436
+ if (subscribers.length === 1) {
2437
+ mutationObserver = this.mutationObserverSvc.create(() => {
2438
+ let newScrollableHost = this.findScrollableHost(elementRef.nativeElement);
2439
+ if (newScrollableHost !== scrollableHost) {
2440
+ scrollableHost = newScrollableHost;
2441
+ this.observeForScrollableHostChanges(scrollableHost, mutationObserver);
2442
+ notifySubscribers(subscribers, scrollableHost);
2443
+ }
2444
+ });
2458
2445
  this.observeForScrollableHostChanges(scrollableHost, mutationObserver);
2459
- behaviorSubject.next(scrollableHost);
2460
2446
  }
2447
+ subscriber.next(scrollableHost);
2448
+ subscriber.add(() => {
2449
+ const subIndex = subscribers.indexOf(subscriber);
2450
+ /* sanity check */
2451
+ /* istanbul ignore else */
2452
+ if (subIndex >= 0) {
2453
+ subscribers.splice(subIndex, 1);
2454
+ }
2455
+ if (subscribers.length === 0) {
2456
+ mutationObserver.disconnect();
2457
+ }
2458
+ });
2461
2459
  });
2462
- this.observeForScrollableHostChanges(scrollableHost, mutationObserver);
2463
- completionObservable.pipe(take(1)).subscribe(() => {
2464
- mutationObserver.disconnect();
2460
+ }
2461
+ /**
2462
+ * Returns an observable which emits whenever the element's scrollable host emits a scroll event. The observable will always emit the scroll events from the elements current scrollable host and will update based on any scrollable host changes. The observable will also emit once whenever the scrollable host changes.
2463
+ * @param elementRef The element whose scrollable host scroll events are being requested
2464
+ * @param completionObservable An observable which alerts the internal observers that they should complete
2465
+ * @returns An observable which emits the scroll events from the given element's scrollable host
2466
+ */
2467
+ watchScrollableHostScrollEvents(elementRef) {
2468
+ let subscribers = [];
2469
+ let newScrollableHostObservable = new Subject();
2470
+ let scrollableHostSubscription;
2471
+ let scrollEventSubscription;
2472
+ return new Observable((subscriber) => {
2473
+ subscribers.push(subscriber);
2474
+ if (subscribers.length === 1) {
2475
+ scrollableHostSubscription = this.watchScrollableHost(elementRef).subscribe((scrollableHost) => {
2476
+ newScrollableHostObservable.next();
2477
+ newScrollableHostObservable.complete();
2478
+ newScrollableHostObservable = new Subject();
2479
+ scrollEventSubscription = fromEvent(scrollableHost, 'scroll')
2480
+ .pipe(takeUntil(newScrollableHostObservable))
2481
+ .subscribe(() => {
2482
+ notifySubscribers(subscribers);
2483
+ });
2484
+ });
2485
+ }
2486
+ subscriber.add(() => {
2487
+ const subIndex = subscribers.indexOf(subscriber);
2488
+ /* sanity check */
2489
+ /* istanbul ignore else */
2490
+ if (subIndex >= 0) {
2491
+ subscribers.splice(subIndex, 1);
2492
+ }
2493
+ if (subscribers.length === 0) {
2494
+ scrollableHostSubscription.unsubscribe();
2495
+ scrollEventSubscription.unsubscribe();
2496
+ newScrollableHostObservable.complete();
2497
+ }
2498
+ });
2465
2499
  });
2466
- return behaviorSubject;
2467
2500
  }
2468
2501
  findScrollableHost(element) {
2469
2502
  const regex = /(auto|scroll)/;
@@ -2495,25 +2528,25 @@ class SkyScrollableHostService {
2495
2528
  if (element instanceof HTMLElement) {
2496
2529
  mutationObserver.observe(element, {
2497
2530
  attributes: true,
2498
- attributeFilter: ["class", "style.overflow", "style.overflow-y"],
2499
- subtree: true
2531
+ attributeFilter: ['class', 'style.overflow', 'style.overflow-y'],
2532
+ subtree: true,
2500
2533
  });
2501
2534
  }
2502
2535
  else {
2503
2536
  mutationObserver.observe(document.documentElement, {
2504
2537
  attributes: true,
2505
- attributeFilter: ["class", "style.overflow", "style.overflow-y"],
2506
- subtree: true
2538
+ attributeFilter: ['class', 'style.overflow', 'style.overflow-y'],
2539
+ subtree: true,
2507
2540
  });
2508
2541
  }
2509
2542
  }
2510
2543
  }
2511
- SkyScrollableHostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyScrollableHostService, deps: [{ token: MutationObserverService }, { token: SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable });
2512
- SkyScrollableHostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyScrollableHostService, providedIn: 'root' });
2513
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyScrollableHostService, decorators: [{
2544
+ SkyScrollableHostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyScrollableHostService, deps: [{ token: MutationObserverService }, { token: SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable });
2545
+ SkyScrollableHostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyScrollableHostService, providedIn: 'root' });
2546
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyScrollableHostService, decorators: [{
2514
2547
  type: Injectable,
2515
2548
  args: [{
2516
- providedIn: 'root'
2549
+ providedIn: 'root',
2517
2550
  }]
2518
2551
  }], ctorParameters: function () { return [{ type: MutationObserverService }, { type: SkyAppWindowRef }]; } });
2519
2552
 
@@ -2535,12 +2568,12 @@ class SkyAppTitleService {
2535
2568
  }
2536
2569
  }
2537
2570
  }
2538
- SkyAppTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAppTitleService, deps: [{ token: i1$1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
2539
- SkyAppTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAppTitleService, providedIn: 'root' });
2540
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAppTitleService, decorators: [{
2571
+ SkyAppTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppTitleService, deps: [{ token: i1$1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
2572
+ SkyAppTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppTitleService, providedIn: 'root' });
2573
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyAppTitleService, decorators: [{
2541
2574
  type: Injectable,
2542
2575
  args: [{
2543
- providedIn: 'root'
2576
+ providedIn: 'root',
2544
2577
  }]
2545
2578
  }], ctorParameters: function () { return [{ type: i1$1.Title }]; } });
2546
2579
 
@@ -2553,20 +2586,20 @@ class SkyUIConfigService {
2553
2586
  return of({});
2554
2587
  }
2555
2588
  }
2556
- SkyUIConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUIConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2557
- SkyUIConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUIConfigService, providedIn: 'root' });
2558
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUIConfigService, decorators: [{
2589
+ SkyUIConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyUIConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2590
+ SkyUIConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyUIConfigService, providedIn: 'root' });
2591
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyUIConfigService, decorators: [{
2559
2592
  type: Injectable,
2560
2593
  args: [{
2561
- providedIn: 'root'
2594
+ providedIn: 'root',
2562
2595
  }]
2563
2596
  }] });
2564
2597
 
2565
2598
  class SkyViewkeeperHostOptions {
2566
2599
  }
2567
- SkyViewkeeperHostOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperHostOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2568
- SkyViewkeeperHostOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperHostOptions });
2569
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperHostOptions, decorators: [{
2600
+ SkyViewkeeperHostOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperHostOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2601
+ SkyViewkeeperHostOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperHostOptions });
2602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperHostOptions, decorators: [{
2570
2603
  type: Injectable
2571
2604
  }] });
2572
2605
 
@@ -2603,7 +2636,7 @@ function getOffset(el, scrollableHost) {
2603
2636
  const parent = scrollableHost ? scrollableHost : document.documentElement;
2604
2637
  return {
2605
2638
  top: rect.top + parent.scrollTop,
2606
- left: rect.left + parent.scrollLeft
2639
+ left: rect.left + parent.scrollLeft,
2607
2640
  };
2608
2641
  }
2609
2642
  function px(value) {
@@ -2625,7 +2658,9 @@ function setElPosition(el, left, top, width, marginTop) {
2625
2658
  }
2626
2659
  function getHeightWithMargin(el) {
2627
2660
  const computedStyle = getComputedStyle(el);
2628
- return el.offsetHeight + parseInt(computedStyle.marginTop, 10) + parseInt(computedStyle.marginBottom, 10);
2661
+ return (el.offsetHeight +
2662
+ parseInt(computedStyle.marginTop, 10) +
2663
+ parseInt(computedStyle.marginBottom, 10));
2629
2664
  }
2630
2665
  function createCustomEvent(name) {
2631
2666
  const evt = document.createEvent('CustomEvent');
@@ -2682,9 +2717,7 @@ class SkyViewkeeper {
2682
2717
  if (this.verticalOffsetEl) {
2683
2718
  this.verticalOffsetEl.removeEventListener(EVT_AFTER_VIEWKEEPER_SYNC, this.syncElPositionHandler);
2684
2719
  }
2685
- this.el =
2686
- this.boundaryEl =
2687
- this.verticalOffsetEl = undefined;
2720
+ this.el = this.boundaryEl = this.verticalOffsetEl = undefined;
2688
2721
  this.isDestroyed = true;
2689
2722
  }
2690
2723
  }
@@ -2699,7 +2732,8 @@ class SkyViewkeeper {
2699
2732
  this.el.classList.remove(CLS_VIEWKEEPER_FIXED);
2700
2733
  this.currentElFixedLeft =
2701
2734
  this.currentElFixedTop =
2702
- this.currentElFixedWidth = undefined;
2735
+ this.currentElFixedWidth =
2736
+ undefined;
2703
2737
  let width;
2704
2738
  if (this.setWidth) {
2705
2739
  width = 'auto';
@@ -2711,7 +2745,7 @@ class SkyViewkeeper {
2711
2745
  if (this.verticalOffsetEl) {
2712
2746
  const verticalOffsetElTopStyle = this.verticalOffsetEl.style.top;
2713
2747
  const verticalOffsetElTop = parseInt(verticalOffsetElTopStyle, 10) || 0;
2714
- offset += (this.verticalOffsetEl.offsetHeight + verticalOffsetElTop);
2748
+ offset += this.verticalOffsetEl.offsetHeight + verticalOffsetElTop;
2715
2749
  }
2716
2750
  else if (this.scrollableHost) {
2717
2751
  offset += this.scrollableHost.getBoundingClientRect().top;
@@ -2727,7 +2761,9 @@ class SkyViewkeeper {
2727
2761
  else {
2728
2762
  anchorTop = getOffset(this.el, this.scrollableHost).top;
2729
2763
  }
2730
- doFixEl = boundaryInfo.scrollTop + verticalOffset + this.viewportMarginTop > anchorTop;
2764
+ doFixEl =
2765
+ boundaryInfo.scrollTop + verticalOffset + this.viewportMarginTop >
2766
+ anchorTop;
2731
2767
  return doFixEl;
2732
2768
  }
2733
2769
  getFixedStyles(boundaryInfo, verticalOffset) {
@@ -2736,13 +2772,15 @@ class SkyViewkeeper {
2736
2772
  // will be 0 (fully visible) unless the user is scrolling the boundary out of view.
2737
2773
  // In that case, the element should begin to scroll out of view with the
2738
2774
  // rest of the boundary by setting its top position to a negative value.
2739
- elFixedTop = Math.min((boundaryInfo.boundaryBottom - boundaryInfo.elHeight) - boundaryInfo.scrollTop, verticalOffset);
2775
+ elFixedTop = Math.min(boundaryInfo.boundaryBottom -
2776
+ boundaryInfo.elHeight -
2777
+ boundaryInfo.scrollTop, verticalOffset);
2740
2778
  const elFixedWidth = boundaryInfo.boundaryEl.getBoundingClientRect().width;
2741
2779
  const elFixedLeft = boundaryInfo.boundaryOffset.left - boundaryInfo.scrollLeft;
2742
2780
  return {
2743
2781
  elFixedLeft,
2744
2782
  elFixedTop,
2745
- elFixedWidth
2783
+ elFixedWidth,
2746
2784
  };
2747
2785
  }
2748
2786
  needsUpdating(doFixEl, fixedStyles) {
@@ -2751,7 +2789,8 @@ class SkyViewkeeper {
2751
2789
  this.currentElFixedTop === fixedStyles.elFixedTop &&
2752
2790
  this.currentElFixedWidth === fixedStyles.elFixedWidth) ||
2753
2791
  (!doFixEl &&
2754
- !(this.currentElFixedLeft !== undefined && this.currentElFixedLeft !== null))) {
2792
+ !(this.currentElFixedLeft !== undefined &&
2793
+ this.currentElFixedLeft !== null))) {
2755
2794
  // The element is either currently fixed and its position and width do not need
2756
2795
  // to change, or the element is not currently fixed and does not need to be fixed.
2757
2796
  // No changes are needed.
@@ -2787,8 +2826,12 @@ class SkyViewkeeper {
2787
2826
  const boundaryOffset = getOffset(boundaryEl, this.scrollableHost);
2788
2827
  const boundaryTop = boundaryOffset.top;
2789
2828
  const boundaryBottom = boundaryTop + boundaryEl.getBoundingClientRect().height;
2790
- const scrollLeft = this.scrollableHost ? this.scrollableHost.scrollLeft : document.documentElement.scrollLeft;
2791
- const scrollTop = this.scrollableHost ? this.scrollableHost.scrollTop : document.documentElement.scrollTop;
2829
+ const scrollLeft = this.scrollableHost
2830
+ ? this.scrollableHost.scrollLeft
2831
+ : document.documentElement.scrollLeft;
2832
+ const scrollTop = this.scrollableHost
2833
+ ? this.scrollableHost.scrollTop
2834
+ : document.documentElement.scrollTop;
2792
2835
  const elHeight = getHeightWithMargin(this.el);
2793
2836
  return {
2794
2837
  boundaryBottom,
@@ -2798,7 +2841,7 @@ class SkyViewkeeper {
2798
2841
  scrollLeft,
2799
2842
  scrollTop,
2800
2843
  spacerId,
2801
- spacerEl
2844
+ spacerEl,
2802
2845
  };
2803
2846
  }
2804
2847
  }
@@ -2826,12 +2869,12 @@ class SkyViewkeeperService {
2826
2869
  vk.destroy();
2827
2870
  }
2828
2871
  }
2829
- SkyViewkeeperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperService, deps: [{ token: SkyViewkeeperHostOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2830
- SkyViewkeeperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperService, providedIn: 'root' });
2831
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperService, decorators: [{
2872
+ SkyViewkeeperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperService, deps: [{ token: SkyViewkeeperHostOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2873
+ SkyViewkeeperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperService, providedIn: 'root' });
2874
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperService, decorators: [{
2832
2875
  type: Injectable,
2833
2876
  args: [{
2834
- providedIn: 'root'
2877
+ providedIn: 'root',
2835
2878
  }]
2836
2879
  }], ctorParameters: function () { return [{ type: SkyViewkeeperHostOptions, decorators: [{
2837
2880
  type: Optional
@@ -2857,7 +2900,7 @@ class SkyViewkeeperDirective {
2857
2900
  this.observer = this.mutationObserverSvc.create(() => this.detectElements());
2858
2901
  this.observer.observe(this.el.nativeElement, {
2859
2902
  childList: true,
2860
- subtree: true
2903
+ subtree: true,
2861
2904
  });
2862
2905
  }
2863
2906
  ngOnDestroy() {
@@ -2907,18 +2950,21 @@ class SkyViewkeeperDirective {
2907
2950
  else {
2908
2951
  this.scrollableHostWatchUnsubscribe = new Subject();
2909
2952
  }
2910
- this.scrollableHostService.watchScrollableHost(this.el, this.scrollableHostWatchUnsubscribe)
2953
+ this.scrollableHostService
2954
+ .watchScrollableHost(this.el)
2911
2955
  .pipe(takeUntil(this.scrollableHostWatchUnsubscribe))
2912
- .subscribe(scrollableHost => {
2956
+ .subscribe((scrollableHost) => {
2913
2957
  this.destroyViewkeepers();
2914
2958
  let previousViewkeeperEl;
2915
2959
  for (const viewkeeperEl of viewkeeperEls) {
2916
2960
  this.viewkeepers.push(this.viewkeeperSvc.create({
2917
2961
  boundaryEl: this.el.nativeElement,
2918
- scrollableHost: scrollableHost instanceof HTMLElement ? scrollableHost : undefined,
2962
+ scrollableHost: scrollableHost instanceof HTMLElement
2963
+ ? scrollableHost
2964
+ : undefined,
2919
2965
  el: viewkeeperEl,
2920
2966
  setWidth: true,
2921
- verticalOffsetEl: previousViewkeeperEl
2967
+ verticalOffsetEl: previousViewkeeperEl,
2922
2968
  }));
2923
2969
  previousViewkeeperEl = viewkeeperEl;
2924
2970
  }
@@ -2927,12 +2973,12 @@ class SkyViewkeeperDirective {
2927
2973
  }
2928
2974
  }
2929
2975
  }
2930
- SkyViewkeeperDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperDirective, deps: [{ token: i0.ElementRef }, { token: MutationObserverService }, { token: SkyViewkeeperService }, { token: SkyScrollableHostService, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2931
- SkyViewkeeperDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyViewkeeperDirective, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper" }, ngImport: i0 });
2932
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperDirective, decorators: [{
2976
+ SkyViewkeeperDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperDirective, deps: [{ token: i0.ElementRef }, { token: MutationObserverService }, { token: SkyViewkeeperService }, { token: SkyScrollableHostService, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2977
+ SkyViewkeeperDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: SkyViewkeeperDirective, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper" }, ngImport: i0 });
2978
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperDirective, decorators: [{
2933
2979
  type: Directive,
2934
2980
  args: [{
2935
- selector: '[skyViewkeeper]'
2981
+ selector: '[skyViewkeeper]',
2936
2982
  }]
2937
2983
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: MutationObserverService }, { type: SkyViewkeeperService }, { type: SkyScrollableHostService, decorators: [{
2938
2984
  type: Optional
@@ -2942,18 +2988,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
2942
2988
 
2943
2989
  class SkyViewkeeperModule {
2944
2990
  }
2945
- SkyViewkeeperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2946
- SkyViewkeeperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperModule, declarations: [SkyViewkeeperDirective], exports: [SkyViewkeeperDirective] });
2947
- SkyViewkeeperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperModule });
2948
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyViewkeeperModule, decorators: [{
2991
+ SkyViewkeeperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2992
+ SkyViewkeeperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperModule, declarations: [SkyViewkeeperDirective], exports: [SkyViewkeeperDirective] });
2993
+ SkyViewkeeperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperModule });
2994
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: SkyViewkeeperModule, decorators: [{
2949
2995
  type: NgModule,
2950
2996
  args: [{
2951
- declarations: [
2952
- SkyViewkeeperDirective
2953
- ],
2954
- exports: [
2955
- SkyViewkeeperDirective
2956
- ]
2997
+ declarations: [SkyViewkeeperDirective],
2998
+ exports: [SkyViewkeeperDirective],
2957
2999
  }]
2958
3000
  }] });
2959
3001