@breadstone/mosaik-elements-angular 0.0.47 → 0.0.48
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/fesm2022/mosaik-elements-angular.mjs +60 -49
- package/fesm2022/mosaik-elements-angular.mjs.map +1 -1
- package/index.d.ts +22 -14
- package/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -10,7 +10,7 @@ import { DOCUMENT, NgFor, NgIf, AsyncPipe } from '@angular/common';
|
|
|
10
10
|
import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
|
11
11
|
import { OverlayPositionBuilder, Overlay } from '@angular/cdk/overlay';
|
|
12
12
|
import { emit } from '@breadstone/mosaik-elements';
|
|
13
|
-
import
|
|
13
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
14
14
|
import { ThemeGeneratorServiceLocator, ThemeGenerator, ThemeObserver, ThemeObserverServiceLocator } from '@breadstone/mosaik-themes';
|
|
15
15
|
|
|
16
16
|
/* eslint-disable prefer-rest-params */
|
|
@@ -55281,12 +55281,12 @@ class BreakpointDirective {
|
|
|
55281
55281
|
*
|
|
55282
55282
|
* @public
|
|
55283
55283
|
*/
|
|
55284
|
-
constructor(
|
|
55285
|
-
this._vcr =
|
|
55286
|
-
this._templateRef =
|
|
55287
|
-
this._cdr =
|
|
55288
|
-
this._breakPointObserver =
|
|
55289
|
-
this._breakPointRegistry =
|
|
55284
|
+
constructor() {
|
|
55285
|
+
this._vcr = inject(ViewContainerRef);
|
|
55286
|
+
this._templateRef = inject((TemplateRef));
|
|
55287
|
+
this._cdr = inject(ChangeDetectorRef);
|
|
55288
|
+
this._breakPointObserver = inject(BreakpointObserver);
|
|
55289
|
+
this._breakPointRegistry = inject(BreakpointRegistry);
|
|
55290
55290
|
this._breakPointObserverSubscription = null;
|
|
55291
55291
|
this._view = null;
|
|
55292
55292
|
}
|
|
@@ -55341,15 +55341,22 @@ class BreakpointDirective {
|
|
|
55341
55341
|
this.invalidate();
|
|
55342
55342
|
this._cdr.markForCheck();
|
|
55343
55343
|
}
|
|
55344
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: BreakpointDirective, deps: [
|
|
55345
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.4", type: BreakpointDirective, isStandalone: true, selector: "[breakpoint]",
|
|
55344
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: BreakpointDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
55345
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.4", type: BreakpointDirective, isStandalone: true, selector: "[breakpoint]", providers: [
|
|
55346
|
+
BreakpointObserver,
|
|
55347
|
+
BreakpointRegistry
|
|
55348
|
+
], ngImport: i0 });
|
|
55346
55349
|
}
|
|
55347
55350
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: BreakpointDirective, decorators: [{
|
|
55348
55351
|
type: Directive,
|
|
55349
55352
|
args: [{
|
|
55350
|
-
selector: '[breakpoint]'
|
|
55353
|
+
selector: '[breakpoint]',
|
|
55354
|
+
providers: [
|
|
55355
|
+
BreakpointObserver,
|
|
55356
|
+
BreakpointRegistry
|
|
55357
|
+
]
|
|
55351
55358
|
}]
|
|
55352
|
-
}], ctorParameters: () => [
|
|
55359
|
+
}], ctorParameters: () => [] });
|
|
55353
55360
|
|
|
55354
55361
|
// #region Imports
|
|
55355
55362
|
// #endregion
|
|
@@ -55600,18 +55607,45 @@ class AnimateDirective {
|
|
|
55600
55607
|
_registry;
|
|
55601
55608
|
_element;
|
|
55602
55609
|
_animationPlayer;
|
|
55610
|
+
_renderer;
|
|
55603
55611
|
_wasTriggered;
|
|
55612
|
+
_animationOptions;
|
|
55613
|
+
_animation;
|
|
55604
55614
|
// #endregion
|
|
55605
55615
|
// #region Ctor
|
|
55606
55616
|
constructor() {
|
|
55607
55617
|
this._registry = inject(ANIMATION_REGISTRY);
|
|
55608
55618
|
this._element = inject(ElementRef);
|
|
55609
55619
|
this._animationPlayer = inject(AnimationPlayer2);
|
|
55620
|
+
this._renderer = inject(Renderer2);
|
|
55610
55621
|
this._wasTriggered = false;
|
|
55622
|
+
this._animationOptions = undefined;
|
|
55623
|
+
this._animation = undefined;
|
|
55611
55624
|
}
|
|
55612
55625
|
// #endregion
|
|
55613
55626
|
// #region Properties
|
|
55614
|
-
|
|
55627
|
+
/**
|
|
55628
|
+
* Gets or sets the `animation` property.
|
|
55629
|
+
*
|
|
55630
|
+
* @public
|
|
55631
|
+
*/
|
|
55632
|
+
get animation() {
|
|
55633
|
+
return this._animation;
|
|
55634
|
+
}
|
|
55635
|
+
set animation(value) {
|
|
55636
|
+
this._animation = value;
|
|
55637
|
+
}
|
|
55638
|
+
/**
|
|
55639
|
+
* Gets or sets the `options` property.
|
|
55640
|
+
*
|
|
55641
|
+
* @public
|
|
55642
|
+
*/
|
|
55643
|
+
get options() {
|
|
55644
|
+
return this._animationOptions;
|
|
55645
|
+
}
|
|
55646
|
+
set options(value) {
|
|
55647
|
+
this._animationOptions = value;
|
|
55648
|
+
}
|
|
55615
55649
|
// #endregion
|
|
55616
55650
|
// #region Methods
|
|
55617
55651
|
/**
|
|
@@ -55651,17 +55685,14 @@ class AnimateDirective {
|
|
|
55651
55685
|
};
|
|
55652
55686
|
for (const [k, v] of Object.entries(from)) {
|
|
55653
55687
|
if (k in el.style) {
|
|
55654
|
-
el
|
|
55688
|
+
this._renderer.setStyle(el, k, v);
|
|
55655
55689
|
}
|
|
55656
55690
|
}
|
|
55657
|
-
|
|
55658
|
-
|
|
55659
|
-
|
|
55660
|
-
|
|
55661
|
-
|
|
55662
|
-
else {
|
|
55663
|
-
this.play(options);
|
|
55664
|
-
}
|
|
55691
|
+
if (options.trigger) {
|
|
55692
|
+
options.trigger(() => this.play(options));
|
|
55693
|
+
}
|
|
55694
|
+
else {
|
|
55695
|
+
this.play(options);
|
|
55665
55696
|
}
|
|
55666
55697
|
}
|
|
55667
55698
|
play(options) {
|
|
@@ -55674,43 +55705,23 @@ class AnimateDirective {
|
|
|
55674
55705
|
});
|
|
55675
55706
|
}
|
|
55676
55707
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: AnimateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
55677
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
55678
|
-
if (typeof value === 'string') {
|
|
55679
|
-
const animation = inject(ANIMATION_REGISTRY)[value];
|
|
55680
|
-
if (!animation) {
|
|
55681
|
-
throw new Error(`Animation "${value}" not found in registry.`);
|
|
55682
|
-
}
|
|
55683
|
-
return animation;
|
|
55684
|
-
}
|
|
55685
|
-
else if (typeof value === 'object') {
|
|
55686
|
-
return value;
|
|
55687
|
-
}
|
|
55688
|
-
return undefined;
|
|
55689
|
-
}] }, usesOnChanges: true, ngImport: i0 });
|
|
55708
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.4", type: AnimateDirective, isStandalone: true, selector: "[mosaikAnimate]", inputs: { animation: ["mosaikAnimate", "animation"], options: ["mosaikAnimateOptions", "options"] }, usesOnChanges: true, ngImport: i0 });
|
|
55690
55709
|
}
|
|
55691
55710
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: AnimateDirective, decorators: [{
|
|
55692
55711
|
type: Directive,
|
|
55693
55712
|
args: [{
|
|
55694
55713
|
selector: '[mosaikAnimate]'
|
|
55695
55714
|
}]
|
|
55696
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
55715
|
+
}], ctorParameters: () => [], propDecorators: { animation: [{
|
|
55697
55716
|
type: Input,
|
|
55698
55717
|
args: [{
|
|
55699
55718
|
alias: 'mosaikAnimate',
|
|
55700
|
-
required: true
|
|
55701
|
-
|
|
55702
|
-
|
|
55703
|
-
|
|
55704
|
-
|
|
55705
|
-
|
|
55706
|
-
}
|
|
55707
|
-
return animation;
|
|
55708
|
-
}
|
|
55709
|
-
else if (typeof value === 'object') {
|
|
55710
|
-
return value;
|
|
55711
|
-
}
|
|
55712
|
-
return undefined;
|
|
55713
|
-
}
|
|
55719
|
+
required: true
|
|
55720
|
+
}]
|
|
55721
|
+
}], options: [{
|
|
55722
|
+
type: Input,
|
|
55723
|
+
args: [{
|
|
55724
|
+
alias: 'mosaikAnimateOptions'
|
|
55714
55725
|
}]
|
|
55715
55726
|
}] } });
|
|
55716
55727
|
|