@ssv/ngx.ux 3.2.0 → 3.3.0-dev.82
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/README.md +1 -0
- package/fesm2022/ssv-ngx.ux.mjs +81 -100
- package/fesm2022/ssv-ngx.ux.mjs.map +1 -1
- package/index.d.ts +221 -3
- package/package.json +1 -3
- package/esm2022/index.mjs +0 -4
- package/esm2022/internal/internal.model.mjs +0 -2
- package/esm2022/platform/window.mjs +0 -31
- package/esm2022/ssv-ngx.ux.mjs +0 -5
- package/esm2022/ux.module.mjs +0 -19
- package/esm2022/version.mjs +0 -2
- package/esm2022/viewport/index.mjs +0 -10
- package/esm2022/viewport/viewport-data/index.mjs +0 -4
- package/esm2022/viewport/viewport-data/viewport-data-matcher.mjs +0 -107
- package/esm2022/viewport/viewport-data/viewport-data.pipe.mjs +0 -48
- package/esm2022/viewport/viewport-data/viewport-data.service.mjs +0 -32
- package/esm2022/viewport/viewport-data/viewport-data.utils.mjs +0 -100
- package/esm2022/viewport/viewport-matcher-var.directive.mjs +0 -69
- package/esm2022/viewport/viewport-matcher.directive.mjs +0 -136
- package/esm2022/viewport/viewport-server-size.service.mjs +0 -38
- package/esm2022/viewport/viewport.model.mjs +0 -30
- package/esm2022/viewport/viewport.module.mjs +0 -27
- package/esm2022/viewport/viewport.options.mjs +0 -51
- package/esm2022/viewport/viewport.service.mjs +0 -79
- package/esm2022/viewport/viewport.util.mjs +0 -117
- package/internal/internal.model.d.ts +0 -3
- package/platform/window.d.ts +0 -13
- package/ux.module.d.ts +0 -7
- package/version.d.ts +0 -1
- package/viewport/index.d.ts +0 -9
- package/viewport/viewport-data/index.d.ts +0 -3
- package/viewport/viewport-data/viewport-data-matcher.d.ts +0 -32
- package/viewport/viewport-data/viewport-data.pipe.d.ts +0 -18
- package/viewport/viewport-data/viewport-data.service.d.ts +0 -16
- package/viewport/viewport-data/viewport-data.utils.d.ts +0 -21
- package/viewport/viewport-matcher-var.directive.d.ts +0 -25
- package/viewport/viewport-matcher.directive.d.ts +0 -33
- package/viewport/viewport-server-size.service.d.ts +0 -10
- package/viewport/viewport.model.d.ts +0 -47
- package/viewport/viewport.module.d.ts +0 -9
- package/viewport/viewport.options.d.ts +0 -19
- package/viewport/viewport.service.d.ts +0 -34
- package/viewport/viewport.util.d.ts +0 -25
package/README.md
CHANGED
package/fesm2022/ssv-ngx.ux.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, Injectable, makeEnvironmentProviders, Pipe, Directive, Input, NgModule } from '@angular/core';
|
|
3
|
-
import { fromEvent, map, share, auditTime, of, startWith, distinctUntilChanged, shareReplay, Subscription, tap,
|
|
4
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
2
|
+
import { InjectionToken, inject, Injectable, makeEnvironmentProviders, ChangeDetectorRef, DestroyRef, Pipe, ViewContainerRef, TemplateRef, Directive, Input, Renderer2, NgModule } from '@angular/core';
|
|
3
|
+
import { fromEvent, map, share, auditTime, of, startWith, distinctUntilChanged, shareReplay, Subscription, tap, ReplaySubject, combineLatest, Subject, filter, pairwise } from 'rxjs';
|
|
4
|
+
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
5
|
|
|
6
6
|
var ViewportDataMatchStrategy;
|
|
7
7
|
(function (ViewportDataMatchStrategy) {
|
|
@@ -129,10 +129,10 @@ class WindowRef {
|
|
|
129
129
|
get hasNative() {
|
|
130
130
|
return !!this.native.window;
|
|
131
131
|
}
|
|
132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
133
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: WindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
133
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: WindowRef, providedIn: "root" });
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: WindowRef, decorators: [{
|
|
136
136
|
type: Injectable,
|
|
137
137
|
args: [{
|
|
138
138
|
providedIn: "root",
|
|
@@ -194,10 +194,10 @@ class ViewportServerSizeService {
|
|
|
194
194
|
get() {
|
|
195
195
|
return viewportSizeSSR[this.deviceType] || viewportSizeSSR[DeviceType.desktop];
|
|
196
196
|
}
|
|
197
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
198
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
197
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportServerSizeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
198
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportServerSizeService, providedIn: "root" });
|
|
199
199
|
}
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportServerSizeService, decorators: [{
|
|
201
201
|
type: Injectable,
|
|
202
202
|
args: [{
|
|
203
203
|
providedIn: "root",
|
|
@@ -429,10 +429,10 @@ class ViewportService {
|
|
|
429
429
|
height: this.#windowRef.native.innerHeight,
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
433
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
432
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
433
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportService, providedIn: "root" });
|
|
434
434
|
}
|
|
435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportService, decorators: [{
|
|
436
436
|
type: Injectable,
|
|
437
437
|
args: [{
|
|
438
438
|
providedIn: "root",
|
|
@@ -553,10 +553,10 @@ class ViewportDataService {
|
|
|
553
553
|
generateRules(dataConfig, strategy = this.#config.defaultDataMatchStrategy) {
|
|
554
554
|
return generateViewportRulesRangeFromDataMatcher(dataConfig, strategy, this.#viewport.sizeTypes, this.#viewport.sizeTypeMap);
|
|
555
555
|
}
|
|
556
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
557
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
556
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportDataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
557
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportDataService, providedIn: "root" });
|
|
558
558
|
}
|
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportDataService, decorators: [{
|
|
560
560
|
type: Injectable,
|
|
561
561
|
args: [{
|
|
562
562
|
providedIn: "root",
|
|
@@ -564,17 +564,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImpor
|
|
|
564
564
|
}] });
|
|
565
565
|
|
|
566
566
|
class ViewportDataPipe {
|
|
567
|
-
viewportData;
|
|
568
|
-
cdr;
|
|
567
|
+
#viewportData = inject(ViewportDataService);
|
|
568
|
+
#cdr = inject(ChangeDetectorRef);
|
|
569
|
+
#destroyRef = inject(DestroyRef);
|
|
569
570
|
markForTransform = true;
|
|
570
571
|
value;
|
|
571
572
|
data;
|
|
572
573
|
strategy;
|
|
573
574
|
data$$ = Subscription.EMPTY;
|
|
574
|
-
constructor(viewportData, cdr) {
|
|
575
|
-
this.viewportData = viewportData;
|
|
576
|
-
this.cdr = cdr;
|
|
577
|
-
}
|
|
578
575
|
transform(data, strategy) {
|
|
579
576
|
if (!this.markForTransform && data === this.data && strategy === this.strategy) {
|
|
580
577
|
return this.value;
|
|
@@ -582,28 +579,25 @@ class ViewportDataPipe {
|
|
|
582
579
|
this.data = data;
|
|
583
580
|
this.strategy = strategy;
|
|
584
581
|
this.data$$.unsubscribe();
|
|
585
|
-
this.data$$ = this
|
|
582
|
+
this.data$$ = this.#viewportData.get$(data, ViewportDataMatchStrategy[strategy]).pipe(tap(value => {
|
|
586
583
|
this.markForTransform = true;
|
|
587
584
|
this.value = value;
|
|
588
|
-
this
|
|
589
|
-
})).subscribe();
|
|
585
|
+
this.#cdr.markForCheck();
|
|
586
|
+
}), takeUntilDestroyed(this.#destroyRef)).subscribe();
|
|
590
587
|
this.markForTransform = false;
|
|
591
588
|
return this.value;
|
|
592
589
|
}
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
}
|
|
596
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ViewportDataPipe, deps: [{ token: ViewportDataService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
597
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: ViewportDataPipe, isStandalone: true, name: "ssvViewportData", pure: false });
|
|
590
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportDataPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
591
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.7", ngImport: i0, type: ViewportDataPipe, isStandalone: true, name: "ssvViewportData", pure: false });
|
|
598
592
|
}
|
|
599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ViewportDataPipe, decorators: [{
|
|
600
594
|
type: Pipe,
|
|
601
595
|
args: [{
|
|
602
596
|
name: "ssvViewportData",
|
|
603
597
|
pure: false,
|
|
604
598
|
standalone: true,
|
|
605
599
|
}]
|
|
606
|
-
}]
|
|
600
|
+
}] });
|
|
607
601
|
|
|
608
602
|
const NAME_CAMEL = "ssvViewportMatcherVar";
|
|
609
603
|
class SsvViewportMatcherVarContext {
|
|
@@ -612,13 +606,13 @@ class SsvViewportMatcherVarContext {
|
|
|
612
606
|
this.$implicit = $implicit;
|
|
613
607
|
}
|
|
614
608
|
}
|
|
615
|
-
class
|
|
616
|
-
viewport;
|
|
617
|
-
viewContainer;
|
|
618
|
-
templateRef;
|
|
609
|
+
class SsvViewportMatcherVar {
|
|
610
|
+
#viewport = inject(ViewportService);
|
|
611
|
+
#viewContainer = inject(ViewContainerRef);
|
|
612
|
+
#templateRef = inject(TemplateRef);
|
|
613
|
+
#destroyRef = inject(DestroyRef);
|
|
619
614
|
_matchConditions = {};
|
|
620
615
|
_context = new SsvViewportMatcherVarContext();
|
|
621
|
-
_destroy$ = new Subject();
|
|
622
616
|
_update$ = new ReplaySubject(1);
|
|
623
617
|
_viewRef;
|
|
624
618
|
set condition(value) {
|
|
@@ -637,33 +631,24 @@ class SsvViewportMatcherVarDirective {
|
|
|
637
631
|
}
|
|
638
632
|
this._update$.next();
|
|
639
633
|
}
|
|
640
|
-
constructor(viewport, viewContainer, templateRef) {
|
|
641
|
-
this.viewport = viewport;
|
|
642
|
-
this.viewContainer = viewContainer;
|
|
643
|
-
this.templateRef = templateRef;
|
|
644
|
-
}
|
|
645
634
|
ngOnInit() {
|
|
646
635
|
this.updateView();
|
|
647
|
-
combineLatest([this
|
|
648
|
-
}
|
|
649
|
-
ngOnDestroy() {
|
|
650
|
-
this._destroy$.next();
|
|
651
|
-
this._destroy$.complete();
|
|
636
|
+
combineLatest([this.#viewport.sizeType$, this._update$]).pipe(map(([sizeType]) => isViewportConditionMatch(sizeType, this._matchConditions, this.#viewport.sizeTypeMap)), tap(x => this._context.$implicit = x), tap(() => this._viewRef.markForCheck()), takeUntilDestroyed(this.#destroyRef)).subscribe();
|
|
652
637
|
}
|
|
653
638
|
updateView() {
|
|
654
|
-
this
|
|
655
|
-
this._viewRef = this
|
|
639
|
+
this.#viewContainer.clear();
|
|
640
|
+
this._viewRef = this.#viewContainer.createEmbeddedView(this.#templateRef, this._context);
|
|
656
641
|
}
|
|
657
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
658
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
642
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: SsvViewportMatcherVar, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
643
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.7", type: SsvViewportMatcherVar, isStandalone: true, selector: "[ssvViewportMatcherVar]", inputs: { condition: ["ssvViewportMatcherVarWhen", "condition"] }, ngImport: i0 });
|
|
659
644
|
}
|
|
660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: SsvViewportMatcherVar, decorators: [{
|
|
661
646
|
type: Directive,
|
|
662
647
|
args: [{
|
|
663
648
|
selector: `[${NAME_CAMEL}]`,
|
|
664
649
|
standalone: true,
|
|
665
650
|
}]
|
|
666
|
-
}],
|
|
651
|
+
}], propDecorators: { condition: [{
|
|
667
652
|
type: Input,
|
|
668
653
|
args: [`${NAME_CAMEL}When`]
|
|
669
654
|
}] } });
|
|
@@ -673,19 +658,18 @@ class SsvViewportMatcherContext {
|
|
|
673
658
|
sizeTypeExclude = null;
|
|
674
659
|
expression;
|
|
675
660
|
}
|
|
676
|
-
class
|
|
677
|
-
viewport;
|
|
678
|
-
renderer;
|
|
679
|
-
viewContainer;
|
|
680
|
-
cdr;
|
|
661
|
+
class SsvViewportMatcher {
|
|
662
|
+
#viewport = inject(ViewportService);
|
|
663
|
+
#renderer = inject(Renderer2);
|
|
664
|
+
#viewContainer = inject(ViewContainerRef);
|
|
665
|
+
#cdr = inject(ChangeDetectorRef);
|
|
666
|
+
#destroyRef = inject(DestroyRef);
|
|
681
667
|
sizeInfo;
|
|
682
668
|
_context = new SsvViewportMatcherContext();
|
|
683
669
|
_thenTemplateRef = null;
|
|
684
670
|
_elseTemplateRef = null;
|
|
685
671
|
_thenViewRef = null;
|
|
686
672
|
_elseViewRef = null;
|
|
687
|
-
sizeType$$ = Subscription.EMPTY;
|
|
688
|
-
cssClass$$ = Subscription.EMPTY;
|
|
689
673
|
_update$ = new Subject();
|
|
690
674
|
set ssvViewportMatcher(value) {
|
|
691
675
|
if (isViewportSizeMatcherExpression(value)) {
|
|
@@ -718,12 +702,12 @@ class SsvViewportMatcherDirective {
|
|
|
718
702
|
this._update$.next(this._context);
|
|
719
703
|
}
|
|
720
704
|
}
|
|
721
|
-
constructor(
|
|
722
|
-
|
|
723
|
-
this.renderer = renderer;
|
|
724
|
-
this.viewContainer = viewContainer;
|
|
725
|
-
this.cdr = cdr;
|
|
705
|
+
constructor() {
|
|
706
|
+
const templateRef = inject(TemplateRef);
|
|
726
707
|
this._thenTemplateRef = templateRef;
|
|
708
|
+
this.#destroyRef.onDestroy(() => {
|
|
709
|
+
this._update$.complete();
|
|
710
|
+
});
|
|
727
711
|
}
|
|
728
712
|
ngOnInit() {
|
|
729
713
|
// console.log("ssvViewportMatcher init");
|
|
@@ -733,14 +717,14 @@ class SsvViewportMatcherDirective {
|
|
|
733
717
|
filter(() => !!this.sizeInfo),
|
|
734
718
|
// tap(x => console.log(">>> ssvViewportMatcher - updating...", x)),
|
|
735
719
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
736
|
-
tap(() => this._updateView(this.sizeInfo)), tap(() => this
|
|
720
|
+
tap(() => this._updateView(this.sizeInfo)), tap(() => this.#cdr.markForCheck()))
|
|
737
721
|
.subscribe();
|
|
738
|
-
this
|
|
722
|
+
this.#viewport.sizeType$
|
|
739
723
|
.pipe(
|
|
740
724
|
// tap(x => console.log("ssvViewportMatcher - sizeType changed", x)),
|
|
741
|
-
tap(x => this.sizeInfo = x), tap(() => this._update$.next(this._context)))
|
|
725
|
+
tap(x => this.sizeInfo = x), tap(() => this._update$.next(this._context)), takeUntilDestroyed(this.#destroyRef))
|
|
742
726
|
.subscribe();
|
|
743
|
-
this
|
|
727
|
+
this.#viewport.sizeType$
|
|
744
728
|
.pipe(startWith(undefined), filter(() => !!(this._thenViewRef || this._elseViewRef)), pairwise(), tap(([prev, curr]) => {
|
|
745
729
|
const el = this._thenViewRef
|
|
746
730
|
? this._thenViewRef.rootNodes[0]
|
|
@@ -749,48 +733,43 @@ class SsvViewportMatcherDirective {
|
|
|
749
733
|
return;
|
|
750
734
|
}
|
|
751
735
|
if (prev) {
|
|
752
|
-
this
|
|
736
|
+
this.#renderer.removeClass(el, `ssv-vp-size--${prev.name}`);
|
|
753
737
|
}
|
|
754
|
-
this
|
|
755
|
-
}))
|
|
738
|
+
this.#renderer.addClass(el, `ssv-vp-size--${curr?.name}`);
|
|
739
|
+
}), takeUntilDestroyed(this.#destroyRef))
|
|
756
740
|
.subscribe();
|
|
757
741
|
}
|
|
758
|
-
ngOnDestroy() {
|
|
759
|
-
this.cssClass$$.unsubscribe();
|
|
760
|
-
this.sizeType$$.unsubscribe();
|
|
761
|
-
this._update$.complete();
|
|
762
|
-
}
|
|
763
742
|
_updateView(sizeInfo) {
|
|
764
|
-
if (isViewportConditionMatch(sizeInfo, this._context, this
|
|
743
|
+
if (isViewportConditionMatch(sizeInfo, this._context, this.#viewport.sizeTypeMap)) {
|
|
765
744
|
if (!this._thenViewRef) {
|
|
766
|
-
this
|
|
745
|
+
this.#viewContainer.clear();
|
|
767
746
|
this._elseViewRef = null;
|
|
768
747
|
if (this._thenTemplateRef) {
|
|
769
|
-
this._thenViewRef = this
|
|
748
|
+
this._thenViewRef = this.#viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);
|
|
770
749
|
}
|
|
771
750
|
}
|
|
772
751
|
}
|
|
773
752
|
else {
|
|
774
753
|
if (!this._elseViewRef) {
|
|
775
|
-
this
|
|
754
|
+
this.#viewContainer.clear();
|
|
776
755
|
this._thenViewRef = null;
|
|
777
756
|
if (this._elseTemplateRef) {
|
|
778
|
-
this._elseViewRef = this
|
|
757
|
+
this._elseViewRef = this.#viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);
|
|
779
758
|
}
|
|
780
759
|
}
|
|
781
760
|
}
|
|
782
761
|
}
|
|
783
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
784
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
762
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: SsvViewportMatcher, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
763
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.7", type: SsvViewportMatcher, isStandalone: true, selector: "[ssvViewportMatcher]", inputs: { ssvViewportMatcher: "ssvViewportMatcher", ssvViewportMatcherExclude: "ssvViewportMatcherExclude", ssvViewportMatcherElse: "ssvViewportMatcherElse" }, exportAs: ["ssvViewportMatcher"], ngImport: i0 });
|
|
785
764
|
}
|
|
786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: SsvViewportMatcher, decorators: [{
|
|
787
766
|
type: Directive,
|
|
788
767
|
args: [{
|
|
789
768
|
selector: "[ssvViewportMatcher]",
|
|
790
769
|
exportAs: "ssvViewportMatcher",
|
|
791
770
|
standalone: true,
|
|
792
771
|
}]
|
|
793
|
-
}], ctorParameters: () => [
|
|
772
|
+
}], ctorParameters: () => [], propDecorators: { ssvViewportMatcher: [{
|
|
794
773
|
type: Input
|
|
795
774
|
}], ssvViewportMatcherExclude: [{
|
|
796
775
|
type: Input
|
|
@@ -799,20 +778,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImpor
|
|
|
799
778
|
}] } });
|
|
800
779
|
|
|
801
780
|
const EXPORTED_IMPORTS$1 = [
|
|
802
|
-
|
|
803
|
-
|
|
781
|
+
SsvViewportMatcher,
|
|
782
|
+
SsvViewportMatcherVar,
|
|
804
783
|
ViewportDataPipe,
|
|
805
784
|
];
|
|
785
|
+
/** @deprecated Use standalone instead. */
|
|
806
786
|
class SsvUxViewportModule {
|
|
807
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
808
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
809
|
-
|
|
810
|
-
ViewportDataPipe], exports: [
|
|
811
|
-
|
|
787
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: SsvUxViewportModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
788
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.7", ngImport: i0, type: SsvUxViewportModule, imports: [SsvViewportMatcher,
|
|
789
|
+
SsvViewportMatcherVar,
|
|
790
|
+
ViewportDataPipe], exports: [SsvViewportMatcher,
|
|
791
|
+
SsvViewportMatcherVar,
|
|
812
792
|
ViewportDataPipe] });
|
|
813
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
793
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: SsvUxViewportModule });
|
|
814
794
|
}
|
|
815
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: SsvUxViewportModule, decorators: [{
|
|
816
796
|
type: NgModule,
|
|
817
797
|
args: [{
|
|
818
798
|
imports: [EXPORTED_IMPORTS$1],
|
|
@@ -823,12 +803,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImpor
|
|
|
823
803
|
const EXPORTED_IMPORTS = [
|
|
824
804
|
SsvUxViewportModule,
|
|
825
805
|
];
|
|
806
|
+
/** @deprecated Use standalone instead. */
|
|
826
807
|
class SsvUxModule {
|
|
827
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
828
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
829
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
808
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: SsvUxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
809
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.7", ngImport: i0, type: SsvUxModule, imports: [SsvUxViewportModule], exports: [SsvUxViewportModule] });
|
|
810
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: SsvUxModule, imports: [EXPORTED_IMPORTS, SsvUxViewportModule] });
|
|
830
811
|
}
|
|
831
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: SsvUxModule, decorators: [{
|
|
832
813
|
type: NgModule,
|
|
833
814
|
args: [{
|
|
834
815
|
imports: [EXPORTED_IMPORTS],
|
|
@@ -836,11 +817,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImpor
|
|
|
836
817
|
}]
|
|
837
818
|
}] });
|
|
838
819
|
|
|
839
|
-
const VERSION = "3.
|
|
820
|
+
const VERSION = "3.3.0-dev.82";
|
|
840
821
|
|
|
841
822
|
/**
|
|
842
823
|
* Generated bundle index. Do not edit.
|
|
843
824
|
*/
|
|
844
825
|
|
|
845
|
-
export { ComparisonOperation, DeviceType, SsvUxModule, SsvUxViewportModule, SsvViewportMatcherContext,
|
|
826
|
+
export { ComparisonOperation, DeviceType, SsvUxModule, SsvUxViewportModule, SsvViewportMatcher, SsvViewportMatcherContext, SsvViewportMatcherVar, SsvViewportMatcherVarContext, VERSION, VIEWPORT_OPTIONS, VIEWPORT_SSR_DEVICE, ViewportDataMatchStrategy, ViewportDataPipe, ViewportDataService, ViewportServerSizeService, ViewportService, ViewportSizeType, generateViewportSizeType, provideSsvUxViewportOptions, withViewportSsrDevice };
|
|
846
827
|
//# sourceMappingURL=ssv-ngx.ux.mjs.map
|