@skyux/core 8.0.0-alpha.2 → 8.0.0-alpha.21
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.
- package/documentation.json +1199 -1461
- package/esm2020/index.mjs +6 -1
- package/esm2020/lib/modules/adapter-service/adapter.module.mjs +4 -4
- package/esm2020/lib/modules/adapter-service/adapter.service.mjs +3 -3
- package/esm2020/lib/modules/affix/affix-config.mjs +1 -1
- package/esm2020/lib/modules/affix/affix-position.mjs +2 -0
- package/esm2020/lib/modules/affix/affix-rect.mjs +2 -0
- package/esm2020/lib/modules/affix/affix.directive.mjs +8 -4
- package/esm2020/lib/modules/affix/affix.module.mjs +4 -4
- package/esm2020/lib/modules/affix/affix.service.mjs +3 -3
- package/esm2020/lib/modules/affix/affixer.mjs +53 -28
- package/esm2020/lib/modules/dock/dock-dom-adapter.service.mjs +3 -3
- package/esm2020/lib/modules/dock/dock-item.mjs +7 -7
- package/esm2020/lib/modules/dock/dock.component.mjs +4 -4
- package/esm2020/lib/modules/dock/dock.module.mjs +4 -4
- package/esm2020/lib/modules/dock/dock.service.mjs +10 -10
- package/esm2020/lib/modules/dynamic-component/dynamic-component.module.mjs +4 -4
- package/esm2020/lib/modules/dynamic-component/dynamic-component.service.mjs +3 -3
- package/esm2020/lib/modules/format/app-format.mjs +3 -3
- package/esm2020/lib/modules/id/id.directive.mjs +7 -7
- package/esm2020/lib/modules/id/id.module.mjs +4 -4
- package/esm2020/lib/modules/id/id.service.mjs +3 -3
- package/esm2020/lib/modules/live-announcer/live-announcer.service.mjs +80 -0
- package/esm2020/lib/modules/live-announcer/types/live-announcer-args.mjs +2 -0
- package/esm2020/lib/modules/live-announcer/types/live-announcer-politeness.mjs +2 -0
- package/esm2020/lib/modules/log/log.module.mjs +4 -4
- package/esm2020/lib/modules/log/log.service.mjs +22 -11
- package/esm2020/lib/modules/media-query/media-query.module.mjs +4 -4
- package/esm2020/lib/modules/media-query/media-query.service.mjs +10 -10
- package/esm2020/lib/modules/mutation/mutation-observer-service.mjs +3 -3
- package/esm2020/lib/modules/numeric/numeric.module.mjs +4 -4
- package/esm2020/lib/modules/numeric/numeric.options.mjs +12 -1
- package/esm2020/lib/modules/numeric/numeric.pipe.mjs +3 -3
- package/esm2020/lib/modules/numeric/numeric.service.mjs +26 -18
- package/esm2020/lib/modules/overlay/overlay-adapter.service.mjs +3 -3
- package/esm2020/lib/modules/overlay/overlay-config.mjs +1 -1
- package/esm2020/lib/modules/overlay/overlay-instance.mjs +13 -13
- package/esm2020/lib/modules/overlay/overlay-position.mjs +2 -0
- package/esm2020/lib/modules/overlay/overlay.component.mjs +14 -11
- package/esm2020/lib/modules/overlay/overlay.module.mjs +4 -4
- package/esm2020/lib/modules/overlay/overlay.service.mjs +3 -3
- package/esm2020/lib/modules/percent-pipe/percent-pipe.module.mjs +4 -4
- package/esm2020/lib/modules/percent-pipe/percent.pipe.mjs +7 -7
- package/esm2020/lib/modules/resize-observer/resize-observer-media-query.service.mjs +10 -10
- package/esm2020/lib/modules/resize-observer/resize-observer.service.mjs +3 -3
- package/esm2020/lib/modules/scrollable-host/scrollable-host.service.mjs +3 -3
- package/esm2020/lib/modules/shared/sky-core-resources.module.mjs +4 -4
- package/esm2020/lib/modules/title/title.service.mjs +3 -3
- package/esm2020/lib/modules/trim/trim.directive.mjs +3 -3
- package/esm2020/lib/modules/trim/trim.module.mjs +4 -4
- package/esm2020/lib/modules/ui-config/ui-config.service.mjs +3 -3
- package/esm2020/lib/modules/viewkeeper/viewkeeper-host-options.mjs +3 -3
- package/esm2020/lib/modules/viewkeeper/viewkeeper.directive.mjs +11 -11
- package/esm2020/lib/modules/viewkeeper/viewkeeper.module.mjs +4 -4
- package/esm2020/lib/modules/viewkeeper/viewkeeper.service.mjs +3 -3
- package/esm2020/lib/modules/window/window-ref.mjs +3 -3
- package/esm2020/testing/core-testing.module.mjs +4 -4
- package/esm2020/testing/mock-media-query.service.mjs +10 -10
- package/esm2020/testing/mock-ui-config.service.mjs +4 -4
- package/fesm2015/skyux-core-testing.mjs +16 -16
- package/fesm2015/skyux-core-testing.mjs.map +1 -1
- package/fesm2015/skyux-core.mjs +377 -248
- package/fesm2015/skyux-core.mjs.map +1 -1
- package/fesm2020/skyux-core-testing.mjs +16 -16
- package/fesm2020/skyux-core-testing.mjs.map +1 -1
- package/fesm2020/skyux-core.mjs +382 -248
- package/fesm2020/skyux-core.mjs.map +1 -1
- package/index.d.ts +5 -0
- package/lib/modules/affix/affix-config.d.ts +5 -0
- package/lib/modules/affix/affix-horizontal-alignment.d.ts +1 -1
- package/lib/modules/affix/affix-placement.d.ts +1 -1
- package/lib/modules/affix/affix-position.d.ts +1 -0
- package/lib/modules/affix/affix-rect.d.ts +11 -0
- package/lib/modules/affix/affix-vertical-alignment.d.ts +1 -1
- package/lib/modules/affix/affix.directive.d.ts +6 -1
- package/lib/modules/live-announcer/live-announcer.service.d.ts +31 -0
- package/lib/modules/live-announcer/types/live-announcer-args.d.ts +8 -0
- package/lib/modules/live-announcer/types/live-announcer-politeness.d.ts +5 -0
- package/lib/modules/log/log.service.d.ts +11 -2
- package/lib/modules/media-query/media-query-listener.d.ts +1 -1
- package/lib/modules/numeric/numeric.options.d.ts +2 -0
- package/lib/modules/overlay/overlay-config.d.ts +5 -0
- package/lib/modules/overlay/overlay-position.d.ts +1 -0
- package/lib/modules/overlay/overlay.component.d.ts +2 -0
- package/package.json +8 -8
package/fesm2015/skyux-core.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { NgModule, Injectable, EventEmitter, Directive, Input, Output, Injector, ViewContainerRef, Component, ChangeDetectionStrategy, ViewChild, createComponent, InjectionToken, Optional, Inject, Pipe, ElementRef, HostBinding } from '@angular/core';
|
2
|
+
import { NgModule, Injectable, EventEmitter, Directive, Input, Output, Injector, ViewContainerRef, Component, ChangeDetectionStrategy, ViewChild, createComponent, inject, InjectionToken, Optional, Inject, Pipe, ElementRef, HostBinding } from '@angular/core';
|
3
3
|
import { __classPrivateFieldSet, __classPrivateFieldGet, __awaiter } from 'tslib';
|
4
4
|
import * as i5 from '@angular/common';
|
5
|
-
import { CommonModule } from '@angular/common';
|
6
|
-
import { Subject, fromEvent,
|
5
|
+
import { CommonModule, DOCUMENT } from '@angular/common';
|
6
|
+
import { Subject, fromEvent, ReplaySubject, BehaviorSubject, Observable, of, concat, animationFrameScheduler } from 'rxjs';
|
7
7
|
import { takeUntil, debounceTime, finalize, switchMap, map } from 'rxjs/operators';
|
8
8
|
import * as i1 from '@skyux/i18n';
|
9
9
|
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS, SkyIntlNumberFormatStyle, SkyIntlNumberFormatter } from '@skyux/i18n';
|
@@ -17,10 +17,10 @@ import * as i1$1 from '@angular/platform-browser';
|
|
17
17
|
*/
|
18
18
|
class SkyCoreAdapterModule {
|
19
19
|
}
|
20
|
-
SkyCoreAdapterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
21
|
-
SkyCoreAdapterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
22
|
-
SkyCoreAdapterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
20
|
+
SkyCoreAdapterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreAdapterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
21
|
+
SkyCoreAdapterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreAdapterModule });
|
22
|
+
SkyCoreAdapterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreAdapterModule });
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreAdapterModule, decorators: [{
|
24
24
|
type: NgModule,
|
25
25
|
args: [{}]
|
26
26
|
}] });
|
@@ -259,9 +259,9 @@ _SkyCoreAdapterService_renderer = new WeakMap(), _SkyCoreAdapterService_instance
|
|
259
259
|
element.getClientRects().length);
|
260
260
|
return hasBounds;
|
261
261
|
};
|
262
|
-
SkyCoreAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
263
|
-
SkyCoreAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
262
|
+
SkyCoreAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
263
|
+
SkyCoreAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreAdapterService, providedIn: 'root' });
|
264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreAdapterService, decorators: [{
|
265
265
|
type: Injectable,
|
266
266
|
args: [{
|
267
267
|
providedIn: 'root',
|
@@ -375,7 +375,7 @@ function isOffsetPartiallyVisibleWithinParent(parent, offset, bufferOffset) {
|
|
375
375
|
parentOffset.left >= offset.right);
|
376
376
|
}
|
377
377
|
|
378
|
-
var _SkyAffixer_instances, _SkyAffixer_config_get, _SkyAffixer_config_set, _SkyAffixer_affixedElement, _SkyAffixer_baseElement, _SkyAffixer_currentOffset, _SkyAffixer_currentPlacement, _SkyAffixer_offsetChange, _SkyAffixer_offsetChangeObs, _SkyAffixer_overflowParents, _SkyAffixer_overflowScroll, _SkyAffixer_overflowScrollObs, _SkyAffixer_placementChange, _SkyAffixer_placementChangeObs, _SkyAffixer_renderer, _SkyAffixer_resizeListener, _SkyAffixer_scrollListeners, _SkyAffixer__config, _SkyAffixer_affix, _SkyAffixer_getOffset, _SkyAffixer_getPreferredOffset, _SkyAffixer_adjustOffsetToOverflowParent, _SkyAffixer_getImmediateOverflowParent, _SkyAffixer_getAutoFitContextParent, _SkyAffixer_notifyPlacementChange, _SkyAffixer_reset, _SkyAffixer_isNewOffset, _SkyAffixer_isBaseElementVisible, _SkyAffixer_addScrollListeners, _SkyAffixer_addResizeListener, _SkyAffixer_removeResizeListener, _SkyAffixer_removeScrollListeners;
|
378
|
+
var _SkyAffixer_instances, _SkyAffixer_config_get, _SkyAffixer_config_set, _SkyAffixer_affixedElement, _SkyAffixer_baseElement, _SkyAffixer_currentOffset, _SkyAffixer_currentPlacement, _SkyAffixer_offsetChange, _SkyAffixer_offsetChangeObs, _SkyAffixer_overflowParents, _SkyAffixer_overflowScroll, _SkyAffixer_overflowScrollObs, _SkyAffixer_placementChange, _SkyAffixer_placementChangeObs, _SkyAffixer_renderer, _SkyAffixer_resizeListener, _SkyAffixer_scrollListeners, _SkyAffixer__config, _SkyAffixer_affix, _SkyAffixer_getOffset, _SkyAffixer_getRect, _SkyAffixer_getPreferredOffset, _SkyAffixer_adjustOffsetToOverflowParent, _SkyAffixer_getImmediateOverflowParent, _SkyAffixer_getAutoFitContextParent, _SkyAffixer_notifyPlacementChange, _SkyAffixer_reset, _SkyAffixer_isNewOffset, _SkyAffixer_isBaseElementVisible, _SkyAffixer_addScrollListeners, _SkyAffixer_addResizeListener, _SkyAffixer_removeResizeListener, _SkyAffixer_removeScrollListeners;
|
379
379
|
const DEFAULT_AFFIX_CONFIG = {
|
380
380
|
autoFitContext: SkyAffixAutoFitContext.OverflowParent,
|
381
381
|
enableAutoFit: false,
|
@@ -384,6 +384,27 @@ const DEFAULT_AFFIX_CONFIG = {
|
|
384
384
|
placement: 'above',
|
385
385
|
};
|
386
386
|
class SkyAffixer {
|
387
|
+
/**
|
388
|
+
* Fires when the affixed element's offset changes.
|
389
|
+
*/
|
390
|
+
get offsetChange() {
|
391
|
+
return __classPrivateFieldGet(this, _SkyAffixer_offsetChangeObs, "f");
|
392
|
+
}
|
393
|
+
/**
|
394
|
+
* Fires when the base element's nearest overflow parent is scrolling. This is useful if you need
|
395
|
+
* to perform an additional action during the scroll event but don't want to generate another
|
396
|
+
* event listener.
|
397
|
+
*/
|
398
|
+
get overflowScroll() {
|
399
|
+
return __classPrivateFieldGet(this, _SkyAffixer_overflowScrollObs, "f");
|
400
|
+
}
|
401
|
+
/**
|
402
|
+
* Fires when the placement value changes. A `null` value indicates that a suitable
|
403
|
+
* placement could not be found.
|
404
|
+
*/
|
405
|
+
get placementChange() {
|
406
|
+
return __classPrivateFieldGet(this, _SkyAffixer_placementChangeObs, "f");
|
407
|
+
}
|
387
408
|
constructor(affixedElement, renderer) {
|
388
409
|
_SkyAffixer_instances.add(this);
|
389
410
|
_SkyAffixer_affixedElement.set(this, void 0);
|
@@ -410,27 +431,6 @@ class SkyAffixer {
|
|
410
431
|
__classPrivateFieldSet(this, _SkyAffixer_overflowScrollObs, __classPrivateFieldGet(this, _SkyAffixer_overflowScroll, "f").asObservable(), "f");
|
411
432
|
__classPrivateFieldSet(this, _SkyAffixer_placementChangeObs, __classPrivateFieldGet(this, _SkyAffixer_placementChange, "f").asObservable(), "f");
|
412
433
|
}
|
413
|
-
/**
|
414
|
-
* Fires when the affixed element's offset changes.
|
415
|
-
*/
|
416
|
-
get offsetChange() {
|
417
|
-
return __classPrivateFieldGet(this, _SkyAffixer_offsetChangeObs, "f");
|
418
|
-
}
|
419
|
-
/**
|
420
|
-
* Fires when the base element's nearest overflow parent is scrolling. This is useful if you need
|
421
|
-
* to perform an additional action during the scroll event but don't want to generate another
|
422
|
-
* event listener.
|
423
|
-
*/
|
424
|
-
get overflowScroll() {
|
425
|
-
return __classPrivateFieldGet(this, _SkyAffixer_overflowScrollObs, "f");
|
426
|
-
}
|
427
|
-
/**
|
428
|
-
* Fires when the placement value changes. A `null` value indicates that a suitable
|
429
|
-
* placement could not be found.
|
430
|
-
*/
|
431
|
-
get placementChange() {
|
432
|
-
return __classPrivateFieldGet(this, _SkyAffixer_placementChangeObs, "f");
|
433
|
-
}
|
434
434
|
/**
|
435
435
|
* Affixes an element to a base element.
|
436
436
|
* @param baseElement The base element.
|
@@ -494,9 +494,19 @@ _SkyAffixer_affixedElement = new WeakMap(), _SkyAffixer_baseElement = new WeakMa
|
|
494
494
|
let isAffixedElementFullyVisible = false;
|
495
495
|
let offset;
|
496
496
|
let placement = __classPrivateFieldGet(this, _SkyAffixer_instances, "a", _SkyAffixer_config_get).placement;
|
497
|
+
const autoFitOverflowOffset = __classPrivateFieldGet(this, _SkyAffixer_instances, "a", _SkyAffixer_config_get).autoFitOverflowOffset || {
|
498
|
+
bottom: 0,
|
499
|
+
left: 0,
|
500
|
+
right: 0,
|
501
|
+
top: 0,
|
502
|
+
};
|
503
|
+
if (__classPrivateFieldGet(this, _SkyAffixer_instances, "a", _SkyAffixer_config_get).position === 'absolute') {
|
504
|
+
autoFitOverflowOffset.top =
|
505
|
+
(autoFitOverflowOffset.top || 0) + window.scrollY;
|
506
|
+
}
|
497
507
|
do {
|
498
508
|
offset = __classPrivateFieldGet(this, _SkyAffixer_instances, "m", _SkyAffixer_getPreferredOffset).call(this, placement);
|
499
|
-
isAffixedElementFullyVisible = isOffsetFullyVisibleWithinParent(parent, offset,
|
509
|
+
isAffixedElementFullyVisible = isOffsetFullyVisibleWithinParent(parent, offset, autoFitOverflowOffset);
|
500
510
|
if (!__classPrivateFieldGet(this, _SkyAffixer_instances, "a", _SkyAffixer_config_get).enableAutoFit) {
|
501
511
|
break;
|
502
512
|
}
|
@@ -522,12 +532,27 @@ _SkyAffixer_affixedElement = new WeakMap(), _SkyAffixer_baseElement = new WeakMa
|
|
522
532
|
}
|
523
533
|
// No suitable placement was found, so revert to preferred placement.
|
524
534
|
return __classPrivateFieldGet(this, _SkyAffixer_instances, "m", _SkyAffixer_getPreferredOffset).call(this, __classPrivateFieldGet(this, _SkyAffixer_instances, "a", _SkyAffixer_config_get).placement);
|
535
|
+
}, _SkyAffixer_getRect = function _SkyAffixer_getRect(baseElement) {
|
536
|
+
const baseDomRect = baseElement.getBoundingClientRect();
|
537
|
+
const baseRect = {
|
538
|
+
top: baseDomRect.top,
|
539
|
+
bottom: baseDomRect.bottom,
|
540
|
+
left: baseDomRect.left,
|
541
|
+
right: baseDomRect.right,
|
542
|
+
width: baseDomRect.width,
|
543
|
+
height: baseDomRect.height,
|
544
|
+
};
|
545
|
+
if (__classPrivateFieldGet(this, _SkyAffixer_instances, "a", _SkyAffixer_config_get).position === 'absolute') {
|
546
|
+
baseRect.top += window.scrollY;
|
547
|
+
baseRect.bottom = baseRect.top + baseDomRect.height;
|
548
|
+
}
|
549
|
+
return baseRect;
|
525
550
|
}, _SkyAffixer_getPreferredOffset = function _SkyAffixer_getPreferredOffset(placement) {
|
526
551
|
if (!__classPrivateFieldGet(this, _SkyAffixer_baseElement, "f")) {
|
527
552
|
return { top: 0, left: 0, bottom: 0, right: 0 };
|
528
553
|
}
|
529
|
-
const affixedRect = __classPrivateFieldGet(this,
|
530
|
-
const baseRect = __classPrivateFieldGet(this,
|
554
|
+
const affixedRect = __classPrivateFieldGet(this, _SkyAffixer_instances, "m", _SkyAffixer_getRect).call(this, __classPrivateFieldGet(this, _SkyAffixer_affixedElement, "f"));
|
555
|
+
const baseRect = __classPrivateFieldGet(this, _SkyAffixer_instances, "m", _SkyAffixer_getRect).call(this, __classPrivateFieldGet(this, _SkyAffixer_baseElement, "f"));
|
531
556
|
const horizontalAlignment = __classPrivateFieldGet(this, _SkyAffixer_instances, "a", _SkyAffixer_config_get).horizontalAlignment;
|
532
557
|
const verticalAlignment = __classPrivateFieldGet(this, _SkyAffixer_instances, "a", _SkyAffixer_config_get).verticalAlignment;
|
533
558
|
const enableAutoFit = __classPrivateFieldGet(this, _SkyAffixer_instances, "a", _SkyAffixer_config_get).enableAutoFit;
|
@@ -607,8 +632,8 @@ _SkyAffixer_affixedElement = new WeakMap(), _SkyAffixer_baseElement = new WeakMa
|
|
607
632
|
}, _SkyAffixer_adjustOffsetToOverflowParent = function _SkyAffixer_adjustOffsetToOverflowParent(offset, placement, baseElement) {
|
608
633
|
const parent = __classPrivateFieldGet(this, _SkyAffixer_instances, "m", _SkyAffixer_getAutoFitContextParent).call(this);
|
609
634
|
const parentOffset = getElementOffset(parent, __classPrivateFieldGet(this, _SkyAffixer_instances, "a", _SkyAffixer_config_get).autoFitOverflowOffset);
|
610
|
-
const affixedRect = __classPrivateFieldGet(this,
|
611
|
-
const baseRect =
|
635
|
+
const affixedRect = __classPrivateFieldGet(this, _SkyAffixer_instances, "m", _SkyAffixer_getRect).call(this, __classPrivateFieldGet(this, _SkyAffixer_affixedElement, "f"));
|
636
|
+
const baseRect = __classPrivateFieldGet(this, _SkyAffixer_instances, "m", _SkyAffixer_getRect).call(this, baseElement);
|
612
637
|
// A pixel value representing the leeway between the edge of the overflow parent and the edge
|
613
638
|
// of the base element before it disappears from view.
|
614
639
|
// If the visible portion of the base element is less than this pixel value, the auto-fit
|
@@ -734,9 +759,9 @@ class SkyAffixService {
|
|
734
759
|
}
|
735
760
|
}
|
736
761
|
_SkyAffixService_renderer = new WeakMap();
|
737
|
-
SkyAffixService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
738
|
-
SkyAffixService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
739
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
762
|
+
SkyAffixService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAffixService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
763
|
+
SkyAffixService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAffixService, providedIn: 'root' });
|
764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAffixService, decorators: [{
|
740
765
|
type: Injectable,
|
741
766
|
args: [{
|
742
767
|
providedIn: 'root',
|
@@ -790,6 +815,7 @@ class SkyAffixDirective {
|
|
790
815
|
changes.affixHorizontalAlignment ||
|
791
816
|
changes.affixIsSticky ||
|
792
817
|
changes.affixPlacement ||
|
818
|
+
changes.affixPosition ||
|
793
819
|
changes.affixVerticalAlignment) {
|
794
820
|
__classPrivateFieldGet(this, _SkyAffixDirective_instances, "m", _SkyAffixDirective_updateAlignment).call(this);
|
795
821
|
}
|
@@ -816,13 +842,14 @@ _SkyAffixDirective_affixer = new WeakMap(), _SkyAffixDirective_affixService = ne
|
|
816
842
|
horizontalAlignment: this.affixHorizontalAlignment,
|
817
843
|
isSticky: this.affixIsSticky,
|
818
844
|
placement: this.affixPlacement,
|
845
|
+
position: this.affixPosition,
|
819
846
|
verticalAlignment: this.affixVerticalAlignment,
|
820
847
|
});
|
821
848
|
}
|
822
849
|
};
|
823
|
-
SkyAffixDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
824
|
-
SkyAffixDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1
|
825
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
850
|
+
SkyAffixDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAffixDirective, deps: [{ token: i0.ElementRef }, { token: SkyAffixService }], target: i0.ɵɵFactoryTarget.Directive });
|
851
|
+
SkyAffixDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: SkyAffixDirective, selector: "[skyAffixTo]", inputs: { skyAffixTo: "skyAffixTo", affixAutoFitContext: "affixAutoFitContext", affixAutoFitOverflowOffset: "affixAutoFitOverflowOffset", affixEnableAutoFit: "affixEnableAutoFit", affixHorizontalAlignment: "affixHorizontalAlignment", affixIsSticky: "affixIsSticky", affixPlacement: "affixPlacement", affixPosition: "affixPosition", affixVerticalAlignment: "affixVerticalAlignment" }, outputs: { affixOffsetChange: "affixOffsetChange", affixOverflowScroll: "affixOverflowScroll", affixPlacementChange: "affixPlacementChange" }, usesOnChanges: true, ngImport: i0 });
|
852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAffixDirective, decorators: [{
|
826
853
|
type: Directive,
|
827
854
|
args: [{
|
828
855
|
selector: '[skyAffixTo]',
|
@@ -841,6 +868,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
841
868
|
type: Input
|
842
869
|
}], affixPlacement: [{
|
843
870
|
type: Input
|
871
|
+
}], affixPosition: [{
|
872
|
+
type: Input
|
844
873
|
}], affixVerticalAlignment: [{
|
845
874
|
type: Input
|
846
875
|
}], affixOffsetChange: [{
|
@@ -853,10 +882,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
853
882
|
|
854
883
|
class SkyAffixModule {
|
855
884
|
}
|
856
|
-
SkyAffixModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
857
|
-
SkyAffixModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
858
|
-
SkyAffixModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
885
|
+
SkyAffixModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAffixModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
886
|
+
SkyAffixModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyAffixModule, declarations: [SkyAffixDirective], imports: [CommonModule], exports: [SkyAffixDirective] });
|
887
|
+
SkyAffixModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAffixModule, imports: [CommonModule] });
|
888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAffixModule, decorators: [{
|
860
889
|
type: NgModule,
|
861
890
|
args: [{
|
862
891
|
imports: [CommonModule],
|
@@ -870,6 +899,12 @@ var _SkyDockItem_destroyed, _SkyDockItem_destroyedObs;
|
|
870
899
|
* Represents a single item added to the dock.
|
871
900
|
*/
|
872
901
|
class SkyDockItem {
|
902
|
+
/**
|
903
|
+
* An event that emits when the item is removed from the dock.
|
904
|
+
*/
|
905
|
+
get destroyed() {
|
906
|
+
return __classPrivateFieldGet(this, _SkyDockItem_destroyedObs, "f");
|
907
|
+
}
|
873
908
|
/**
|
874
909
|
* @param componentInstance The item's component instance.
|
875
910
|
* @param stackOrder The assigned stack order of the docked item.
|
@@ -881,12 +916,6 @@ class SkyDockItem {
|
|
881
916
|
_SkyDockItem_destroyedObs.set(this, void 0);
|
882
917
|
__classPrivateFieldSet(this, _SkyDockItem_destroyedObs, __classPrivateFieldGet(this, _SkyDockItem_destroyed, "f").asObservable(), "f");
|
883
918
|
}
|
884
|
-
/**
|
885
|
-
* An event that emits when the item is removed from the dock.
|
886
|
-
*/
|
887
|
-
get destroyed() {
|
888
|
-
return __classPrivateFieldGet(this, _SkyDockItem_destroyedObs, "f");
|
889
|
-
}
|
890
919
|
/**
|
891
920
|
* Removes the item from the dock.
|
892
921
|
*/
|
@@ -924,9 +953,9 @@ class SkyMutationObserverService {
|
|
924
953
|
return new MutationObserver(callback);
|
925
954
|
}
|
926
955
|
}
|
927
|
-
SkyMutationObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
928
|
-
SkyMutationObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
956
|
+
SkyMutationObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyMutationObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
957
|
+
SkyMutationObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyMutationObserverService, providedIn: 'root' });
|
958
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyMutationObserverService, decorators: [{
|
930
959
|
type: Injectable,
|
931
960
|
args: [{
|
932
961
|
providedIn: 'root',
|
@@ -1004,9 +1033,9 @@ _SkyDockDomAdapterService_currentDockHeight = new WeakMap(), _SkyDockDomAdapterS
|
|
1004
1033
|
}, _SkyDockDomAdapterService_destroyStyleElement = function _SkyDockDomAdapterService_destroyStyleElement() {
|
1005
1034
|
__classPrivateFieldGet(this, _SkyDockDomAdapterService_renderer, "f").removeChild(document.head, __classPrivateFieldGet(this, _SkyDockDomAdapterService_styleElement, "f"));
|
1006
1035
|
};
|
1007
|
-
SkyDockDomAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1008
|
-
SkyDockDomAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
1009
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1036
|
+
SkyDockDomAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockDomAdapterService, deps: [{ token: SkyMutationObserverService }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
1037
|
+
SkyDockDomAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockDomAdapterService });
|
1038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockDomAdapterService, decorators: [{
|
1010
1039
|
type: Injectable
|
1011
1040
|
}], ctorParameters: function () { return [{ type: SkyMutationObserverService }, { type: i0.RendererFactory2 }]; } });
|
1012
1041
|
|
@@ -1114,11 +1143,11 @@ _SkyDockComponent_changeDetector = new WeakMap(), _SkyDockComponent_domAdapter =
|
|
1114
1143
|
}
|
1115
1144
|
return __classPrivateFieldGet(this, _SkyDockComponent_itemRefs, "f")[0].stackOrder + 1;
|
1116
1145
|
};
|
1117
|
-
SkyDockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1118
|
-
SkyDockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1
|
1119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1146
|
+
SkyDockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Injector }, { token: SkyDockDomAdapterService }], target: i0.ɵɵFactoryTarget.Component });
|
1147
|
+
SkyDockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", 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:var(--sky-viewport-left, 0);bottom:var(--sky-viewport-bottom, 0);right:var(--sky-viewport-right, 0);width:auto}:host.sky-dock-sticky{position:sticky}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockComponent, decorators: [{
|
1120
1149
|
type: Component,
|
1121
|
-
args: [{ selector: 'sky-dock', providers: [SkyDockDomAdapterService], changeDetection: ChangeDetectionStrategy.OnPush, 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"] }]
|
1150
|
+
args: [{ selector: 'sky-dock', providers: [SkyDockDomAdapterService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container #target></ng-container>\n", styles: [":host{display:flex;flex-direction:column;width:100%}:host:not(.sky-dock-unbound){position:fixed;left:var(--sky-viewport-left, 0);bottom:var(--sky-viewport-bottom, 0);right:var(--sky-viewport-right, 0);width:auto}:host.sky-dock-sticky{position:sticky}\n"] }]
|
1122
1151
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Injector }, { type: SkyDockDomAdapterService }]; }, propDecorators: { target: [{
|
1123
1152
|
type: ViewChild,
|
1124
1153
|
args: ['target', {
|
@@ -1129,10 +1158,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
1129
1158
|
|
1130
1159
|
class SkyDockModule {
|
1131
1160
|
}
|
1132
|
-
SkyDockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1133
|
-
SkyDockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
1134
|
-
SkyDockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
1135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1161
|
+
SkyDockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1162
|
+
SkyDockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyDockModule, declarations: [SkyDockComponent], imports: [CommonModule] });
|
1163
|
+
SkyDockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockModule, providers: [SkyMutationObserverService], imports: [CommonModule] });
|
1164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockModule, decorators: [{
|
1136
1165
|
type: NgModule,
|
1137
1166
|
args: [{
|
1138
1167
|
imports: [CommonModule],
|
@@ -1187,9 +1216,9 @@ class SkyAppWindowRef {
|
|
1187
1216
|
return getWindow();
|
1188
1217
|
}
|
1189
1218
|
}
|
1190
|
-
SkyAppWindowRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1191
|
-
SkyAppWindowRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
1192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1219
|
+
SkyAppWindowRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAppWindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1220
|
+
SkyAppWindowRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAppWindowRef, providedIn: 'root' });
|
1221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAppWindowRef, decorators: [{
|
1193
1222
|
type: Injectable,
|
1194
1223
|
args: [{
|
1195
1224
|
providedIn: 'root',
|
@@ -1288,9 +1317,9 @@ _SkyDynamicComponentService_applicationRef = new WeakMap(), _SkyDynamicComponent
|
|
1288
1317
|
// https://malcoded.com/posts/angular-dynamic-components
|
1289
1318
|
return componentRef.hostView.rootNodes[0];
|
1290
1319
|
};
|
1291
|
-
SkyDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1292
|
-
SkyDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
1293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1320
|
+
SkyDynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDynamicComponentService, deps: [{ token: i0.ApplicationRef }, { token: i0.Injector }, { token: SkyAppWindowRef }, { token: i0.RendererFactory2 }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
1321
|
+
SkyDynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDynamicComponentService, providedIn: 'any' });
|
1322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDynamicComponentService, decorators: [{
|
1294
1323
|
type: Injectable,
|
1295
1324
|
args: [{
|
1296
1325
|
// Must be 'any' so that the component is created in the context of its module's injector.
|
@@ -1305,18 +1334,18 @@ var _SkyDockService_instances, _SkyDockService_dynamicComponentSvc, _SkyDockServ
|
|
1305
1334
|
* This service docks components to specific areas on the page.
|
1306
1335
|
*/
|
1307
1336
|
class SkyDockService {
|
1308
|
-
constructor(dynamicComponentSvc) {
|
1309
|
-
_SkyDockService_instances.add(this);
|
1310
|
-
_SkyDockService_dynamicComponentSvc.set(this, void 0);
|
1311
|
-
_SkyDockService_options.set(this, void 0);
|
1312
|
-
__classPrivateFieldSet(this, _SkyDockService_dynamicComponentSvc, dynamicComponentSvc, "f");
|
1313
|
-
}
|
1314
1337
|
/**
|
1315
1338
|
* Returns all docked items.
|
1316
1339
|
*/
|
1317
1340
|
get items() {
|
1318
1341
|
return SkyDockService._items;
|
1319
1342
|
}
|
1343
|
+
constructor(dynamicComponentSvc) {
|
1344
|
+
_SkyDockService_instances.add(this);
|
1345
|
+
_SkyDockService_dynamicComponentSvc.set(this, void 0);
|
1346
|
+
_SkyDockService_options.set(this, void 0);
|
1347
|
+
__classPrivateFieldSet(this, _SkyDockService_dynamicComponentSvc, dynamicComponentSvc, "f");
|
1348
|
+
}
|
1320
1349
|
/**
|
1321
1350
|
* Docks a component to the bottom of the page.
|
1322
1351
|
* @param component The component to dock.
|
@@ -1377,9 +1406,9 @@ _SkyDockService_dynamicComponentSvc = new WeakMap(), _SkyDockService_options = n
|
|
1377
1406
|
SkyDockService.dockRef = undefined;
|
1378
1407
|
};
|
1379
1408
|
SkyDockService._items = [];
|
1380
|
-
SkyDockService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1381
|
-
SkyDockService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
1382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1409
|
+
SkyDockService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockService, deps: [{ token: SkyDynamicComponentService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1410
|
+
SkyDockService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockService, providedIn: 'any' });
|
1411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDockService, decorators: [{
|
1383
1412
|
type: Injectable,
|
1384
1413
|
args: [{
|
1385
1414
|
// Must be 'any' so that the dock component is created in the context of its module's injector.
|
@@ -1396,10 +1425,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
1396
1425
|
*/
|
1397
1426
|
class SkyDynamicComponentModule {
|
1398
1427
|
}
|
1399
|
-
SkyDynamicComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1400
|
-
SkyDynamicComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
1401
|
-
SkyDynamicComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
1402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1428
|
+
SkyDynamicComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDynamicComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1429
|
+
SkyDynamicComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyDynamicComponentModule });
|
1430
|
+
SkyDynamicComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDynamicComponentModule });
|
1431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyDynamicComponentModule, decorators: [{
|
1403
1432
|
type: NgModule,
|
1404
1433
|
args: [{}]
|
1405
1434
|
}] });
|
@@ -1411,9 +1440,9 @@ class SkyAppFormat {
|
|
1411
1440
|
});
|
1412
1441
|
}
|
1413
1442
|
}
|
1414
|
-
SkyAppFormat.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1415
|
-
SkyAppFormat.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
1416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1443
|
+
SkyAppFormat.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAppFormat, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1444
|
+
SkyAppFormat.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAppFormat, providedIn: 'root' });
|
1445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAppFormat, decorators: [{
|
1417
1446
|
type: Injectable,
|
1418
1447
|
args: [{
|
1419
1448
|
providedIn: 'root',
|
@@ -1433,9 +1462,9 @@ class SkyIdService {
|
|
1433
1462
|
return `sky-id-gen__${new Date().getTime()}__${idIndex}`;
|
1434
1463
|
}
|
1435
1464
|
}
|
1436
|
-
SkyIdService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1437
|
-
SkyIdService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
1438
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1465
|
+
SkyIdService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyIdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1466
|
+
SkyIdService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyIdService, providedIn: 'root' });
|
1467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyIdService, decorators: [{
|
1439
1468
|
type: Injectable,
|
1440
1469
|
args: [{
|
1441
1470
|
providedIn: 'root',
|
@@ -1449,6 +1478,9 @@ var _SkyIdDirective__id;
|
|
1449
1478
|
* variable, then use its `id` property.
|
1450
1479
|
*/
|
1451
1480
|
class SkyIdDirective {
|
1481
|
+
get id() {
|
1482
|
+
return __classPrivateFieldGet(this, _SkyIdDirective__id, "f");
|
1483
|
+
}
|
1452
1484
|
constructor(elRef, renderer, idSvc) {
|
1453
1485
|
_SkyIdDirective__id.set(this, void 0);
|
1454
1486
|
// Generate and apply the ID before the template is rendered
|
@@ -1457,14 +1489,11 @@ class SkyIdDirective {
|
|
1457
1489
|
renderer.setAttribute(elRef.nativeElement, 'id', id);
|
1458
1490
|
__classPrivateFieldSet(this, _SkyIdDirective__id, id, "f");
|
1459
1491
|
}
|
1460
|
-
get id() {
|
1461
|
-
return __classPrivateFieldGet(this, _SkyIdDirective__id, "f");
|
1462
|
-
}
|
1463
1492
|
}
|
1464
1493
|
_SkyIdDirective__id = new WeakMap();
|
1465
|
-
SkyIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1466
|
-
SkyIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1
|
1467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1494
|
+
SkyIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyIdDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SkyIdService }], target: i0.ɵɵFactoryTarget.Directive });
|
1495
|
+
SkyIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: SkyIdDirective, selector: "[skyId]", exportAs: ["skyId"], ngImport: i0 });
|
1496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyIdDirective, decorators: [{
|
1468
1497
|
type: Directive,
|
1469
1498
|
args: [{
|
1470
1499
|
selector: '[skyId]',
|
@@ -1474,10 +1503,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
1474
1503
|
|
1475
1504
|
class SkyIdModule {
|
1476
1505
|
}
|
1477
|
-
SkyIdModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1478
|
-
SkyIdModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
1479
|
-
SkyIdModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
1480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1506
|
+
SkyIdModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyIdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1507
|
+
SkyIdModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyIdModule, declarations: [SkyIdDirective], exports: [SkyIdDirective] });
|
1508
|
+
SkyIdModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyIdModule });
|
1509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyIdModule, decorators: [{
|
1481
1510
|
type: NgModule,
|
1482
1511
|
args: [{
|
1483
1512
|
declarations: [SkyIdDirective],
|
@@ -1485,16 +1514,92 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
1485
1514
|
}]
|
1486
1515
|
}] });
|
1487
1516
|
|
1517
|
+
var _SkyLiveAnnouncerService_instances, _SkyLiveAnnouncerService_announcerElement, _SkyLiveAnnouncerService_document, _SkyLiveAnnouncerService_idService, _SkyLiveAnnouncerService_createLiveElement;
|
1518
|
+
/**
|
1519
|
+
* Allows for announcing messages to screen reader users through the use of a common `aria-live` element.
|
1520
|
+
* @internal
|
1521
|
+
*/
|
1522
|
+
class SkyLiveAnnouncerService {
|
1523
|
+
constructor() {
|
1524
|
+
_SkyLiveAnnouncerService_instances.add(this);
|
1525
|
+
this.announcerElementChanged = new ReplaySubject(1);
|
1526
|
+
_SkyLiveAnnouncerService_announcerElement.set(this, void 0);
|
1527
|
+
_SkyLiveAnnouncerService_document.set(this, inject(DOCUMENT));
|
1528
|
+
_SkyLiveAnnouncerService_idService.set(this, inject(SkyIdService));
|
1529
|
+
__classPrivateFieldSet(this, _SkyLiveAnnouncerService_announcerElement, __classPrivateFieldGet(this, _SkyLiveAnnouncerService_instances, "m", _SkyLiveAnnouncerService_createLiveElement).call(this), "f");
|
1530
|
+
this.announcerElementChanged.next(__classPrivateFieldGet(this, _SkyLiveAnnouncerService_announcerElement, "f"));
|
1531
|
+
}
|
1532
|
+
/**
|
1533
|
+
* Announces a message to screen readers.
|
1534
|
+
* @param message Message to be announced to the screen reader.
|
1535
|
+
* @param args Options for the announcement of the message.
|
1536
|
+
*/
|
1537
|
+
announce(message, args) {
|
1538
|
+
var _a;
|
1539
|
+
/* safety-check */
|
1540
|
+
/* istanbul ignore if */
|
1541
|
+
if (!__classPrivateFieldGet(this, _SkyLiveAnnouncerService_announcerElement, "f")) {
|
1542
|
+
__classPrivateFieldSet(this, _SkyLiveAnnouncerService_announcerElement, __classPrivateFieldGet(this, _SkyLiveAnnouncerService_instances, "m", _SkyLiveAnnouncerService_createLiveElement).call(this), "f");
|
1543
|
+
this.announcerElementChanged.next(__classPrivateFieldGet(this, _SkyLiveAnnouncerService_announcerElement, "f"));
|
1544
|
+
}
|
1545
|
+
const politeness = (_a = args === null || args === void 0 ? void 0 : args.politeness) !== null && _a !== void 0 ? _a : 'polite';
|
1546
|
+
this.clear();
|
1547
|
+
__classPrivateFieldGet(this, _SkyLiveAnnouncerService_announcerElement, "f").setAttribute('aria-live', politeness);
|
1548
|
+
__classPrivateFieldGet(this, _SkyLiveAnnouncerService_announcerElement, "f").textContent = message;
|
1549
|
+
}
|
1550
|
+
/**
|
1551
|
+
* Clears the current text from the announcer element. Can be used to prevent
|
1552
|
+
* screen readers from reading the text out again while the user is going
|
1553
|
+
* through the page landmarks.
|
1554
|
+
*/
|
1555
|
+
clear() {
|
1556
|
+
if (__classPrivateFieldGet(this, _SkyLiveAnnouncerService_announcerElement, "f")) {
|
1557
|
+
__classPrivateFieldGet(this, _SkyLiveAnnouncerService_announcerElement, "f").textContent = '';
|
1558
|
+
}
|
1559
|
+
}
|
1560
|
+
/**
|
1561
|
+
* @internal
|
1562
|
+
*/
|
1563
|
+
ngOnDestroy() {
|
1564
|
+
var _a;
|
1565
|
+
(_a = __classPrivateFieldGet(this, _SkyLiveAnnouncerService_announcerElement, "f")) === null || _a === void 0 ? void 0 : _a.remove();
|
1566
|
+
__classPrivateFieldSet(this, _SkyLiveAnnouncerService_announcerElement, undefined, "f");
|
1567
|
+
this.announcerElementChanged.next(undefined);
|
1568
|
+
}
|
1569
|
+
}
|
1570
|
+
_SkyLiveAnnouncerService_announcerElement = new WeakMap(), _SkyLiveAnnouncerService_document = new WeakMap(), _SkyLiveAnnouncerService_idService = new WeakMap(), _SkyLiveAnnouncerService_instances = new WeakSet(), _SkyLiveAnnouncerService_createLiveElement = function _SkyLiveAnnouncerService_createLiveElement() {
|
1571
|
+
const elementClass = 'sky-live-announcer-element';
|
1572
|
+
const previousElements = __classPrivateFieldGet(this, _SkyLiveAnnouncerService_document, "f").getElementsByClassName(elementClass);
|
1573
|
+
const liveEl = __classPrivateFieldGet(this, _SkyLiveAnnouncerService_document, "f").createElement('div');
|
1574
|
+
// Remove any old containers. This can happen when coming in from a server-side-rendered page.
|
1575
|
+
for (let i = 0; i < previousElements.length; i++) {
|
1576
|
+
previousElements[i].remove();
|
1577
|
+
}
|
1578
|
+
liveEl.classList.add(elementClass);
|
1579
|
+
liveEl.classList.add('sky-screen-reader-only');
|
1580
|
+
liveEl.setAttribute('aria-atomic', 'true');
|
1581
|
+
liveEl.setAttribute('aria-live', 'polite');
|
1582
|
+
liveEl.id = __classPrivateFieldGet(this, _SkyLiveAnnouncerService_idService, "f").generateId();
|
1583
|
+
__classPrivateFieldGet(this, _SkyLiveAnnouncerService_document, "f").body.appendChild(liveEl);
|
1584
|
+
return liveEl;
|
1585
|
+
};
|
1586
|
+
SkyLiveAnnouncerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyLiveAnnouncerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1587
|
+
SkyLiveAnnouncerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyLiveAnnouncerService, providedIn: 'root' });
|
1588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyLiveAnnouncerService, decorators: [{
|
1589
|
+
type: Injectable,
|
1590
|
+
args: [{ providedIn: 'root' }]
|
1591
|
+
}], ctorParameters: function () { return []; } });
|
1592
|
+
|
1488
1593
|
/**
|
1489
1594
|
* @deprecated The `SkyLogService` no longer needs the `SkyLogModule`.
|
1490
1595
|
* The `SkyLogModule` can be removed from your project.
|
1491
1596
|
*/
|
1492
1597
|
class SkyLogModule {
|
1493
1598
|
}
|
1494
|
-
SkyLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1495
|
-
SkyLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
1496
|
-
SkyLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
1497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1599
|
+
SkyLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1600
|
+
SkyLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyLogModule });
|
1601
|
+
SkyLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyLogModule });
|
1602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyLogModule, decorators: [{
|
1498
1603
|
type: NgModule,
|
1499
1604
|
args: [{}]
|
1500
1605
|
}] });
|
@@ -1504,9 +1609,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
1504
1609
|
*/
|
1505
1610
|
const SKY_LOG_LEVEL = new InjectionToken('SkyLogLevel');
|
1506
1611
|
|
1507
|
-
var _SkyLogService_instances, _SkyLogService_applicationLogLevel, _SkyLogService_formatter,
|
1612
|
+
var _SkyLogService_instances, _SkyLogService_applicationLogLevel, _SkyLogService_formatter, _SkyLogService_convertStringToCode, _SkyLogService_canLog, _SkyLogService_logBasedOnLevel, _SkyLogService_logWithParams, _SkyLogService_buildMessageKey;
|
1613
|
+
const previousWarnings = new Set();
|
1508
1614
|
/**
|
1509
|
-
* Logs information to the console based on the application's log level as
|
1615
|
+
* Logs information to the console based on the application's log level as
|
1616
|
+
* provided by the `SKY_LOG_LEVEL` injection token. If no token is provided,
|
1617
|
+
* only `error` logs will be shown.
|
1510
1618
|
* @internal
|
1511
1619
|
*/
|
1512
1620
|
class SkyLogService {
|
@@ -1514,12 +1622,20 @@ class SkyLogService {
|
|
1514
1622
|
_SkyLogService_instances.add(this);
|
1515
1623
|
_SkyLogService_applicationLogLevel.set(this, void 0);
|
1516
1624
|
_SkyLogService_formatter.set(this, void 0);
|
1517
|
-
_SkyLogService_previousWarnings.set(this, new Set());
|
1518
1625
|
__classPrivateFieldSet(this, _SkyLogService_formatter, formatter, "f");
|
1519
1626
|
__classPrivateFieldSet(this, _SkyLogService_applicationLogLevel, applicationLogLevel !== null && applicationLogLevel !== void 0 ? applicationLogLevel : 3 /* SkyLogLevel.Error */, "f");
|
1520
1627
|
}
|
1521
1628
|
/**
|
1522
|
-
*
|
1629
|
+
* Clears previously-logged messages. Primarily used for unit
|
1630
|
+
* testing this service.
|
1631
|
+
*/
|
1632
|
+
static clearPreviousLogs() {
|
1633
|
+
previousWarnings.clear();
|
1634
|
+
}
|
1635
|
+
/**
|
1636
|
+
* Logs a deprecation warning for a class, property, function, etc. This will
|
1637
|
+
* be logged as a console warning unless a different log level is given in the
|
1638
|
+
* `args` parameter.
|
1523
1639
|
* @param name The name of the deprecated class, property, function, etc.
|
1524
1640
|
* @param args Information about the deprecation and replacement recommendations.
|
1525
1641
|
* @returns
|
@@ -1584,14 +1700,14 @@ class SkyLogService {
|
|
1584
1700
|
const messageKey = __classPrivateFieldGet(this, _SkyLogService_instances, "m", _SkyLogService_buildMessageKey).call(this, message, params);
|
1585
1701
|
// Only log each warning once per application instance to avoid drowning out other
|
1586
1702
|
// important messages in the console.
|
1587
|
-
if (!
|
1703
|
+
if (!previousWarnings.has(message)) {
|
1588
1704
|
__classPrivateFieldGet(this, _SkyLogService_instances, "m", _SkyLogService_logWithParams).call(this, 'warn', message, params);
|
1589
|
-
|
1705
|
+
previousWarnings.add(messageKey);
|
1590
1706
|
}
|
1591
1707
|
}
|
1592
1708
|
}
|
1593
1709
|
}
|
1594
|
-
_SkyLogService_applicationLogLevel = new WeakMap(), _SkyLogService_formatter = new WeakMap(),
|
1710
|
+
_SkyLogService_applicationLogLevel = new WeakMap(), _SkyLogService_formatter = new WeakMap(), _SkyLogService_instances = new WeakSet(), _SkyLogService_convertStringToCode = function _SkyLogService_convertStringToCode(typeString) {
|
1595
1711
|
if (typeString.charAt(0) !== '`' && typeString.charAt(-1) !== '`') {
|
1596
1712
|
typeString = '`' + typeString + '`';
|
1597
1713
|
}
|
@@ -1624,9 +1740,9 @@ _SkyLogService_applicationLogLevel = new WeakMap(), _SkyLogService_formatter = n
|
|
1624
1740
|
}
|
1625
1741
|
return key;
|
1626
1742
|
};
|
1627
|
-
SkyLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1628
|
-
SkyLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
1629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1743
|
+
SkyLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyLogService, deps: [{ token: SkyAppFormat }, { token: SKY_LOG_LEVEL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1744
|
+
SkyLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyLogService, providedIn: 'root' });
|
1745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyLogService, decorators: [{
|
1630
1746
|
type: Injectable,
|
1631
1747
|
args: [{
|
1632
1748
|
providedIn: 'root',
|
@@ -1646,10 +1762,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
1646
1762
|
*/
|
1647
1763
|
class SkyMediaQueryModule {
|
1648
1764
|
}
|
1649
|
-
SkyMediaQueryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1650
|
-
SkyMediaQueryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
1651
|
-
SkyMediaQueryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
1652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1765
|
+
SkyMediaQueryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyMediaQueryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1766
|
+
SkyMediaQueryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyMediaQueryModule });
|
1767
|
+
SkyMediaQueryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyMediaQueryModule });
|
1768
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyMediaQueryModule, decorators: [{
|
1653
1769
|
type: NgModule,
|
1654
1770
|
args: [{}]
|
1655
1771
|
}] });
|
@@ -1657,6 +1773,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
1657
1773
|
var _SkyMediaQueryService_instances, _SkyMediaQueryService_currentSubject, _SkyMediaQueryService_currentBreakpoint, _SkyMediaQueryService_breakpoints, _SkyMediaQueryService_mediaQueries, _SkyMediaQueryService_zone, _SkyMediaQueryService_addListeners, _SkyMediaQueryService_removeListeners, _SkyMediaQueryService_notifyBreakpointChange;
|
1658
1774
|
const DEFAULT_BREAKPOINT$1 = SkyMediaBreakpoints.md;
|
1659
1775
|
class SkyMediaQueryService {
|
1776
|
+
/**
|
1777
|
+
* Returns the current breakpoint.
|
1778
|
+
*/
|
1779
|
+
get current() {
|
1780
|
+
return __classPrivateFieldGet(this, _SkyMediaQueryService_currentBreakpoint, "f");
|
1781
|
+
}
|
1660
1782
|
constructor(zone) {
|
1661
1783
|
_SkyMediaQueryService_instances.add(this);
|
1662
1784
|
_SkyMediaQueryService_currentSubject.set(this, new BehaviorSubject(DEFAULT_BREAKPOINT$1));
|
@@ -1684,12 +1806,6 @@ class SkyMediaQueryService {
|
|
1684
1806
|
__classPrivateFieldSet(this, _SkyMediaQueryService_zone, zone, "f");
|
1685
1807
|
__classPrivateFieldGet(this, _SkyMediaQueryService_instances, "m", _SkyMediaQueryService_addListeners).call(this);
|
1686
1808
|
}
|
1687
|
-
/**
|
1688
|
-
* Returns the current breakpoint.
|
1689
|
-
*/
|
1690
|
-
get current() {
|
1691
|
-
return __classPrivateFieldGet(this, _SkyMediaQueryService_currentBreakpoint, "f");
|
1692
|
-
}
|
1693
1809
|
ngOnDestroy() {
|
1694
1810
|
__classPrivateFieldGet(this, _SkyMediaQueryService_instances, "m", _SkyMediaQueryService_removeListeners).call(this);
|
1695
1811
|
__classPrivateFieldGet(this, _SkyMediaQueryService_currentSubject, "f").complete();
|
@@ -1764,9 +1880,9 @@ SkyMediaQueryService.md = '(min-width: 992px) and (max-width: 1199px)';
|
|
1764
1880
|
* @default "(min-width: 1200px)"
|
1765
1881
|
*/
|
1766
1882
|
SkyMediaQueryService.lg = '(min-width: 1200px)';
|
1767
|
-
SkyMediaQueryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1768
|
-
SkyMediaQueryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
1769
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1883
|
+
SkyMediaQueryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyMediaQueryService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
1884
|
+
SkyMediaQueryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyMediaQueryService, providedIn: 'root' });
|
1885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyMediaQueryService, decorators: [{
|
1770
1886
|
type: Injectable,
|
1771
1887
|
args: [{
|
1772
1888
|
providedIn: 'root',
|
@@ -1797,16 +1913,16 @@ class SkyCoreResourcesProvider {
|
|
1797
1913
|
*/
|
1798
1914
|
class SkyCoreResourcesModule {
|
1799
1915
|
}
|
1800
|
-
SkyCoreResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
1801
|
-
SkyCoreResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
1802
|
-
SkyCoreResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
1916
|
+
SkyCoreResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1917
|
+
SkyCoreResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreResourcesModule, exports: [SkyI18nModule] });
|
1918
|
+
SkyCoreResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreResourcesModule, providers: [
|
1803
1919
|
{
|
1804
1920
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
1805
1921
|
useClass: SkyCoreResourcesProvider,
|
1806
1922
|
multi: true,
|
1807
1923
|
},
|
1808
1924
|
], imports: [SkyI18nModule] });
|
1809
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
1925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyCoreResourcesModule, decorators: [{
|
1810
1926
|
type: NgModule,
|
1811
1927
|
args: [{
|
1812
1928
|
exports: [SkyI18nModule],
|
@@ -1823,6 +1939,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
1823
1939
|
/**
|
1824
1940
|
* Provides arguments for the number to format.
|
1825
1941
|
* @deprecated Use the `SkyNumericOptions` interface instead.
|
1942
|
+
* @internal
|
1826
1943
|
*/
|
1827
1944
|
class NumericOptions {
|
1828
1945
|
constructor() {
|
@@ -1832,6 +1949,14 @@ class NumericOptions {
|
|
1832
1949
|
this.iso = 'USD';
|
1833
1950
|
this.truncate = true;
|
1834
1951
|
this.truncateAfter = 1000;
|
1952
|
+
const logService = new SkyLogService(new SkyAppFormat());
|
1953
|
+
logService
|
1954
|
+
.deprecated('NumericOptions', {
|
1955
|
+
deprecationMajorVersion: 7,
|
1956
|
+
moreInfoUrl: 'https://developer.blackbaud.com/skyux/components/numeric',
|
1957
|
+
replacementRecommendation: 'Use the `SkyNumericOptions` interface instead.',
|
1958
|
+
})
|
1959
|
+
.then();
|
1835
1960
|
}
|
1836
1961
|
}
|
1837
1962
|
|
@@ -1935,9 +2060,10 @@ class SkyNumericService {
|
|
1935
2060
|
if (isNaN(value) || value === null) {
|
1936
2061
|
return '';
|
1937
2062
|
}
|
2063
|
+
const numericOptions = Object.assign({ digits: 0, format: 'number', currencySign: 'standard', iso: 'USD', truncateAfter: 1000 }, options);
|
1938
2064
|
const decimalPlaceRegExp = /\.0+$|(\.[0-9]*[1-9])0+$/;
|
1939
|
-
const locale =
|
1940
|
-
const digits =
|
2065
|
+
const locale = numericOptions.locale || this.currentLocale;
|
2066
|
+
const digits = numericOptions.digits || 0;
|
1941
2067
|
// Get the symbol for the number after rounding, since rounding could push the number
|
1942
2068
|
// into a different symbol range.
|
1943
2069
|
let roundedNumber = __classPrivateFieldGet(this, _SkyNumericService_instances, "m", _SkyNumericService_roundNumber).call(this, value, digits);
|
@@ -1945,9 +2071,9 @@ class SkyNumericService {
|
|
1945
2071
|
let suffix = '';
|
1946
2072
|
for (let i = 0; i < __classPrivateFieldGet(this, _SkyNumericService_symbolIndex, "f").length; i++) {
|
1947
2073
|
let symbol = __classPrivateFieldGet(this, _SkyNumericService_symbolIndex, "f")[i];
|
1948
|
-
if (
|
1949
|
-
|
1950
|
-
roundedNumberAbs >=
|
2074
|
+
if (numericOptions.truncate &&
|
2075
|
+
numericOptions.truncateAfter !== undefined &&
|
2076
|
+
roundedNumberAbs >= numericOptions.truncateAfter &&
|
1951
2077
|
roundedNumberAbs >= symbol.value) {
|
1952
2078
|
roundedNumber = __classPrivateFieldGet(this, _SkyNumericService_instances, "m", _SkyNumericService_roundNumber).call(this, value / symbol.value, digits);
|
1953
2079
|
if (Math.abs(roundedNumber) === 1000 && i > 0) {
|
@@ -1964,7 +2090,7 @@ class SkyNumericService {
|
|
1964
2090
|
let digitsFormatted;
|
1965
2091
|
let isDecimal = false;
|
1966
2092
|
// Checks the string entered for format. Using toLowerCase to ignore case.
|
1967
|
-
switch ((_a =
|
2093
|
+
switch ((_a = numericOptions.format) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
|
1968
2094
|
// In a case where a decimal value was not shortened and
|
1969
2095
|
// the digit input is 2 or higher, it forces 2 digits.
|
1970
2096
|
// For example, this prevents a value like $15.50 from displaying as $15.5.
|
@@ -1972,8 +2098,8 @@ class SkyNumericService {
|
|
1972
2098
|
// three decimal digits.
|
1973
2099
|
case 'currency':
|
1974
2100
|
isDecimal = value % 1 !== 0;
|
1975
|
-
if (
|
1976
|
-
digitsFormatted = `1.${
|
2101
|
+
if (numericOptions.minDigits) {
|
2102
|
+
digitsFormatted = `1.${numericOptions.minDigits}-${digits}`;
|
1977
2103
|
}
|
1978
2104
|
else if (isDecimal && digits >= 2) {
|
1979
2105
|
digitsFormatted = `1.2-${digits}`;
|
@@ -1981,12 +2107,12 @@ class SkyNumericService {
|
|
1981
2107
|
else {
|
1982
2108
|
digitsFormatted = `1.0-${digits}`;
|
1983
2109
|
}
|
1984
|
-
output = SkyNumberFormatUtility.formatNumber(locale, parseFloat(output), SkyIntlNumberFormatStyle.Currency, digitsFormatted,
|
2110
|
+
output = SkyNumberFormatUtility.formatNumber(locale, parseFloat(output), SkyIntlNumberFormatStyle.Currency, digitsFormatted, numericOptions.iso,
|
1985
2111
|
// Angular 5+ needs a string for this parameter, but Angular 4 needs a boolean.
|
1986
2112
|
// To support both versions we can supply 'symbol' which will evaluate truthy for Angular 4
|
1987
2113
|
// and the appropriate string value for Angular 5+.
|
1988
2114
|
// See: https://angular.io/api/common/CurrencyPipe#parameters
|
1989
|
-
'symbol',
|
2115
|
+
'symbol', numericOptions.currencySign);
|
1990
2116
|
// ^^^^^^ Result can't be null since the sanitized input is always a number.
|
1991
2117
|
break;
|
1992
2118
|
// The following is a catch-all to ensure that if
|
@@ -1995,10 +2121,10 @@ class SkyNumericService {
|
|
1995
2121
|
default:
|
1996
2122
|
// Ensures localization of the number to ensure comma and
|
1997
2123
|
// decimal separator
|
1998
|
-
if (
|
1999
|
-
digitsFormatted = `1.${
|
2124
|
+
if (numericOptions.minDigits) {
|
2125
|
+
digitsFormatted = `1.${numericOptions.minDigits}-${digits}`;
|
2000
2126
|
}
|
2001
|
-
else if (
|
2127
|
+
else if (numericOptions.truncate) {
|
2002
2128
|
digitsFormatted = `1.0-${digits}`;
|
2003
2129
|
}
|
2004
2130
|
else {
|
@@ -2008,7 +2134,7 @@ class SkyNumericService {
|
|
2008
2134
|
// ^^^^^^ Result can't be null since the sanitized input is always a number.
|
2009
2135
|
break;
|
2010
2136
|
}
|
2011
|
-
if (
|
2137
|
+
if (numericOptions.truncate) {
|
2012
2138
|
output = __classPrivateFieldGet(this, _SkyNumericService_instances, "m", _SkyNumericService_replaceShortenSymbol).call(this, output);
|
2013
2139
|
}
|
2014
2140
|
return output;
|
@@ -2059,9 +2185,9 @@ _SkyNumericService_resourcesSvc = new WeakMap(), _SkyNumericService_symbolIndex
|
|
2059
2185
|
// TODO: Need to implement the async `getString` method in a breaking change.
|
2060
2186
|
return __classPrivateFieldGet(this, _SkyNumericService_resourcesSvc, "f").getStringForLocale({ locale: 'en_US' }, key);
|
2061
2187
|
};
|
2062
|
-
SkyNumericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2063
|
-
SkyNumericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
2064
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2188
|
+
SkyNumericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyNumericService, deps: [{ token: i1.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2189
|
+
SkyNumericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyNumericService, providedIn: 'any' });
|
2190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyNumericService, decorators: [{
|
2065
2191
|
type: Injectable,
|
2066
2192
|
args: [{
|
2067
2193
|
providedIn: 'any',
|
@@ -2134,9 +2260,9 @@ class SkyNumericPipe {
|
|
2134
2260
|
}
|
2135
2261
|
}
|
2136
2262
|
_SkyNumericPipe_cacheKey = new WeakMap(), _SkyNumericPipe_changeDetector = new WeakMap(), _SkyNumericPipe_formattedValue = new WeakMap(), _SkyNumericPipe_ngUnsubscribe = new WeakMap(), _SkyNumericPipe_numericSvc = new WeakMap(), _SkyNumericPipe_providerLocale = new WeakMap();
|
2137
|
-
SkyNumericPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2138
|
-
SkyNumericPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1
|
2139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2263
|
+
SkyNumericPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyNumericPipe, deps: [{ token: i1.SkyAppLocaleProvider }, { token: SkyNumericService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
|
2264
|
+
SkyNumericPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyNumericPipe, name: "skyNumeric", pure: false });
|
2265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyNumericPipe, decorators: [{
|
2140
2266
|
type: Pipe,
|
2141
2267
|
args: [{
|
2142
2268
|
name: 'skyNumeric',
|
@@ -2146,10 +2272,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
2146
2272
|
|
2147
2273
|
class SkyNumericModule {
|
2148
2274
|
}
|
2149
|
-
SkyNumericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2150
|
-
SkyNumericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
2151
|
-
SkyNumericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
2152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2275
|
+
SkyNumericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyNumericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2276
|
+
SkyNumericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyNumericModule, declarations: [SkyNumericPipe], imports: [SkyI18nModule, SkyCoreResourcesModule], exports: [SkyNumericPipe] });
|
2277
|
+
SkyNumericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyNumericModule, providers: [SkyNumericPipe], imports: [SkyI18nModule, SkyCoreResourcesModule] });
|
2278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyNumericModule, decorators: [{
|
2153
2279
|
type: NgModule,
|
2154
2280
|
args: [{
|
2155
2281
|
declarations: [SkyNumericPipe],
|
@@ -2165,6 +2291,18 @@ var _SkyOverlayInstance_backdropClick, _SkyOverlayInstance_backdropClickObs, _Sk
|
|
2165
2291
|
* and access any public members on the appended content component instance.
|
2166
2292
|
*/
|
2167
2293
|
class SkyOverlayInstance {
|
2294
|
+
/**
|
2295
|
+
* Emits when the overlay is clicked (but not its content).
|
2296
|
+
*/
|
2297
|
+
get backdropClick() {
|
2298
|
+
return __classPrivateFieldGet(this, _SkyOverlayInstance_backdropClickObs, "f");
|
2299
|
+
}
|
2300
|
+
/**
|
2301
|
+
* Emits after the overlay is closed.
|
2302
|
+
*/
|
2303
|
+
get closed() {
|
2304
|
+
return __classPrivateFieldGet(this, _SkyOverlayInstance_closedObs, "f");
|
2305
|
+
}
|
2168
2306
|
constructor(
|
2169
2307
|
/**
|
2170
2308
|
* The configuration for the overlay.
|
@@ -2190,18 +2328,6 @@ class SkyOverlayInstance {
|
|
2190
2328
|
__classPrivateFieldSet(this, _SkyOverlayInstance_backdropClickObs, __classPrivateFieldGet(this, _SkyOverlayInstance_backdropClick, "f").asObservable(), "f");
|
2191
2329
|
__classPrivateFieldSet(this, _SkyOverlayInstance_closedObs, __classPrivateFieldGet(this, _SkyOverlayInstance_closed, "f").asObservable(), "f");
|
2192
2330
|
}
|
2193
|
-
/**
|
2194
|
-
* Emits when the overlay is clicked (but not its content).
|
2195
|
-
*/
|
2196
|
-
get backdropClick() {
|
2197
|
-
return __classPrivateFieldGet(this, _SkyOverlayInstance_backdropClickObs, "f");
|
2198
|
-
}
|
2199
|
-
/**
|
2200
|
-
* Emits after the overlay is closed.
|
2201
|
-
*/
|
2202
|
-
get closed() {
|
2203
|
-
return __classPrivateFieldGet(this, _SkyOverlayInstance_closedObs, "f");
|
2204
|
-
}
|
2205
2331
|
/**
|
2206
2332
|
* Creates and attaches a component to the overlay.
|
2207
2333
|
* @param component The component to attach.
|
@@ -2238,6 +2364,7 @@ class SkyOverlayContext {
|
|
2238
2364
|
}
|
2239
2365
|
|
2240
2366
|
var _SkyOverlayComponent_instances, _SkyOverlayComponent_backdropClick, _SkyOverlayComponent_backdropClickObs, _SkyOverlayComponent_changeDetector, _SkyOverlayComponent_closed, _SkyOverlayComponent_closedObs, _SkyOverlayComponent_context, _SkyOverlayComponent_coreAdapter, _SkyOverlayComponent_injector, _SkyOverlayComponent_ngUnsubscribe, _SkyOverlayComponent_router, _SkyOverlayComponent_routerSubscription, _SkyOverlayComponent_applyConfig, _SkyOverlayComponent_addBackdropClickListener, _SkyOverlayComponent_addRouteListener, _SkyOverlayComponent_removeRouteListener;
|
2367
|
+
const POSITION_DEFAULT = 'fixed';
|
2241
2368
|
/**
|
2242
2369
|
* Omnibar is 1000.
|
2243
2370
|
* See: https://github.com/blackbaud/auth-client/blob/master/src/omnibar/omnibar.ts#L139
|
@@ -2256,6 +2383,12 @@ let uniqueZIndex = 5000;
|
|
2256
2383
|
* @internal
|
2257
2384
|
*/
|
2258
2385
|
class SkyOverlayComponent {
|
2386
|
+
get backdropClick() {
|
2387
|
+
return __classPrivateFieldGet(this, _SkyOverlayComponent_backdropClickObs, "f");
|
2388
|
+
}
|
2389
|
+
get closed() {
|
2390
|
+
return __classPrivateFieldGet(this, _SkyOverlayComponent_closedObs, "f");
|
2391
|
+
}
|
2259
2392
|
constructor(changeDetector, injector, coreAdapter, context, idSvc, router) {
|
2260
2393
|
_SkyOverlayComponent_instances.add(this);
|
2261
2394
|
this.wrapperClass = '';
|
@@ -2263,6 +2396,7 @@ class SkyOverlayComponent {
|
|
2263
2396
|
this.showBackdrop = false;
|
2264
2397
|
this.zIndex = `${++uniqueZIndex}`;
|
2265
2398
|
this.clipPath$ = new ReplaySubject(1);
|
2399
|
+
this.position = POSITION_DEFAULT;
|
2266
2400
|
_SkyOverlayComponent_backdropClick.set(this, void 0);
|
2267
2401
|
_SkyOverlayComponent_backdropClickObs.set(this, void 0);
|
2268
2402
|
_SkyOverlayComponent_changeDetector.set(this, void 0);
|
@@ -2285,12 +2419,6 @@ class SkyOverlayComponent {
|
|
2285
2419
|
__classPrivateFieldSet(this, _SkyOverlayComponent_backdropClickObs, __classPrivateFieldGet(this, _SkyOverlayComponent_backdropClick, "f").asObservable(), "f");
|
2286
2420
|
__classPrivateFieldSet(this, _SkyOverlayComponent_closedObs, __classPrivateFieldGet(this, _SkyOverlayComponent_closed, "f").asObservable(), "f");
|
2287
2421
|
}
|
2288
|
-
get backdropClick() {
|
2289
|
-
return __classPrivateFieldGet(this, _SkyOverlayComponent_backdropClickObs, "f");
|
2290
|
-
}
|
2291
|
-
get closed() {
|
2292
|
-
return __classPrivateFieldGet(this, _SkyOverlayComponent_closedObs, "f");
|
2293
|
-
}
|
2294
2422
|
ngOnInit() {
|
2295
2423
|
__classPrivateFieldGet(this, _SkyOverlayComponent_instances, "m", _SkyOverlayComponent_applyConfig).call(this, __classPrivateFieldGet(this, _SkyOverlayComponent_context, "f").config);
|
2296
2424
|
setTimeout(() => {
|
@@ -2351,6 +2479,7 @@ _SkyOverlayComponent_backdropClick = new WeakMap(), _SkyOverlayComponent_backdro
|
|
2351
2479
|
this.wrapperClass = config.wrapperClass || '';
|
2352
2480
|
this.showBackdrop = !!config.showBackdrop;
|
2353
2481
|
this.enablePointerEvents = !!config.enablePointerEvents;
|
2482
|
+
this.position = config.position || POSITION_DEFAULT;
|
2354
2483
|
__classPrivateFieldGet(this, _SkyOverlayComponent_changeDetector, "f").markForCheck();
|
2355
2484
|
}, _SkyOverlayComponent_addBackdropClickListener = function _SkyOverlayComponent_addBackdropClickListener() {
|
2356
2485
|
fromEvent(window.document, 'click')
|
@@ -2384,11 +2513,11 @@ _SkyOverlayComponent_backdropClick = new WeakMap(), _SkyOverlayComponent_backdro
|
|
2384
2513
|
__classPrivateFieldSet(this, _SkyOverlayComponent_routerSubscription, undefined, "f");
|
2385
2514
|
}
|
2386
2515
|
};
|
2387
|
-
SkyOverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2388
|
-
SkyOverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1
|
2389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2516
|
+
SkyOverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Injector }, { token: SkyCoreAdapterService }, { token: SkyOverlayContext }, { token: SkyIdService }, { token: i4.Router, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
2517
|
+
SkyOverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: SkyOverlayComponent, selector: "sky-overlay", host: { properties: { "id": "this.id" } }, 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]=\"'sky-overlay-position-' + position + ' ' + wrapperClass\"\n [style.z-index]=\"zIndex\"\n [style.clip-path]=\"clipPath$ | async\"\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{inset:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-position-absolute{position:absolute}.sky-overlay-position-fixed{position:fixed}.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);inset:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through,.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"], dependencies: [{ kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
2518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayComponent, decorators: [{
|
2390
2519
|
type: Component,
|
2391
|
-
args: [{ selector: 'sky-overlay', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n [class]=\"wrapperClass\"\n [style.z-index]=\"zIndex\"\n [style.clip-path]=\"clipPath$ | async\"\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{
|
2520
|
+
args: [{ selector: 'sky-overlay', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n [class]=\"'sky-overlay-position-' + position + ' ' + wrapperClass\"\n [style.z-index]=\"zIndex\"\n [style.clip-path]=\"clipPath$ | async\"\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{inset:0;width:100%;height:100%;display:flex;pointer-events:auto}.sky-overlay-position-absolute{position:absolute}.sky-overlay-position-fixed{position:fixed}.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);inset:0;width:100%;height:100%;position:absolute}.enable-pointer-events-pass-through,.enable-pointer-events-pass-through .sky-overlay-backdrop{pointer-events:none}.enable-pointer-events-pass-through .sky-overlay-content{pointer-events:auto}\n"] }]
|
2392
2521
|
}], ctorParameters: function () {
|
2393
2522
|
return [{ type: i0.ChangeDetectorRef }, { type: i0.Injector }, { type: SkyCoreAdapterService }, { type: SkyOverlayContext }, { type: SkyIdService }, { type: i4.Router, decorators: [{
|
2394
2523
|
type: Optional
|
@@ -2418,10 +2547,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
2418
2547
|
|
2419
2548
|
class SkyOverlayModule {
|
2420
2549
|
}
|
2421
|
-
SkyOverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2422
|
-
SkyOverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
2423
|
-
SkyOverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
2424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2550
|
+
SkyOverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2551
|
+
SkyOverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayModule, declarations: [SkyOverlayComponent], imports: [CommonModule] });
|
2552
|
+
SkyOverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayModule, imports: [CommonModule] });
|
2553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayModule, decorators: [{
|
2425
2554
|
type: NgModule,
|
2426
2555
|
args: [{
|
2427
2556
|
imports: [CommonModule],
|
@@ -2464,9 +2593,9 @@ _SkyOverlayAdapterService_renderer = new WeakMap(), _SkyOverlayAdapterService_st
|
|
2464
2593
|
__classPrivateFieldGet(this, _SkyOverlayAdapterService_renderer, "f").removeChild(document.head, __classPrivateFieldGet(this, _SkyOverlayAdapterService_styleElement, "f"));
|
2465
2594
|
}
|
2466
2595
|
};
|
2467
|
-
SkyOverlayAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2468
|
-
SkyOverlayAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
2469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2596
|
+
SkyOverlayAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
2597
|
+
SkyOverlayAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayAdapterService, providedIn: 'root' });
|
2598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayAdapterService, decorators: [{
|
2470
2599
|
type: Injectable,
|
2471
2600
|
args: [{
|
2472
2601
|
providedIn: 'root',
|
@@ -2582,9 +2711,9 @@ _SkyOverlayService_adapter = new WeakMap(), _SkyOverlayService_applicationRef =
|
|
2582
2711
|
}
|
2583
2712
|
};
|
2584
2713
|
SkyOverlayService.overlays = [];
|
2585
|
-
SkyOverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2586
|
-
SkyOverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
2587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2714
|
+
SkyOverlayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: SkyOverlayAdapterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2715
|
+
SkyOverlayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayService, providedIn: 'root' });
|
2716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyOverlayService, decorators: [{
|
2588
2717
|
type: Injectable,
|
2589
2718
|
args: [{
|
2590
2719
|
providedIn: 'root',
|
@@ -2593,6 +2722,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
2593
2722
|
|
2594
2723
|
var _SkyPercentPipe_instances, _SkyPercentPipe_defaultFormat, _SkyPercentPipe_defaultLocale, _SkyPercentPipe_format, _SkyPercentPipe_formattedValue, _SkyPercentPipe_locale, _SkyPercentPipe_ngUnsubscribe, _SkyPercentPipe_value, _SkyPercentPipe_updateFormattedValue;
|
2595
2724
|
class SkyPercentPipe {
|
2725
|
+
get defaultLocale() {
|
2726
|
+
return __classPrivateFieldGet(this, _SkyPercentPipe_defaultLocale, "f");
|
2727
|
+
}
|
2596
2728
|
constructor(localeProvider) {
|
2597
2729
|
_SkyPercentPipe_instances.add(this);
|
2598
2730
|
_SkyPercentPipe_defaultFormat.set(this, '1.0-2');
|
@@ -2610,9 +2742,6 @@ class SkyPercentPipe {
|
|
2610
2742
|
__classPrivateFieldGet(this, _SkyPercentPipe_instances, "m", _SkyPercentPipe_updateFormattedValue).call(this);
|
2611
2743
|
});
|
2612
2744
|
}
|
2613
|
-
get defaultLocale() {
|
2614
|
-
return __classPrivateFieldGet(this, _SkyPercentPipe_defaultLocale, "f");
|
2615
|
-
}
|
2616
2745
|
ngOnDestroy() {
|
2617
2746
|
__classPrivateFieldGet(this, _SkyPercentPipe_ngUnsubscribe, "f").next();
|
2618
2747
|
__classPrivateFieldGet(this, _SkyPercentPipe_ngUnsubscribe, "f").complete();
|
@@ -2632,9 +2761,9 @@ _SkyPercentPipe_defaultFormat = new WeakMap(), _SkyPercentPipe_defaultLocale = n
|
|
2632
2761
|
? SkyNumberFormatUtility.formatNumber(locale, __classPrivateFieldGet(this, _SkyPercentPipe_value, "f"), SkyIntlNumberFormatStyle.Percent, format)
|
2633
2762
|
: '', "f");
|
2634
2763
|
};
|
2635
|
-
SkyPercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2636
|
-
SkyPercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1
|
2637
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2764
|
+
SkyPercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyPercentPipe, deps: [{ token: i1.SkyAppLocaleProvider }], target: i0.ɵɵFactoryTarget.Pipe });
|
2765
|
+
SkyPercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyPercentPipe, name: "skyPercent", pure: false });
|
2766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyPercentPipe, decorators: [{
|
2638
2767
|
type: Pipe,
|
2639
2768
|
args: [{
|
2640
2769
|
name: 'skyPercent',
|
@@ -2644,10 +2773,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
2644
2773
|
|
2645
2774
|
class SkyPercentPipeModule {
|
2646
2775
|
}
|
2647
|
-
SkyPercentPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2648
|
-
SkyPercentPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
2649
|
-
SkyPercentPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
2650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2776
|
+
SkyPercentPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyPercentPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2777
|
+
SkyPercentPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyPercentPipeModule, declarations: [SkyPercentPipe], imports: [CommonModule, SkyCoreResourcesModule], exports: [SkyPercentPipe] });
|
2778
|
+
SkyPercentPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyPercentPipeModule, providers: [SkyPercentPipe], imports: [CommonModule, SkyCoreResourcesModule] });
|
2779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyPercentPipeModule, decorators: [{
|
2651
2780
|
type: NgModule,
|
2652
2781
|
args: [{
|
2653
2782
|
declarations: [SkyPercentPipe],
|
@@ -2722,9 +2851,9 @@ _SkyResizeObserverService_resizeObserver = new WeakMap(), _SkyResizeObserverServ
|
|
2722
2851
|
}
|
2723
2852
|
});
|
2724
2853
|
};
|
2725
|
-
SkyResizeObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2726
|
-
SkyResizeObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
2727
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2854
|
+
SkyResizeObserverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyResizeObserverService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
2855
|
+
SkyResizeObserverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyResizeObserverService, providedIn: 'any' });
|
2856
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyResizeObserverService, decorators: [{
|
2728
2857
|
type: Injectable,
|
2729
2858
|
args: [{
|
2730
2859
|
providedIn: 'any',
|
@@ -2737,6 +2866,12 @@ const DEFAULT_BREAKPOINT = SkyMediaBreakpoints.md;
|
|
2737
2866
|
* Acts like `SkyMediaQueryService` for a container element, emitting the same responsive breakpoints.
|
2738
2867
|
*/
|
2739
2868
|
class SkyResizeObserverMediaQueryService {
|
2869
|
+
/**
|
2870
|
+
* Returns the current breakpoint.
|
2871
|
+
*/
|
2872
|
+
get current() {
|
2873
|
+
return __classPrivateFieldGet(this, _SkyResizeObserverMediaQueryService_currentBreakpoint, "f");
|
2874
|
+
}
|
2740
2875
|
constructor(resizeObserverSvc) {
|
2741
2876
|
_SkyResizeObserverMediaQueryService_instances.add(this);
|
2742
2877
|
_SkyResizeObserverMediaQueryService_breakpoints.set(this, [
|
@@ -2764,12 +2899,6 @@ class SkyResizeObserverMediaQueryService {
|
|
2764
2899
|
_SkyResizeObserverMediaQueryService_target.set(this, void 0);
|
2765
2900
|
__classPrivateFieldSet(this, _SkyResizeObserverMediaQueryService_resizeObserverSvc, resizeObserverSvc, "f");
|
2766
2901
|
}
|
2767
|
-
/**
|
2768
|
-
* Returns the current breakpoint.
|
2769
|
-
*/
|
2770
|
-
get current() {
|
2771
|
-
return __classPrivateFieldGet(this, _SkyResizeObserverMediaQueryService_currentBreakpoint, "f");
|
2772
|
-
}
|
2773
2902
|
ngOnDestroy() {
|
2774
2903
|
this.unobserve();
|
2775
2904
|
__classPrivateFieldSet(this, _SkyResizeObserverMediaQueryService_target, undefined, "f");
|
@@ -2836,9 +2965,9 @@ _SkyResizeObserverMediaQueryService_breakpoints = new WeakMap(), _SkyResizeObser
|
|
2836
2965
|
__classPrivateFieldGet(this, _SkyResizeObserverMediaQueryService_instances, "m", _SkyResizeObserverMediaQueryService_updateBreakpoint).call(this, breakpoint);
|
2837
2966
|
}
|
2838
2967
|
};
|
2839
|
-
SkyResizeObserverMediaQueryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
2840
|
-
SkyResizeObserverMediaQueryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
2841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
2968
|
+
SkyResizeObserverMediaQueryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyResizeObserverMediaQueryService, deps: [{ token: SkyResizeObserverService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2969
|
+
SkyResizeObserverMediaQueryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyResizeObserverMediaQueryService, providedIn: 'any' });
|
2970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyResizeObserverMediaQueryService, decorators: [{
|
2842
2971
|
type: Injectable,
|
2843
2972
|
args: [{
|
2844
2973
|
providedIn: 'any',
|
@@ -3045,9 +3174,9 @@ _SkyScrollableHostService_mutationObserverSvc = new WeakMap(), _SkyScrollableHos
|
|
3045
3174
|
height: docElem.clientHeight,
|
3046
3175
|
};
|
3047
3176
|
};
|
3048
|
-
SkyScrollableHostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
3049
|
-
SkyScrollableHostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
3050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
3177
|
+
SkyScrollableHostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyScrollableHostService, deps: [{ token: SkyMutationObserverService }, { token: SkyAppWindowRef }, { token: SkyResizeObserverService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
3178
|
+
SkyScrollableHostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyScrollableHostService, providedIn: 'root' });
|
3179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyScrollableHostService, decorators: [{
|
3051
3180
|
type: Injectable,
|
3052
3181
|
args: [{
|
3053
3182
|
providedIn: 'root',
|
@@ -3079,9 +3208,9 @@ class SkyAppTitleService {
|
|
3079
3208
|
}
|
3080
3209
|
}
|
3081
3210
|
_SkyAppTitleService_title = new WeakMap();
|
3082
|
-
SkyAppTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
3083
|
-
SkyAppTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
3084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
3211
|
+
SkyAppTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAppTitleService, deps: [{ token: i1$1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
3212
|
+
SkyAppTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAppTitleService, providedIn: 'root' });
|
3213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyAppTitleService, decorators: [{
|
3085
3214
|
type: Injectable,
|
3086
3215
|
args: [{
|
3087
3216
|
providedIn: 'root',
|
@@ -3140,9 +3269,9 @@ _SkyTrimDirective_elRef = new WeakMap(), _SkyTrimDirective_obs = new WeakMap(),
|
|
3140
3269
|
}
|
3141
3270
|
__classPrivateFieldGet(this, _SkyTrimDirective_instances, "m", _SkyTrimDirective_observe).call(this);
|
3142
3271
|
};
|
3143
|
-
SkyTrimDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
3144
|
-
SkyTrimDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1
|
3145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
3272
|
+
SkyTrimDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyTrimDirective, deps: [{ token: i0.ElementRef }, { token: SkyMutationObserverService }], target: i0.ɵɵFactoryTarget.Directive });
|
3273
|
+
SkyTrimDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: SkyTrimDirective, selector: "[skyTrim]", ngImport: i0 });
|
3274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyTrimDirective, decorators: [{
|
3146
3275
|
type: Directive,
|
3147
3276
|
args: [{
|
3148
3277
|
selector: '[skyTrim]',
|
@@ -3151,10 +3280,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
3151
3280
|
|
3152
3281
|
class SkyTrimModule {
|
3153
3282
|
}
|
3154
|
-
SkyTrimModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
3155
|
-
SkyTrimModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
3156
|
-
SkyTrimModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
3157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
3283
|
+
SkyTrimModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyTrimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3284
|
+
SkyTrimModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyTrimModule, declarations: [SkyTrimDirective], exports: [SkyTrimDirective] });
|
3285
|
+
SkyTrimModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyTrimModule });
|
3286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyTrimModule, decorators: [{
|
3158
3287
|
type: NgModule,
|
3159
3288
|
args: [{
|
3160
3289
|
declarations: [SkyTrimDirective],
|
@@ -3171,9 +3300,9 @@ class SkyUIConfigService {
|
|
3171
3300
|
return of({});
|
3172
3301
|
}
|
3173
3302
|
}
|
3174
|
-
SkyUIConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
3175
|
-
SkyUIConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
3176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
3303
|
+
SkyUIConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyUIConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
3304
|
+
SkyUIConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyUIConfigService, providedIn: 'root' });
|
3305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyUIConfigService, decorators: [{
|
3177
3306
|
type: Injectable,
|
3178
3307
|
args: [{
|
3179
3308
|
providedIn: 'root',
|
@@ -3182,9 +3311,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
3182
3311
|
|
3183
3312
|
class SkyViewkeeperHostOptions {
|
3184
3313
|
}
|
3185
|
-
SkyViewkeeperHostOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
3186
|
-
SkyViewkeeperHostOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
3187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
3314
|
+
SkyViewkeeperHostOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperHostOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
3315
|
+
SkyViewkeeperHostOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperHostOptions });
|
3316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperHostOptions, decorators: [{
|
3188
3317
|
type: Injectable
|
3189
3318
|
}] });
|
3190
3319
|
|
@@ -3491,9 +3620,9 @@ class SkyViewkeeperService {
|
|
3491
3620
|
}
|
3492
3621
|
}
|
3493
3622
|
_SkyViewkeeperService_hostOptions = new WeakMap();
|
3494
|
-
SkyViewkeeperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
3495
|
-
SkyViewkeeperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1
|
3496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
3623
|
+
SkyViewkeeperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperService, deps: [{ token: SkyViewkeeperHostOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
3624
|
+
SkyViewkeeperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperService, providedIn: 'root' });
|
3625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperService, decorators: [{
|
3497
3626
|
type: Injectable,
|
3498
3627
|
args: [{
|
3499
3628
|
providedIn: 'root',
|
@@ -3506,6 +3635,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
3506
3635
|
|
3507
3636
|
var _SkyViewkeeperDirective_instances, _SkyViewkeeperDirective__skyViewkeeper, _SkyViewkeeperDirective_currentViewkeeperEls, _SkyViewkeeperDirective_el, _SkyViewkeeperDirective_mutationObserverSvc, _SkyViewkeeperDirective_observer, _SkyViewkeeperDirective_scrollableHostSvc, _SkyViewkeeperDirective_scrollableHostWatchUnsubscribe, _SkyViewkeeperDirective_viewkeepers, _SkyViewkeeperDirective_viewkeeperSvc, _SkyViewkeeperDirective_destroyViewkeepers, _SkyViewkeeperDirective_getViewkeeperEls, _SkyViewkeeperDirective_viewkeeperElsChanged, _SkyViewkeeperDirective_detectElements;
|
3508
3637
|
class SkyViewkeeperDirective {
|
3638
|
+
set skyViewkeeper(value) {
|
3639
|
+
__classPrivateFieldSet(this, _SkyViewkeeperDirective__skyViewkeeper, value, "f");
|
3640
|
+
__classPrivateFieldGet(this, _SkyViewkeeperDirective_instances, "m", _SkyViewkeeperDirective_detectElements).call(this);
|
3641
|
+
}
|
3642
|
+
get skyViewkeeper() {
|
3643
|
+
return __classPrivateFieldGet(this, _SkyViewkeeperDirective__skyViewkeeper, "f");
|
3644
|
+
}
|
3509
3645
|
constructor(el, mutationObserverSvc, viewkeeperSvc, scrollableHostSvc) {
|
3510
3646
|
_SkyViewkeeperDirective_instances.add(this);
|
3511
3647
|
_SkyViewkeeperDirective__skyViewkeeper.set(this, void 0);
|
@@ -3522,13 +3658,6 @@ class SkyViewkeeperDirective {
|
|
3522
3658
|
__classPrivateFieldSet(this, _SkyViewkeeperDirective_viewkeeperSvc, viewkeeperSvc, "f");
|
3523
3659
|
__classPrivateFieldSet(this, _SkyViewkeeperDirective_scrollableHostSvc, scrollableHostSvc, "f");
|
3524
3660
|
}
|
3525
|
-
set skyViewkeeper(value) {
|
3526
|
-
__classPrivateFieldSet(this, _SkyViewkeeperDirective__skyViewkeeper, value, "f");
|
3527
|
-
__classPrivateFieldGet(this, _SkyViewkeeperDirective_instances, "m", _SkyViewkeeperDirective_detectElements).call(this);
|
3528
|
-
}
|
3529
|
-
get skyViewkeeper() {
|
3530
|
-
return __classPrivateFieldGet(this, _SkyViewkeeperDirective__skyViewkeeper, "f");
|
3531
|
-
}
|
3532
3661
|
ngOnInit() {
|
3533
3662
|
__classPrivateFieldSet(this, _SkyViewkeeperDirective_observer, __classPrivateFieldGet(this, _SkyViewkeeperDirective_mutationObserverSvc, "f").create(() => __classPrivateFieldGet(this, _SkyViewkeeperDirective_instances, "m", _SkyViewkeeperDirective_detectElements).call(this)), "f");
|
3534
3663
|
__classPrivateFieldGet(this, _SkyViewkeeperDirective_observer, "f").observe(__classPrivateFieldGet(this, _SkyViewkeeperDirective_el, "f").nativeElement, {
|
@@ -3614,9 +3743,9 @@ _SkyViewkeeperDirective__skyViewkeeper = new WeakMap(), _SkyViewkeeperDirective_
|
|
3614
3743
|
__classPrivateFieldSet(this, _SkyViewkeeperDirective_currentViewkeeperEls, viewkeeperEls, "f");
|
3615
3744
|
}
|
3616
3745
|
};
|
3617
|
-
SkyViewkeeperDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
3618
|
-
SkyViewkeeperDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1
|
3619
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
3746
|
+
SkyViewkeeperDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperDirective, deps: [{ token: i0.ElementRef }, { token: SkyMutationObserverService }, { token: SkyViewkeeperService }, { token: SkyScrollableHostService, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
3747
|
+
SkyViewkeeperDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: SkyViewkeeperDirective, selector: "[skyViewkeeper]", inputs: { skyViewkeeper: "skyViewkeeper" }, ngImport: i0 });
|
3748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperDirective, decorators: [{
|
3620
3749
|
type: Directive,
|
3621
3750
|
args: [{
|
3622
3751
|
selector: '[skyViewkeeper]',
|
@@ -3631,10 +3760,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
3631
3760
|
|
3632
3761
|
class SkyViewkeeperModule {
|
3633
3762
|
}
|
3634
|
-
SkyViewkeeperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1
|
3635
|
-
SkyViewkeeperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1
|
3636
|
-
SkyViewkeeperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1
|
3637
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1
|
3763
|
+
SkyViewkeeperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3764
|
+
SkyViewkeeperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperModule, declarations: [SkyViewkeeperDirective], exports: [SkyViewkeeperDirective] });
|
3765
|
+
SkyViewkeeperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperModule });
|
3766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SkyViewkeeperModule, decorators: [{
|
3638
3767
|
type: NgModule,
|
3639
3768
|
args: [{
|
3640
3769
|
declarations: [SkyViewkeeperDirective],
|
@@ -3646,5 +3775,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
3646
3775
|
* Generated bundle index. Do not edit.
|
3647
3776
|
*/
|
3648
3777
|
|
3649
|
-
export { NumericOptions, SKY_LOG_LEVEL, SKY_STACKING_CONTEXT, SkyAffixAutoFitContext, SkyAffixModule, SkyAffixService, SkyAffixer, SkyAppFormat, SkyAppTitleService, SkyAppWindowRef, SkyCoreAdapterModule, SkyCoreAdapterService, SkyDockItem, SkyDockLocation, SkyDockModule, SkyDockService, SkyDynamicComponentLocation, SkyDynamicComponentModule, SkyDynamicComponentService, SkyIdModule, SkyIdService, SkyLogModule, SkyLogService, SkyMediaBreakpoints, SkyMediaQueryModule, SkyMediaQueryService, SkyMutationObserverService, SkyNumericModule, SkyNumericPipe, SkyNumericService, SkyOverlayInstance, SkyOverlayModule, SkyOverlayService, SkyPercentPipe, SkyPercentPipeModule, SkyResizeObserverMediaQueryService, SkyResizeObserverService, SkyScrollableHostService, SkyTrimModule, SkyUIConfigService, SkyViewkeeperHostOptions, SkyViewkeeperModule, SkyViewkeeperService, getWindow, SkyAffixDirective as λ1, SkyIdDirective as λ2, SkyViewkeeperDirective as λ3, SkyTrimDirective as λ4 };
|
3778
|
+
export { NumericOptions, SKY_LOG_LEVEL, SKY_STACKING_CONTEXT, SkyAffixAutoFitContext, SkyAffixModule, SkyAffixService, SkyAffixer, SkyAppFormat, SkyAppTitleService, SkyAppWindowRef, SkyCoreAdapterModule, SkyCoreAdapterService, SkyDockItem, SkyDockLocation, SkyDockModule, SkyDockService, SkyDynamicComponentLocation, SkyDynamicComponentModule, SkyDynamicComponentService, SkyIdModule, SkyIdService, SkyLiveAnnouncerService, SkyLogModule, SkyLogService, SkyMediaBreakpoints, SkyMediaQueryModule, SkyMediaQueryService, SkyMutationObserverService, SkyNumericModule, SkyNumericPipe, SkyNumericService, SkyOverlayInstance, SkyOverlayModule, SkyOverlayService, SkyPercentPipe, SkyPercentPipeModule, SkyResizeObserverMediaQueryService, SkyResizeObserverService, SkyScrollableHostService, SkyTrimModule, SkyUIConfigService, SkyViewkeeperHostOptions, SkyViewkeeperModule, SkyViewkeeperService, getWindow, SkyAffixDirective as λ1, SkyIdDirective as λ2, SkyViewkeeperDirective as λ3, SkyTrimDirective as λ4 };
|
3650
3779
|
//# sourceMappingURL=skyux-core.mjs.map
|