@ethlete/cdk 5.0.0-next.1 → 5.0.0-next.10
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/CHANGELOG.md +72 -0
- package/fesm2022/ethlete-cdk.mjs +422 -690
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ethlete-cdk.d.ts +93 -144
package/fesm2022/ethlete-cdk.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, TemplateRef, ViewContainerRef, Directive, input, booleanAttribute, computed, isDevMode, model, contentChild, effect, untracked, ChangeDetectionStrategy, ViewEncapsulation, Component, contentChildren, ElementRef, Injector, Input, numberAttribute, DOCUMENT, Injectable, ChangeDetectorRef, signal, forwardRef, ViewChild, ContentChildren, assertInInjectionContext, createComponent, EnvironmentInjector, createEnvironmentInjector, runInInjectionContext, linkedSignal,
|
|
2
|
+
import { InjectionToken, inject, TemplateRef, ViewContainerRef, Directive, input, booleanAttribute, computed, isDevMode, model, contentChild, effect, untracked, ChangeDetectionStrategy, ViewEncapsulation, Component, contentChildren, ElementRef, Injector, Input, numberAttribute, DOCUMENT, Injectable, ChangeDetectorRef, signal, forwardRef, ViewChild, ContentChildren, assertInInjectionContext, createComponent, EnvironmentInjector, createEnvironmentInjector, runInInjectionContext, linkedSignal, DestroyRef, isSignal, viewChild, viewChildren, provideEnvironmentInitializer, ApplicationRef, output, ContentChild, ViewChildren, EventEmitter, Output, Optional, SkipSelf, IterableDiffers, ComponentFactoryResolver, NgZone, HostAttributeToken } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/portal';
|
|
4
4
|
import { CdkPortal, PortalModule, ComponentPortal, CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal';
|
|
5
5
|
import { DomSanitizer, Title } from '@angular/platform-browser';
|
|
6
6
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
7
7
|
import { toObservable, takeUntilDestroyed, toSignal, outputFromObservable, outputToObservable } from '@angular/core/rxjs-interop';
|
|
8
|
-
import { map, switchMap, combineLatest, pairwise, tap, BehaviorSubject, filter, Subject, Observable, of, takeUntil, startWith, debounceTime, withLatestFrom, take, merge, skipUntil, fromEvent, timer, distinctUntilChanged, from, finalize, skip, takeWhile, shareReplay, skipWhile, catchError, throwError, Subscription } from 'rxjs';
|
|
8
|
+
import { map, switchMap, combineLatest, pairwise, tap, BehaviorSubject, filter, Subject, Observable, of, takeUntil, startWith, debounceTime, withLatestFrom, take, merge, skipUntil, fromEvent, timer, distinctUntilChanged, EMPTY, from, finalize, skip, takeWhile, shareReplay, skipWhile, catchError, throwError, Subscription } from 'rxjs';
|
|
9
9
|
import { __decorate, __metadata } from 'tslib';
|
|
10
10
|
import { AsyncPipe, NgComponentOutlet, Location, NgTemplateOutlet, NgClass, DOCUMENT as DOCUMENT$1, NgStyle } from '@angular/common';
|
|
11
11
|
import * as i1$1 from '@ethlete/core';
|
|
12
|
-
import { createComponentId, injectRenderer, IS_EMAIL, MUST_MATCH, IS_ARRAY_NOT_EMPTY, AT_LEAST_ONE_REQUIRED, createDestroy, equal, signalHostClasses, signalAttributes, signalHostAttributes, switchQueryListChanges, controlValueSignal, fromNextFrame, elementCanScroll, AnimatedLifecycleDirective, forceReflow, nextFrame, createRootProvider, injectBreakpointObserver,
|
|
12
|
+
import { createComponentId, injectRenderer, IS_EMAIL, MUST_MATCH, IS_ARRAY_NOT_EMPTY, AT_LEAST_ONE_REQUIRED, createDestroy, equal, signalHostClasses, signalAttributes, signalHostAttributes, switchQueryListChanges, controlValueSignal, fromNextFrame, elementCanScroll, AnimatedLifecycleDirective, forceReflow, nextFrame, createRootProvider, injectBreakpointObserver, COLOR_PROVIDER, ProvideColorDirective, SURFACE_PROVIDER, ProvideSurfaceDirective, BOUNDARY_ELEMENT_TOKEN, ScrollObserverDirective, signalElementScrollState, ScrollObserverStartDirective, ScrollObserverEndDirective, provideBoundaryElement, applyHostListener, injectSurfaceThemes, injectSurfaceContextTracker, injectBoundaryElement, ANIMATED_LIFECYCLE_TOKEN, resolveSurfaceByElevation, setInputSignal, SurfacedDirective, cloneFormGroup, getFormGroupValue, injectQueryParam, injectRoute, AnimatedIfDirective, injectObserveBreakpoint, syncSignal, createDocumentElementSignal, createStaticRootProvider, AnimatedOverlayDirective, typedBreakpointTransform, boolBreakpointTransform, numberBreakpointTransform, signalElementDimensions, createCanAnimateSignal, useCursorDragScroll, signalElementChildren, signalElementIntersection, signalClasses, signalHostStyles, signalStyles, getScrollSnapTarget, getScrollContainerTarget, getScrollItemTarget, getElementScrollCoordinates, provideBreakpointInstance, injectTemplateRef, signalHostElementScrollState, signalHostElementDimensions, createProvider, previousSignalValue, signalHostElementIntersection, injectHostElement, createFlipAnimation, isObject, getObjectProperty, RuntimeError, KeyPressManager, scrollToElement, ClickOutsideDirective, clamp, injectFocusVisibleTracker, inferMimeType, applyHostListeners, TypedQueryList } from '@ethlete/core';
|
|
13
13
|
import * as i1$5 from '@angular/cdk/a11y';
|
|
14
14
|
import { FocusMonitor, FocusKeyManager, AriaDescriber, A11yModule } from '@angular/cdk/a11y';
|
|
15
15
|
import { AutofillMonitor } from '@angular/cdk/text-field';
|
|
@@ -19,7 +19,7 @@ import { coerceCssPixelValue, coerceElement, _isNumberValue } from '@angular/cdk
|
|
|
19
19
|
import { Dialog, DialogConfig, CdkDialogContainer } from '@angular/cdk/dialog';
|
|
20
20
|
import { NoopScrollStrategy, OverlayRef as OverlayRef$1, Overlay } from '@angular/cdk/overlay';
|
|
21
21
|
import * as i1$2 from '@angular/router';
|
|
22
|
-
import {
|
|
22
|
+
import { Router, RouterLink, isActive, RouterLinkActive, NavigationEnd } from '@angular/router';
|
|
23
23
|
import { isQueryStateLoading, isQueryStateFailure, queryComputed, switchQueryState, isQueryStateSuccess, extractQuery, QueryDirective, injectInfinityQueryResponseDelay, v2ShouldRetryRequest, parseHttpErrorCodeToTitleEn, parseHttpErrorCodeToTitleDe, parseHttpErrorCodeToMessageEn, parseHttpErrorCodeToMessageDe, isClassValidatorError, isSymfonyFormViolationListError, isSymfonyListError } from '@ethlete/query';
|
|
24
24
|
import { format, parse } from 'date-fns';
|
|
25
25
|
import { Platform } from '@angular/cdk/platform';
|
|
@@ -4154,7 +4154,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
4154
4154
|
}] } });
|
|
4155
4155
|
|
|
4156
4156
|
const INPUT_TOKEN = new InjectionToken('ET_INPUT_DIRECTIVE_TOKEN');
|
|
4157
|
-
let nextUniqueId$
|
|
4157
|
+
let nextUniqueId$5 = 0;
|
|
4158
4158
|
class InputDirective {
|
|
4159
4159
|
get control() {
|
|
4160
4160
|
if (!this._ngControl) {
|
|
@@ -4282,7 +4282,7 @@ class InputDirective {
|
|
|
4282
4282
|
this._focusMonitor = inject(FocusMonitor);
|
|
4283
4283
|
this._elementRef = inject(ElementRef);
|
|
4284
4284
|
this._neverEmptyInputs = ['date', 'datetime', 'datetime-local', 'month', 'time', 'week'];
|
|
4285
|
-
this._id = `et-input-${++nextUniqueId$
|
|
4285
|
+
this._id = `et-input-${++nextUniqueId$5}`;
|
|
4286
4286
|
this.autocomplete = input(null, ...(ngDevMode ? [{ debugName: "autocomplete" }] : []));
|
|
4287
4287
|
this.placeholder = input(null, ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4288
4288
|
this.min = input(null, ...(ngDevMode ? [{ debugName: "min" }] : []));
|
|
@@ -4699,11 +4699,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
4699
4699
|
}] });
|
|
4700
4700
|
|
|
4701
4701
|
const LABEL_TOKEN = new InjectionToken('ET_LABEL_COMPONENT_TOKEN');
|
|
4702
|
-
let nextUniqueId$
|
|
4702
|
+
let nextUniqueId$4 = 0;
|
|
4703
4703
|
class LabelComponent {
|
|
4704
4704
|
constructor() {
|
|
4705
4705
|
this.formFieldStateService = inject(FormFieldStateService);
|
|
4706
|
-
this.id = `et-label-${++nextUniqueId$
|
|
4706
|
+
this.id = `et-label-${++nextUniqueId$4}`;
|
|
4707
4707
|
}
|
|
4708
4708
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: LabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4709
4709
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: LabelComponent, isStandalone: true, selector: "et-label", host: { classAttribute: "et-label" }, providers: [{ provide: LABEL_TOKEN, useExisting: LabelComponent }], exportAs: ["etLabel"], ngImport: i0, template: `
|
|
@@ -5265,7 +5265,131 @@ const mergeOverlayBreakpointConfigs = (...configs) => {
|
|
|
5265
5265
|
return combinedConfig;
|
|
5266
5266
|
};
|
|
5267
5267
|
|
|
5268
|
-
const
|
|
5268
|
+
const FLOATING_UI_PLACEMENTS = [
|
|
5269
|
+
'top',
|
|
5270
|
+
'left',
|
|
5271
|
+
'bottom',
|
|
5272
|
+
'right',
|
|
5273
|
+
'top-start',
|
|
5274
|
+
'top-end',
|
|
5275
|
+
'right-start',
|
|
5276
|
+
'right-end',
|
|
5277
|
+
'bottom-start',
|
|
5278
|
+
'bottom-end',
|
|
5279
|
+
'left-start',
|
|
5280
|
+
'left-end',
|
|
5281
|
+
];
|
|
5282
|
+
|
|
5283
|
+
/**
|
|
5284
|
+
* A utility function to enhance the ux of views containing forms.
|
|
5285
|
+
* It helps to prevent the user from accidentally losing unsaved form changes.
|
|
5286
|
+
*/
|
|
5287
|
+
const createNavigationDismissChecker = (config) => {
|
|
5288
|
+
assertInInjectionContext(createNavigationDismissChecker);
|
|
5289
|
+
const { form, compareFn, dismissCheckFn } = config;
|
|
5290
|
+
const currentFormValue = controlValueSignal(form);
|
|
5291
|
+
const hasChanges = computed(() => {
|
|
5292
|
+
const formValue = currentFormValue();
|
|
5293
|
+
if (!formValue)
|
|
5294
|
+
return false;
|
|
5295
|
+
return !(compareFn ? compareFn(formValue, defaultFormValue()) : equal(formValue, defaultFormValue()));
|
|
5296
|
+
}, ...(ngDevMode ? [{ debugName: "hasChanges" }] : []));
|
|
5297
|
+
const defaultFormValue = signal(config.defaultValue ?? form.getRawValue(), ...(ngDevMode ? [{ debugName: "defaultFormValue" }] : []));
|
|
5298
|
+
const runCheck = () => {
|
|
5299
|
+
const isDefaultFormValue = !hasChanges();
|
|
5300
|
+
if (isDefaultFormValue)
|
|
5301
|
+
return of(true);
|
|
5302
|
+
return dismissCheckFn(form.getRawValue());
|
|
5303
|
+
};
|
|
5304
|
+
const refreshDefaultFormValue = () => {
|
|
5305
|
+
defaultFormValue.set(form.getRawValue());
|
|
5306
|
+
};
|
|
5307
|
+
const restoreDefaultFormValue = () => {
|
|
5308
|
+
form.setValue(defaultFormValue());
|
|
5309
|
+
refreshDefaultFormValue();
|
|
5310
|
+
};
|
|
5311
|
+
return {
|
|
5312
|
+
runCheck,
|
|
5313
|
+
refreshDefaultFormValue,
|
|
5314
|
+
restoreDefaultFormValue,
|
|
5315
|
+
hasChanges,
|
|
5316
|
+
defaultFormValue: defaultFormValue.asReadonly(),
|
|
5317
|
+
};
|
|
5318
|
+
};
|
|
5319
|
+
|
|
5320
|
+
const injectRouterNavigationState = () => {
|
|
5321
|
+
const router = inject(Router);
|
|
5322
|
+
const navState = router.getCurrentNavigation()?.extras.state;
|
|
5323
|
+
return (navState || null);
|
|
5324
|
+
};
|
|
5325
|
+
|
|
5326
|
+
const getClientXY = (event) => {
|
|
5327
|
+
if (event.type[0] === 't') {
|
|
5328
|
+
const touch = event.targetTouches[0] ?? event.changedTouches[0];
|
|
5329
|
+
return touch ? { clientX: touch.clientX, clientY: touch.clientY } : { clientX: 0, clientY: 0 };
|
|
5330
|
+
}
|
|
5331
|
+
return { clientX: event.clientX, clientY: event.clientY };
|
|
5332
|
+
};
|
|
5333
|
+
const createSwipeTracker = (startEvent) => {
|
|
5334
|
+
const { clientX: originClientX, clientY: originClientY } = getClientXY(startEvent);
|
|
5335
|
+
const startTime = Date.now();
|
|
5336
|
+
let movementX = 0;
|
|
5337
|
+
let movementY = 0;
|
|
5338
|
+
let isSwiping = false;
|
|
5339
|
+
let isScrolling = false;
|
|
5340
|
+
const update = (event) => {
|
|
5341
|
+
const { clientX, clientY } = getClientXY(event);
|
|
5342
|
+
movementX = clientX - originClientX;
|
|
5343
|
+
movementY = clientY - originClientY;
|
|
5344
|
+
const positiveMovementX = Math.abs(movementX);
|
|
5345
|
+
const positiveMovementY = Math.abs(movementY);
|
|
5346
|
+
if (!isSwiping && !isScrolling) {
|
|
5347
|
+
if (positiveMovementY > positiveMovementX) {
|
|
5348
|
+
isScrolling = true;
|
|
5349
|
+
}
|
|
5350
|
+
else {
|
|
5351
|
+
isSwiping = true;
|
|
5352
|
+
}
|
|
5353
|
+
}
|
|
5354
|
+
return {
|
|
5355
|
+
originClientX,
|
|
5356
|
+
originClientY,
|
|
5357
|
+
timestamp: startTime,
|
|
5358
|
+
movementX,
|
|
5359
|
+
movementY,
|
|
5360
|
+
positiveMovementX,
|
|
5361
|
+
positiveMovementY,
|
|
5362
|
+
isScrolling,
|
|
5363
|
+
isSwiping,
|
|
5364
|
+
};
|
|
5365
|
+
};
|
|
5366
|
+
const end = () => {
|
|
5367
|
+
const swipeTime = Math.max(1, Date.now() - startTime);
|
|
5368
|
+
const positiveMovementX = Math.abs(movementX);
|
|
5369
|
+
const positiveMovementY = Math.abs(movementY);
|
|
5370
|
+
const pixelPerSecondX = (movementX / swipeTime) * 1000;
|
|
5371
|
+
const pixelPerSecondY = (movementY / swipeTime) * 1000;
|
|
5372
|
+
return {
|
|
5373
|
+
movementX,
|
|
5374
|
+
movementY,
|
|
5375
|
+
positiveMovementX,
|
|
5376
|
+
positiveMovementY,
|
|
5377
|
+
pixelPerSecondX,
|
|
5378
|
+
pixelPerSecondY,
|
|
5379
|
+
positivePixelPerSecondX: Math.abs(pixelPerSecondX),
|
|
5380
|
+
positivePixelPerSecondY: Math.abs(pixelPerSecondY),
|
|
5381
|
+
originClientX,
|
|
5382
|
+
originClientY,
|
|
5383
|
+
};
|
|
5384
|
+
};
|
|
5385
|
+
const cancel = () => {
|
|
5386
|
+
movementX = 0;
|
|
5387
|
+
movementY = 0;
|
|
5388
|
+
};
|
|
5389
|
+
return { update, end, cancel };
|
|
5390
|
+
};
|
|
5391
|
+
|
|
5392
|
+
const isTouchEvent$2 = (event) => {
|
|
5269
5393
|
return event.type[0] === 't';
|
|
5270
5394
|
};
|
|
5271
5395
|
const defaultSwipeMoveStyleInterpolator = (event, config) => {
|
|
@@ -5384,15 +5508,29 @@ const shouldCancelDragForScrollableElement = (scrollableElement, direction) => {
|
|
|
5384
5508
|
* Returns a cleanup function to disable the feature.
|
|
5385
5509
|
*/
|
|
5386
5510
|
const enableDragToDismiss = (context) => {
|
|
5387
|
-
const { element: el, overlayRef,
|
|
5511
|
+
const { element: el, overlayRef, config } = context;
|
|
5388
5512
|
const stop$ = new Subject();
|
|
5389
|
-
let
|
|
5513
|
+
let tracker = null;
|
|
5390
5514
|
let isSelectionActive = false;
|
|
5515
|
+
let savedUserSelect = null;
|
|
5516
|
+
const unlockSelection = () => {
|
|
5517
|
+
if (savedUserSelect === null)
|
|
5518
|
+
return;
|
|
5519
|
+
document.body.style.userSelect = savedUserSelect;
|
|
5520
|
+
savedUserSelect = null;
|
|
5521
|
+
};
|
|
5522
|
+
const lockSelection = () => {
|
|
5523
|
+
if (savedUserSelect !== null)
|
|
5524
|
+
return;
|
|
5525
|
+
savedUserSelect = document.body.style.userSelect ?? '';
|
|
5526
|
+
document.body.style.userSelect = 'none';
|
|
5527
|
+
};
|
|
5391
5528
|
const cancelDrag = () => {
|
|
5529
|
+
unlockSelection();
|
|
5392
5530
|
el.style.setProperty('transition', 'transform 100ms var(--ease-out-1)');
|
|
5393
5531
|
el.style.transform =
|
|
5394
5532
|
config.direction === 'to-bottom' || config.direction === 'to-top' ? 'translateY(0)' : 'translateX(0)';
|
|
5395
|
-
|
|
5533
|
+
tracker = null;
|
|
5396
5534
|
setTimeout(() => {
|
|
5397
5535
|
el.style.removeProperty('transition');
|
|
5398
5536
|
el.style.removeProperty('transform');
|
|
@@ -5406,7 +5544,7 @@ const enableDragToDismiss = (context) => {
|
|
|
5406
5544
|
const tag = target.tagName.toLowerCase();
|
|
5407
5545
|
if (tag === 'input' || tag === 'textarea' || tag === 'select' || tag === 'button' || tag === 'a')
|
|
5408
5546
|
return;
|
|
5409
|
-
|
|
5547
|
+
tracker = createSwipeTracker(event);
|
|
5410
5548
|
}))
|
|
5411
5549
|
.subscribe();
|
|
5412
5550
|
fromEvent(document, 'selectionchange')
|
|
@@ -5420,21 +5558,35 @@ const enableDragToDismiss = (context) => {
|
|
|
5420
5558
|
isSelectionActive = true;
|
|
5421
5559
|
cancelDrag();
|
|
5422
5560
|
});
|
|
5423
|
-
merge(fromEvent(el, 'touchmove'), fromEvent(el, 'mousemove'))
|
|
5561
|
+
merge(fromEvent(el, 'touchmove', { passive: false }), fromEvent(el, 'mousemove'))
|
|
5424
5562
|
.pipe(takeUntil(stop$), takeUntil(overlayRef.afterClosed()), tap((event) => {
|
|
5425
|
-
if (
|
|
5563
|
+
if (tracker === null || isSelectionActive)
|
|
5426
5564
|
return;
|
|
5427
|
-
if (isTouchEvent$
|
|
5565
|
+
if (isTouchEvent$2(event)) {
|
|
5428
5566
|
const target = event.target;
|
|
5429
5567
|
const scrollableElement = recursiveFindScrollableParent(target, config.direction);
|
|
5430
5568
|
if (scrollableElement && shouldCancelDragForScrollableElement(scrollableElement, config.direction)) {
|
|
5431
5569
|
cancelDrag();
|
|
5432
5570
|
return;
|
|
5433
5571
|
}
|
|
5572
|
+
event.preventDefault();
|
|
5573
|
+
}
|
|
5574
|
+
const swipeData = tracker.update(event);
|
|
5575
|
+
if (!isTouchEvent$2(event)) {
|
|
5576
|
+
if (savedUserSelect === null) {
|
|
5577
|
+
const { movementX, movementY } = swipeData;
|
|
5578
|
+
const committed = config.direction === 'to-bottom'
|
|
5579
|
+
? movementY >= 8
|
|
5580
|
+
: config.direction === 'to-top'
|
|
5581
|
+
? movementY <= -8
|
|
5582
|
+
: config.direction === 'to-left'
|
|
5583
|
+
? movementX <= -8
|
|
5584
|
+
: movementX >= 8;
|
|
5585
|
+
if (!committed)
|
|
5586
|
+
return;
|
|
5587
|
+
lockSelection();
|
|
5588
|
+
}
|
|
5434
5589
|
}
|
|
5435
|
-
const swipeData = swipeHandlerService.updateSwipe(swipeId, event);
|
|
5436
|
-
if (!swipeData)
|
|
5437
|
-
return;
|
|
5438
5590
|
const css = defaultSwipeMoveStyleInterpolator(swipeData, config);
|
|
5439
5591
|
Object.entries(css).forEach(([key, value]) => {
|
|
5440
5592
|
el.style.setProperty(key, value);
|
|
@@ -5442,13 +5594,17 @@ const enableDragToDismiss = (context) => {
|
|
|
5442
5594
|
}))
|
|
5443
5595
|
.subscribe();
|
|
5444
5596
|
merge(fromEvent(el, 'touchend'), fromEvent(el, 'mouseup'))
|
|
5445
|
-
.pipe(takeUntil(stop$), takeUntil(overlayRef.afterClosed()), tap(() => {
|
|
5446
|
-
|
|
5597
|
+
.pipe(takeUntil(stop$), takeUntil(overlayRef.afterClosed()), tap((event) => {
|
|
5598
|
+
const wasMouseDrag = !isTouchEvent$2(event) && savedUserSelect !== null;
|
|
5599
|
+
unlockSelection();
|
|
5600
|
+
if (tracker === null || isSelectionActive)
|
|
5447
5601
|
return;
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
if (!swipeData)
|
|
5602
|
+
if (!isTouchEvent$2(event) && !wasMouseDrag) {
|
|
5603
|
+
tracker = null;
|
|
5451
5604
|
return;
|
|
5605
|
+
}
|
|
5606
|
+
const swipeData = tracker.end();
|
|
5607
|
+
tracker = null;
|
|
5452
5608
|
const css = defaultSwipeEndStyleInterpolator(swipeData, config);
|
|
5453
5609
|
if (!css) {
|
|
5454
5610
|
overlayRef._closeOverlayVia('touch');
|
|
@@ -5469,6 +5625,7 @@ const enableDragToDismiss = (context) => {
|
|
|
5469
5625
|
.subscribe();
|
|
5470
5626
|
return {
|
|
5471
5627
|
unsubscribe: () => {
|
|
5628
|
+
unlockSelection();
|
|
5472
5629
|
stop$.next();
|
|
5473
5630
|
stop$.complete();
|
|
5474
5631
|
},
|
|
@@ -5476,7 +5633,7 @@ const enableDragToDismiss = (context) => {
|
|
|
5476
5633
|
};
|
|
5477
5634
|
|
|
5478
5635
|
const isHtmlElement = (element) => element instanceof HTMLElement;
|
|
5479
|
-
const isTouchEvent$
|
|
5636
|
+
const isTouchEvent$1 = (event) => event.type[0] === 't';
|
|
5480
5637
|
const isPointerEvent = (event) => event.type[0] === 'c';
|
|
5481
5638
|
const findNextRelevantHtmlElement = (element, depth = 0) => {
|
|
5482
5639
|
if (!element || depth === 10)
|
|
@@ -5499,7 +5656,7 @@ const getOriginCoordinatesAndDimensions = (origin) => {
|
|
|
5499
5656
|
element: origin,
|
|
5500
5657
|
};
|
|
5501
5658
|
}
|
|
5502
|
-
if (isTouchEvent$
|
|
5659
|
+
if (isTouchEvent$1(origin) || isPointerEvent(origin)) {
|
|
5503
5660
|
const target = origin.target;
|
|
5504
5661
|
const relevantElement = findNextRelevantHtmlElement(target) ?? target;
|
|
5505
5662
|
const rect = relevantElement.getBoundingClientRect();
|
|
@@ -5508,7 +5665,7 @@ const getOriginCoordinatesAndDimensions = (origin) => {
|
|
|
5508
5665
|
y: rect.top + rect.height / 2,
|
|
5509
5666
|
width: rect.width,
|
|
5510
5667
|
height: rect.height,
|
|
5511
|
-
element:
|
|
5668
|
+
element: relevantElement,
|
|
5512
5669
|
};
|
|
5513
5670
|
}
|
|
5514
5671
|
return null;
|
|
@@ -6079,8 +6236,10 @@ const [provideOverlayManager, injectOverlayManager] = createRootProvider(() => {
|
|
|
6079
6236
|
overlayRef = new OverlayRef(ref, shallowConfigCopy, container);
|
|
6080
6237
|
return [
|
|
6081
6238
|
{ provide: OverlayContainerComponent, useValue: container },
|
|
6082
|
-
{ provide:
|
|
6083
|
-
{ provide:
|
|
6239
|
+
{ provide: COLOR_PROVIDER, useValue: container.colorProvider },
|
|
6240
|
+
{ provide: ProvideColorDirective, useValue: container.colorProvider },
|
|
6241
|
+
{ provide: SURFACE_PROVIDER, useValue: container.surfaceProvider },
|
|
6242
|
+
{ provide: ProvideSurfaceDirective, useValue: container.surfaceProvider },
|
|
6084
6243
|
{ provide: BOUNDARY_ELEMENT_TOKEN, useValue: container.rootBoundary },
|
|
6085
6244
|
{ provide: OVERLAY_DATA, useValue: cdkConfig.data },
|
|
6086
6245
|
{ provide: OverlayRef, useValue: overlayRef },
|
|
@@ -6138,8 +6297,8 @@ const [provideOverlayManager, injectOverlayManager] = createRootProvider(() => {
|
|
|
6138
6297
|
const overlayPaneEl = cdkRef.overlayRef.overlayElement;
|
|
6139
6298
|
const backdropEl = cdkRef.overlayRef.backdropElement;
|
|
6140
6299
|
const overlayWrapper = cdkRef.overlayRef.hostElement;
|
|
6141
|
-
const strategyBreakpoints = runInInjectionContext(childInjector, () => config.strategies?.() ?? []);
|
|
6142
|
-
const breakpointMatchResults = runInInjectionContext(childInjector, () => strategyBreakpoints.map((breakpointEntry) => breakpointEntry.breakpoint
|
|
6300
|
+
const strategyBreakpoints = untracked(() => runInInjectionContext(childInjector, () => config.strategies?.() ?? []));
|
|
6301
|
+
const breakpointMatchResults = untracked(() => runInInjectionContext(childInjector, () => strategyBreakpoints.map((breakpointEntry) => breakpointEntry.breakpoint
|
|
6143
6302
|
? {
|
|
6144
6303
|
isActive: breakpointObserver.observeBreakpoint({ min: breakpointEntry.breakpoint }),
|
|
6145
6304
|
strategy: breakpointEntry.strategy,
|
|
@@ -6153,7 +6312,7 @@ const [provideOverlayManager, injectOverlayManager] = createRootProvider(() => {
|
|
|
6153
6312
|
isActive: signal(true),
|
|
6154
6313
|
strategy: breakpointEntry.strategy,
|
|
6155
6314
|
size: 0,
|
|
6156
|
-
}));
|
|
6315
|
+
})));
|
|
6157
6316
|
const getHighestMatchedStrategy = () => {
|
|
6158
6317
|
const activeBreakpoints = breakpointMatchResults.filter((entry) => entry.isActive());
|
|
6159
6318
|
return activeBreakpoints.reduce((prev, curr) => (prev.size > curr.size ? prev : curr)).strategy;
|
|
@@ -6167,7 +6326,7 @@ const [provideOverlayManager, injectOverlayManager] = createRootProvider(() => {
|
|
|
6167
6326
|
previousStrategy: prev?.source,
|
|
6168
6327
|
}) });
|
|
6169
6328
|
let isFirstRun = true;
|
|
6170
|
-
effect(() => {
|
|
6329
|
+
untracked(() => effect(() => {
|
|
6171
6330
|
const { currentStrategy, previousStrategy } = highestMatchedStrategy();
|
|
6172
6331
|
if (isFirstRun) {
|
|
6173
6332
|
isFirstRun = false;
|
|
@@ -6176,7 +6335,7 @@ const [provideOverlayManager, injectOverlayManager] = createRootProvider(() => {
|
|
|
6176
6335
|
untracked(() => {
|
|
6177
6336
|
applyStrategy(currentStrategy, previousStrategy, { containerEl, overlayPaneEl, backdropEl, overlayWrapper }, config, cdkRef, overlayRef);
|
|
6178
6337
|
});
|
|
6179
|
-
}, { injector: childInjector });
|
|
6338
|
+
}, { injector: childInjector }));
|
|
6180
6339
|
};
|
|
6181
6340
|
const applyStrategy = (currStrategy, prevStrategy, elements, config, cdkRef, overlayRef) => {
|
|
6182
6341
|
const { containerEl, overlayPaneEl, backdropEl, overlayWrapper } = elements;
|
|
@@ -6357,42 +6516,21 @@ class OverlayBodyComponent {
|
|
|
6357
6516
|
this.overlayRef = inject(OverlayRef, { optional: true });
|
|
6358
6517
|
this.elementRef = inject(ElementRef);
|
|
6359
6518
|
this.overlayManager = injectOverlayManager();
|
|
6519
|
+
this.scrollObserver = inject(ScrollObserverDirective);
|
|
6360
6520
|
this.dividers = input(false, ...(ngDevMode ? [{ debugName: "dividers" }] : []));
|
|
6361
|
-
this.firstElement = viewChild('firstElement', ...(ngDevMode ? [{ debugName: "firstElement" }] : []));
|
|
6362
|
-
this.lastElement = viewChild('lastElement', ...(ngDevMode ? [{ debugName: "lastElement" }] : []));
|
|
6363
6521
|
this.dividersEnabled = computed(() => this.dividers() === 'dynamic' || this.dividers() === 'static', ...(ngDevMode ? [{ debugName: "dividersEnabled" }] : []));
|
|
6364
6522
|
this.dynamicDividersEnabled = computed(() => this.dividers() === 'dynamic', ...(ngDevMode ? [{ debugName: "dynamicDividersEnabled" }] : []));
|
|
6365
6523
|
this.containerScrollState = signalElementScrollState(this.elementRef);
|
|
6366
|
-
this.firstElementIntersection = signalElementIntersection(this.firstElement, {
|
|
6367
|
-
root: this.elementRef,
|
|
6368
|
-
enabled: this.dynamicDividersEnabled,
|
|
6369
|
-
});
|
|
6370
|
-
this.firstElementVisibility = signal(null, ...(ngDevMode ? [{ debugName: "firstElementVisibility" }] : []));
|
|
6371
|
-
this.lastElementIntersection = signalElementIntersection(this.lastElement, {
|
|
6372
|
-
root: this.elementRef,
|
|
6373
|
-
enabled: this.dynamicDividersEnabled,
|
|
6374
|
-
});
|
|
6375
|
-
this.lastElementVisibility = signal(null, ...(ngDevMode ? [{ debugName: "lastElementVisibility" }] : []));
|
|
6376
6524
|
this.canScroll = computed(() => this.containerScrollState().canScroll, ...(ngDevMode ? [{ debugName: "canScroll" }] : []));
|
|
6377
6525
|
this.isAtStart = computed(() => {
|
|
6378
|
-
if (!this.canScroll())
|
|
6526
|
+
if (!this.canScroll())
|
|
6379
6527
|
return true;
|
|
6380
|
-
|
|
6381
|
-
const intersection = this.firstElementIntersection()[0];
|
|
6382
|
-
if (!intersection) {
|
|
6383
|
-
return this.firstElementVisibility()?.inline ?? true;
|
|
6384
|
-
}
|
|
6385
|
-
return intersection.isIntersecting;
|
|
6528
|
+
return this.scrollObserver.isAtStart();
|
|
6386
6529
|
}, ...(ngDevMode ? [{ debugName: "isAtStart" }] : []));
|
|
6387
6530
|
this.isAtEnd = computed(() => {
|
|
6388
|
-
if (!this.canScroll())
|
|
6531
|
+
if (!this.canScroll())
|
|
6389
6532
|
return true;
|
|
6390
|
-
|
|
6391
|
-
const intersection = this.lastElementIntersection()[0];
|
|
6392
|
-
if (!intersection) {
|
|
6393
|
-
return this.lastElementVisibility()?.inline ?? true;
|
|
6394
|
-
}
|
|
6395
|
-
return intersection.isIntersecting;
|
|
6533
|
+
return this.scrollObserver.isAtEnd();
|
|
6396
6534
|
}, ...(ngDevMode ? [{ debugName: "isAtEnd" }] : []));
|
|
6397
6535
|
this.enableDividerAnimations = signal(false, ...(ngDevMode ? [{ debugName: "enableDividerAnimations" }] : []));
|
|
6398
6536
|
this.hostClassBindings = signalHostClasses({
|
|
@@ -6403,24 +6541,8 @@ class OverlayBodyComponent {
|
|
|
6403
6541
|
'et-scrollable-body--is-at-start': computed(() => (this.dynamicDividersEnabled() ? this.isAtStart() : false)),
|
|
6404
6542
|
'et-scrollable-body--is-at-end': computed(() => (this.dynamicDividersEnabled() ? this.isAtEnd() : false)),
|
|
6405
6543
|
});
|
|
6406
|
-
effect(() =>
|
|
6407
|
-
|
|
6408
|
-
const firstElement = this.firstElement()?.nativeElement;
|
|
6409
|
-
const lastElement = this.lastElement()?.nativeElement;
|
|
6410
|
-
if (!scrollable || !firstElement || !lastElement) {
|
|
6411
|
-
return;
|
|
6412
|
-
}
|
|
6413
|
-
this.firstElementVisibility.set(isElementVisible({
|
|
6414
|
-
container: scrollable,
|
|
6415
|
-
element: firstElement,
|
|
6416
|
-
}));
|
|
6417
|
-
this.lastElementVisibility.set(isElementVisible({
|
|
6418
|
-
container: scrollable,
|
|
6419
|
-
element: lastElement,
|
|
6420
|
-
}));
|
|
6421
|
-
// We need to wait one frame before enabling animations to prevent a animation from playing during initial render.
|
|
6422
|
-
nextFrame(() => this.enableDividerAnimations.set(true));
|
|
6423
|
-
});
|
|
6544
|
+
effect(() => this.scrollObserver.enabled.set(this.dynamicDividersEnabled()));
|
|
6545
|
+
nextFrame(() => this.enableDividerAnimations.set(true));
|
|
6424
6546
|
}
|
|
6425
6547
|
ngOnInit() {
|
|
6426
6548
|
if (!this.overlayRef) {
|
|
@@ -6435,19 +6557,19 @@ class OverlayBodyComponent {
|
|
|
6435
6557
|
this.elementRef.nativeElement.scrollTo({ top: 0, behavior });
|
|
6436
6558
|
}
|
|
6437
6559
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: OverlayBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6438
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
6560
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.1", type: OverlayBodyComponent, isStandalone: true, selector: "[et-overlay-body], et-overlay-body", inputs: { dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "et-overlay-body" }, providers: [
|
|
6439
6561
|
{
|
|
6440
6562
|
provide: OVERLAY_BODY_TOKEN,
|
|
6441
6563
|
useExisting: OverlayBodyComponent,
|
|
6442
6564
|
},
|
|
6443
6565
|
provideBoundaryElement(),
|
|
6444
|
-
],
|
|
6566
|
+
], hostDirectives: [{ directive: i1$1.ScrollObserverDirective }], ngImport: i0, template: `
|
|
6445
6567
|
<div class="et-overlay-body-container">
|
|
6446
|
-
<div
|
|
6568
|
+
<div class="et-overlay-body-start-element" etScrollObserverStart></div>
|
|
6447
6569
|
<ng-content />
|
|
6448
|
-
<div
|
|
6570
|
+
<div class="et-overlay-body-end-element" etScrollObserverEnd></div>
|
|
6449
6571
|
</div>
|
|
6450
|
-
`, isInline: true }); }
|
|
6572
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: ScrollObserverStartDirective, selector: "[etScrollObserverStart]" }, { kind: "directive", type: ScrollObserverEndDirective, selector: "[etScrollObserverEnd]" }] }); }
|
|
6451
6573
|
}
|
|
6452
6574
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: OverlayBodyComponent, decorators: [{
|
|
6453
6575
|
type: Component,
|
|
@@ -6455,11 +6577,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
6455
6577
|
selector: '[et-overlay-body], et-overlay-body',
|
|
6456
6578
|
template: `
|
|
6457
6579
|
<div class="et-overlay-body-container">
|
|
6458
|
-
<div
|
|
6580
|
+
<div class="et-overlay-body-start-element" etScrollObserverStart></div>
|
|
6459
6581
|
<ng-content />
|
|
6460
|
-
<div
|
|
6582
|
+
<div class="et-overlay-body-end-element" etScrollObserverEnd></div>
|
|
6461
6583
|
</div>
|
|
6462
6584
|
`,
|
|
6585
|
+
imports: [ScrollObserverStartDirective, ScrollObserverEndDirective],
|
|
6586
|
+
hostDirectives: [ScrollObserverDirective],
|
|
6463
6587
|
providers: [
|
|
6464
6588
|
{
|
|
6465
6589
|
provide: OVERLAY_BODY_TOKEN,
|
|
@@ -6471,7 +6595,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
6471
6595
|
class: 'et-overlay-body',
|
|
6472
6596
|
},
|
|
6473
6597
|
}]
|
|
6474
|
-
}], ctorParameters: () => [], propDecorators: { dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }]
|
|
6598
|
+
}], ctorParameters: () => [], propDecorators: { dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }] } });
|
|
6475
6599
|
|
|
6476
6600
|
class OverlayCloseDirective {
|
|
6477
6601
|
constructor() {
|
|
@@ -6515,17 +6639,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
6515
6639
|
class OverlayContainerComponent extends CdkDialogContainer {
|
|
6516
6640
|
constructor() {
|
|
6517
6641
|
super();
|
|
6518
|
-
this.
|
|
6642
|
+
this.parentColorProvider = inject(COLOR_PROVIDER, { optional: true, skipSelf: true });
|
|
6643
|
+
this.parentSurfaceProvider = inject(SURFACE_PROVIDER, { optional: true, skipSelf: true });
|
|
6644
|
+
this.surfaceThemes = injectSurfaceThemes({ optional: true });
|
|
6645
|
+
this.surfaceContextTracker = injectSurfaceContextTracker();
|
|
6519
6646
|
this.destroyRef = inject(DestroyRef);
|
|
6520
|
-
this.
|
|
6647
|
+
this.colorProvider = inject(COLOR_PROVIDER);
|
|
6648
|
+
this.surfaceProvider = inject(SURFACE_PROVIDER);
|
|
6521
6649
|
this.rootBoundary = injectBoundaryElement();
|
|
6522
6650
|
this.animatedLifecycle = inject(ANIMATED_LIFECYCLE_TOKEN);
|
|
6523
6651
|
this.cdkOverlayRef = inject(OverlayRef$1);
|
|
6524
6652
|
this.elementRef = this._elementRef;
|
|
6653
|
+
this.resolvedSurfaceElevation = computed(() => {
|
|
6654
|
+
const parent = this.parentSurfaceProvider;
|
|
6655
|
+
if (!parent)
|
|
6656
|
+
return 1;
|
|
6657
|
+
const hasBackdrop = this._config.hasBackdrop !== false;
|
|
6658
|
+
if (hasBackdrop)
|
|
6659
|
+
return 1;
|
|
6660
|
+
return parent.elevation() + 1;
|
|
6661
|
+
}, ...(ngDevMode ? [{ debugName: "resolvedSurfaceElevation" }] : []));
|
|
6525
6662
|
this.overlayRef = null;
|
|
6526
6663
|
this.isContentAttached$ = new BehaviorSubject(false);
|
|
6527
|
-
if (this.
|
|
6528
|
-
this.
|
|
6664
|
+
if (this.parentColorProvider) {
|
|
6665
|
+
this.colorProvider.syncWithProvider(this.parentColorProvider);
|
|
6666
|
+
}
|
|
6667
|
+
if (this.surfaceThemes) {
|
|
6668
|
+
const parentType = this.parentSurfaceProvider?.surfaceType() ?? 'dark';
|
|
6669
|
+
const elevation = this.resolvedSurfaceElevation();
|
|
6670
|
+
const resolved = resolveSurfaceByElevation(this.surfaceThemes, parentType, elevation);
|
|
6671
|
+
if (resolved) {
|
|
6672
|
+
setInputSignal(this.surfaceProvider.surface, resolved.name);
|
|
6673
|
+
}
|
|
6674
|
+
const unregister = this.surfaceContextTracker.register(parentType, elevation, resolved?.neutralColor);
|
|
6675
|
+
this.destroyRef.onDestroy(unregister);
|
|
6529
6676
|
}
|
|
6530
6677
|
this.animatedLifecycle.state$
|
|
6531
6678
|
.pipe(filter((s) => s === 'entered'), tap(() => this._trapFocus()), take(1), takeUntilDestroyed())
|
|
@@ -6542,7 +6689,7 @@ class OverlayContainerComponent extends CdkDialogContainer {
|
|
|
6542
6689
|
});
|
|
6543
6690
|
}
|
|
6544
6691
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: OverlayContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6545
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: OverlayContainerComponent, isStandalone: true, selector: "et-overlay-container", host: { attributes: { "tabindex": "-1" }, properties: { "attr.aria-modal": "_config.ariaModal", "id": "_config.id", "attr.role": "_config.role", "attr.aria-labelledby": "_config.ariaLabel ? null : _ariaLabelledByQueue[0]", "attr.aria-label": "_config.ariaLabel", "attr.aria-describedby": "_config.ariaDescribedBy || null", "class.et-with-default-animation": "!_config.customAnimated" }, classAttribute: "et-overlay" }, providers: [provideBoundaryElement()], usesInheritance: true, hostDirectives: [{ directive: i1$1.AnimatedLifecycleDirective }, { directive: i1$1.
|
|
6692
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: OverlayContainerComponent, isStandalone: true, selector: "et-overlay-container", host: { attributes: { "tabindex": "-1" }, properties: { "attr.aria-modal": "_config.ariaModal", "id": "_config.id", "attr.role": "_config.role", "attr.aria-labelledby": "_config.ariaLabel ? null : _ariaLabelledByQueue[0]", "attr.aria-label": "_config.ariaLabel", "attr.aria-describedby": "_config.ariaDescribedBy || null", "class.et-with-default-animation": "!_config.customAnimated" }, classAttribute: "et-overlay" }, providers: [provideBoundaryElement()], usesInheritance: true, hostDirectives: [{ directive: i1$1.AnimatedLifecycleDirective }, { directive: i1$1.ProvideColorDirective }, { directive: i1$1.SurfacedDirective }, { directive: i1$1.ProvideSurfaceDirective }], ngImport: i0, template: `
|
|
6546
6693
|
<div class="et-overlay-container-drag-handle"></div>
|
|
6547
6694
|
<ng-template cdkPortalOutlet />
|
|
6548
6695
|
`, isInline: true, styles: [".et-overlay{--et-overlay-padding-inline: 16px;--et-overlay-padding-block: 16px;--et-overlay-header-padding-block-end: 16px;--et-overlay-body-padding-block: 0;--et-overlay-footer-padding-block-start: 16px;--et-overlay-body-divider-color: #565656;--et-overlay-body-min-block-size: 100px;--_et-overlay-drag-handle-inline-size: 32px;--_et-overlay-drag-handle-block-size: 4px;--_et-overlay-drag-handle-block-margin: 22px;--_et-overlay-drag-handle-color: #565656;--_et-overlay-drag-handle-radius: 5px;position:relative;display:grid;overflow:hidden;pointer-events:all;outline:none;box-sizing:border-box;width:100%}.et-overlay>:nth-child(2){overflow:auto}.et-overlay>:nth-child(2):not(.et-overlay-main){display:grid}.et-overlay.et-overlay--bottom-sheet .et-overlay-container-drag-handle{display:flex}.et-overlay:has(.et-overlay-main){overflow:visible}.et-overlay:has(.et-overlay-sidebar-host){overflow:hidden}.et-overlay:has(.et-overlay-sidebar-host)>:nth-child(2){display:grid;grid-template-columns:0 1fr}.et-overlay:has(.et-overlay-sidebar-host):has(.et-overlay-sidebar--visible)>:nth-child(2){grid-template-columns:auto 1fr}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-host{display:grid;min-block-size:0}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-page{display:grid;grid-template-rows:minmax(0,1fr)}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-page>*{overflow:auto}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-page>*:not(.et-overlay-main){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.et-overlay-sidebar-host{overflow:auto}.et-overlay-main{display:grid;grid-template-rows:minmax(0,1fr);overflow:auto}.et-overlay-main:has(.et-overlay-header):has(.et-overlay-body):has(.et-overlay-footer){grid-template-rows:auto minmax(var(--et-overlay-body-min-block-size),1fr) auto}.et-overlay-main:has(.et-overlay-header):has(.et-overlay-body){grid-template-rows:auto minmax(var(--et-overlay-body-min-block-size),1fr)}.et-overlay-main:has(.et-overlay-body):has(.et-overlay-footer){grid-template-rows:minmax(var(--et-overlay-body-min-block-size),1fr) auto}.et-overlay-main:not(:has(.et-overlay-footer)){grid-template-rows:minmax(var(--et-overlay-body-min-block-size),1fr) auto}.et-overlay-container-drag-handle{block-size:var(--_et-overlay-drag-handle-block-size);margin-block:var(--_et-overlay-drag-handle-block-margin);display:none;justify-content:center}.et-overlay-container-drag-handle:before{content:\"\";position:static;inline-size:var(--_et-overlay-drag-handle-inline-size);block-size:var(--_et-overlay-drag-handle-block-size);background-color:var(--_et-overlay-drag-handle-color);border-radius:var(--_et-overlay-drag-handle-radius)}.et-overlay-body{display:grid;overflow:auto;padding-inline:var(--et-overlay-padding-inline);padding-block:var(--et-overlay-body-padding-block);grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr)}.et-overlay-body:has(.et-overlay-router-outlet-host){padding:0;overflow:visible}.et-overlay-body:has(.et-overlay-router-outlet-host) .et-overlay-body-container{display:grid;grid-auto-rows:minmax(0,1fr);min-height:0}.et-overlay-body:has(.et-overlay-router-outlet-host) .et-overlay-router-outlet-host{display:grid}.et-overlay-body:has(.et-overlay-router-outlet-host) .et-overlay-router-outlet-page{padding-inline:var(--et-overlay-padding-inline);padding-block:var(--et-overlay-body-padding-block);overflow-x:hidden;overflow-y:auto;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr)}.et-overlay-body.et-overlay-body--enable-divider-animations{transition:border-color .3s var(--ease-1)}.et-overlay-main:has(.et-overlay-header) .et-overlay-body.et-overlay-body--render-dividers{border-block-start:1px solid var(--et-overlay-body-divider-color)}.et-overlay-main:has(.et-overlay-footer) .et-overlay-body.et-overlay-body--render-dividers{border-block-end:1px solid var(--et-overlay-body-divider-color)}.et-overlay-body.et-overlay-body--render-dividers.et-overlay-body--dynamic-dividers{border-color:var(--et-overlay-body-divider-color)}.et-overlay-body.et-overlay-body--render-dividers.et-overlay-body--dynamic-dividers.et-scrollable-body--is-at-start{border-block-start-color:transparent}.et-overlay-body.et-overlay-body--render-dividers.et-overlay-body--dynamic-dividers.et-scrollable-body--is-at-end{border-block-end-color:transparent}.et-overlay-body .et-overlay-body-container{position:relative;min-block-size:min-content}.et-overlay-body .et-overlay-body-container .et-overlay-body-start-element,.et-overlay-body .et-overlay-body-container .et-overlay-body-end-element{position:absolute;block-size:1px;pointer-events:none}.et-overlay-body .et-overlay-body-container .et-overlay-body-start-element{inset-inline:1px;inset-block-start:1px}.et-overlay-body .et-overlay-body-container .et-overlay-body-end-element{inset-inline:1px;inset-block-end:1px}.et-overlay-header{padding-block-start:var(--et-overlay-padding-block);padding-inline:var(--et-overlay-padding-inline);padding-block-end:var(--et-overlay-header-padding-block-end)}.et-overlay-footer{padding-block-end:var(--et-overlay-padding-block);padding-inline:var(--et-overlay-padding-inline);padding-block-start:var(--et-overlay-footer-padding-block-start)}.et-overlay-pane{pointer-events:none}.et-overlay.et-with-default-animation:after{content:\"\";position:absolute;background-color:inherit}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-leave-to{transform:translate(var(--origin-translate-x, 0),var(--origin-translate-y, 0)) scale(var(--origin-scale-x, 0),var(--origin-scale-y, 0))!important;border-radius:min(250px,var(--origin-width, 0px) / 2,var(--origin-height, 0px) / 2);opacity:0}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-enter-active{transition:transform .4s var(--ease-out-5),border-radius .4s var(--ease-out-5),opacity .15s linear}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-enter-active{transition:transform .4s var(--ease-spring-1),border-radius .4s var(--ease-spring-1),opacity .15s linear}}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-leave-active{transition:transform .3s var(--ease-in-out-5),border-radius .3s var(--ease-in-out-5),opacity .15s linear .1s}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-overlay--full-screen-dialog--reduced-animation.et-animation-enter-active{transition:transform .3s var(--ease-out-5),border-radius .3s var(--ease-out-5),opacity .15s linear}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-overlay--full-screen-dialog--reduced-animation.et-animation-enter-active{transition:transform .3s var(--ease-spring-2),opacity .3s var(--ease-out-5),border-radius .3s var(--ease-spring-2)}}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-overlay--full-screen-dialog--reduced-animation.et-animation-leave-active{transition:transform .15s var(--ease-in-5),border-radius .15s var(--ease-in-5),opacity .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-leave-to{transform:translateY(100%)!important}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet:after{inset-inline:0;inset-block-end:-50px;block-size:50px}.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-leave-to{transform:translateY(-100%)!important}.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--top-sheet:after{inset-inline:0;inset-block-start:-50px;block-size:50px}.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-leave-to{transform:translate(-100%)!important}.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--left-sheet:after{inset-inline-start:-50px;inset-block:0;inline-size:50px}.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-leave-to{transform:translate(100%)!important}.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--right-sheet:after{inset-inline-end:-50px;inset-block:0;inline-size:50px}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-enter-from{opacity:0!important;transform:scale(.85)!important}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-leave-to{opacity:0!important;transform:scale(.7)!important}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-enter-active{transition:transform .3s var(--ease-out-5),opacity .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-enter-active{transition:transform .3s var(--ease-spring-2),opacity .3s var(--ease-out-5)}}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-leave-active{transition:transform .15s var(--ease-out-5),opacity .15s var(--ease-out-5)}.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-leave-to{transform:translate(var(--origin-translate-x, 0),var(--origin-translate-y, 0)) scale(var(--origin-scale-x, .85),var(--origin-scale-y, .85))!important;opacity:0}.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-enter-active{transition:transform .3s var(--ease-out-5),opacity .15s linear}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-enter-active{transition:transform .3s var(--ease-spring-1),opacity .15s linear}}.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-leave-active{transition:transform .15s var(--ease-in-5),opacity .15s linear}.et-overlay-backdrop--hidden{display:none!important}\n"], dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
@@ -6562,7 +6709,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
6562
6709
|
'[attr.aria-label]': '_config.ariaLabel',
|
|
6563
6710
|
'[attr.aria-describedby]': '_config.ariaDescribedBy || null',
|
|
6564
6711
|
'[class.et-with-default-animation]': '!_config.customAnimated',
|
|
6565
|
-
}, imports: [CdkPortalOutlet], hostDirectives: [AnimatedLifecycleDirective, ProvideThemeDirective], providers: [provideBoundaryElement()], styles: [".et-overlay{--et-overlay-padding-inline: 16px;--et-overlay-padding-block: 16px;--et-overlay-header-padding-block-end: 16px;--et-overlay-body-padding-block: 0;--et-overlay-footer-padding-block-start: 16px;--et-overlay-body-divider-color: #565656;--et-overlay-body-min-block-size: 100px;--_et-overlay-drag-handle-inline-size: 32px;--_et-overlay-drag-handle-block-size: 4px;--_et-overlay-drag-handle-block-margin: 22px;--_et-overlay-drag-handle-color: #565656;--_et-overlay-drag-handle-radius: 5px;position:relative;display:grid;overflow:hidden;pointer-events:all;outline:none;box-sizing:border-box;width:100%}.et-overlay>:nth-child(2){overflow:auto}.et-overlay>:nth-child(2):not(.et-overlay-main){display:grid}.et-overlay.et-overlay--bottom-sheet .et-overlay-container-drag-handle{display:flex}.et-overlay:has(.et-overlay-main){overflow:visible}.et-overlay:has(.et-overlay-sidebar-host){overflow:hidden}.et-overlay:has(.et-overlay-sidebar-host)>:nth-child(2){display:grid;grid-template-columns:0 1fr}.et-overlay:has(.et-overlay-sidebar-host):has(.et-overlay-sidebar--visible)>:nth-child(2){grid-template-columns:auto 1fr}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-host{display:grid;min-block-size:0}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-page{display:grid;grid-template-rows:minmax(0,1fr)}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-page>*{overflow:auto}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-page>*:not(.et-overlay-main){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.et-overlay-sidebar-host{overflow:auto}.et-overlay-main{display:grid;grid-template-rows:minmax(0,1fr);overflow:auto}.et-overlay-main:has(.et-overlay-header):has(.et-overlay-body):has(.et-overlay-footer){grid-template-rows:auto minmax(var(--et-overlay-body-min-block-size),1fr) auto}.et-overlay-main:has(.et-overlay-header):has(.et-overlay-body){grid-template-rows:auto minmax(var(--et-overlay-body-min-block-size),1fr)}.et-overlay-main:has(.et-overlay-body):has(.et-overlay-footer){grid-template-rows:minmax(var(--et-overlay-body-min-block-size),1fr) auto}.et-overlay-main:not(:has(.et-overlay-footer)){grid-template-rows:minmax(var(--et-overlay-body-min-block-size),1fr) auto}.et-overlay-container-drag-handle{block-size:var(--_et-overlay-drag-handle-block-size);margin-block:var(--_et-overlay-drag-handle-block-margin);display:none;justify-content:center}.et-overlay-container-drag-handle:before{content:\"\";position:static;inline-size:var(--_et-overlay-drag-handle-inline-size);block-size:var(--_et-overlay-drag-handle-block-size);background-color:var(--_et-overlay-drag-handle-color);border-radius:var(--_et-overlay-drag-handle-radius)}.et-overlay-body{display:grid;overflow:auto;padding-inline:var(--et-overlay-padding-inline);padding-block:var(--et-overlay-body-padding-block);grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr)}.et-overlay-body:has(.et-overlay-router-outlet-host){padding:0;overflow:visible}.et-overlay-body:has(.et-overlay-router-outlet-host) .et-overlay-body-container{display:grid;grid-auto-rows:minmax(0,1fr);min-height:0}.et-overlay-body:has(.et-overlay-router-outlet-host) .et-overlay-router-outlet-host{display:grid}.et-overlay-body:has(.et-overlay-router-outlet-host) .et-overlay-router-outlet-page{padding-inline:var(--et-overlay-padding-inline);padding-block:var(--et-overlay-body-padding-block);overflow-x:hidden;overflow-y:auto;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr)}.et-overlay-body.et-overlay-body--enable-divider-animations{transition:border-color .3s var(--ease-1)}.et-overlay-main:has(.et-overlay-header) .et-overlay-body.et-overlay-body--render-dividers{border-block-start:1px solid var(--et-overlay-body-divider-color)}.et-overlay-main:has(.et-overlay-footer) .et-overlay-body.et-overlay-body--render-dividers{border-block-end:1px solid var(--et-overlay-body-divider-color)}.et-overlay-body.et-overlay-body--render-dividers.et-overlay-body--dynamic-dividers{border-color:var(--et-overlay-body-divider-color)}.et-overlay-body.et-overlay-body--render-dividers.et-overlay-body--dynamic-dividers.et-scrollable-body--is-at-start{border-block-start-color:transparent}.et-overlay-body.et-overlay-body--render-dividers.et-overlay-body--dynamic-dividers.et-scrollable-body--is-at-end{border-block-end-color:transparent}.et-overlay-body .et-overlay-body-container{position:relative;min-block-size:min-content}.et-overlay-body .et-overlay-body-container .et-overlay-body-start-element,.et-overlay-body .et-overlay-body-container .et-overlay-body-end-element{position:absolute;block-size:1px;pointer-events:none}.et-overlay-body .et-overlay-body-container .et-overlay-body-start-element{inset-inline:1px;inset-block-start:1px}.et-overlay-body .et-overlay-body-container .et-overlay-body-end-element{inset-inline:1px;inset-block-end:1px}.et-overlay-header{padding-block-start:var(--et-overlay-padding-block);padding-inline:var(--et-overlay-padding-inline);padding-block-end:var(--et-overlay-header-padding-block-end)}.et-overlay-footer{padding-block-end:var(--et-overlay-padding-block);padding-inline:var(--et-overlay-padding-inline);padding-block-start:var(--et-overlay-footer-padding-block-start)}.et-overlay-pane{pointer-events:none}.et-overlay.et-with-default-animation:after{content:\"\";position:absolute;background-color:inherit}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-leave-to{transform:translate(var(--origin-translate-x, 0),var(--origin-translate-y, 0)) scale(var(--origin-scale-x, 0),var(--origin-scale-y, 0))!important;border-radius:min(250px,var(--origin-width, 0px) / 2,var(--origin-height, 0px) / 2);opacity:0}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-enter-active{transition:transform .4s var(--ease-out-5),border-radius .4s var(--ease-out-5),opacity .15s linear}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-enter-active{transition:transform .4s var(--ease-spring-1),border-radius .4s var(--ease-spring-1),opacity .15s linear}}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-leave-active{transition:transform .3s var(--ease-in-out-5),border-radius .3s var(--ease-in-out-5),opacity .15s linear .1s}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-overlay--full-screen-dialog--reduced-animation.et-animation-enter-active{transition:transform .3s var(--ease-out-5),border-radius .3s var(--ease-out-5),opacity .15s linear}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-overlay--full-screen-dialog--reduced-animation.et-animation-enter-active{transition:transform .3s var(--ease-spring-2),opacity .3s var(--ease-out-5),border-radius .3s var(--ease-spring-2)}}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-overlay--full-screen-dialog--reduced-animation.et-animation-leave-active{transition:transform .15s var(--ease-in-5),border-radius .15s var(--ease-in-5),opacity .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-leave-to{transform:translateY(100%)!important}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet:after{inset-inline:0;inset-block-end:-50px;block-size:50px}.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-leave-to{transform:translateY(-100%)!important}.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--top-sheet:after{inset-inline:0;inset-block-start:-50px;block-size:50px}.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-leave-to{transform:translate(-100%)!important}.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--left-sheet:after{inset-inline-start:-50px;inset-block:0;inline-size:50px}.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-leave-to{transform:translate(100%)!important}.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--right-sheet:after{inset-inline-end:-50px;inset-block:0;inline-size:50px}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-enter-from{opacity:0!important;transform:scale(.85)!important}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-leave-to{opacity:0!important;transform:scale(.7)!important}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-enter-active{transition:transform .3s var(--ease-out-5),opacity .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-enter-active{transition:transform .3s var(--ease-spring-2),opacity .3s var(--ease-out-5)}}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-leave-active{transition:transform .15s var(--ease-out-5),opacity .15s var(--ease-out-5)}.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-leave-to{transform:translate(var(--origin-translate-x, 0),var(--origin-translate-y, 0)) scale(var(--origin-scale-x, .85),var(--origin-scale-y, .85))!important;opacity:0}.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-enter-active{transition:transform .3s var(--ease-out-5),opacity .15s linear}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-enter-active{transition:transform .3s var(--ease-spring-1),opacity .15s linear}}.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-leave-active{transition:transform .15s var(--ease-in-5),opacity .15s linear}.et-overlay-backdrop--hidden{display:none!important}\n"] }]
|
|
6712
|
+
}, imports: [CdkPortalOutlet], hostDirectives: [AnimatedLifecycleDirective, ProvideColorDirective, SurfacedDirective, ProvideSurfaceDirective], providers: [provideBoundaryElement()], styles: [".et-overlay{--et-overlay-padding-inline: 16px;--et-overlay-padding-block: 16px;--et-overlay-header-padding-block-end: 16px;--et-overlay-body-padding-block: 0;--et-overlay-footer-padding-block-start: 16px;--et-overlay-body-divider-color: #565656;--et-overlay-body-min-block-size: 100px;--_et-overlay-drag-handle-inline-size: 32px;--_et-overlay-drag-handle-block-size: 4px;--_et-overlay-drag-handle-block-margin: 22px;--_et-overlay-drag-handle-color: #565656;--_et-overlay-drag-handle-radius: 5px;position:relative;display:grid;overflow:hidden;pointer-events:all;outline:none;box-sizing:border-box;width:100%}.et-overlay>:nth-child(2){overflow:auto}.et-overlay>:nth-child(2):not(.et-overlay-main){display:grid}.et-overlay.et-overlay--bottom-sheet .et-overlay-container-drag-handle{display:flex}.et-overlay:has(.et-overlay-main){overflow:visible}.et-overlay:has(.et-overlay-sidebar-host){overflow:hidden}.et-overlay:has(.et-overlay-sidebar-host)>:nth-child(2){display:grid;grid-template-columns:0 1fr}.et-overlay:has(.et-overlay-sidebar-host):has(.et-overlay-sidebar--visible)>:nth-child(2){grid-template-columns:auto 1fr}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-host{display:grid;min-block-size:0}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-page{display:grid;grid-template-rows:minmax(0,1fr)}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-page>*{overflow:auto}.et-overlay:has(.et-overlay-sidebar-host) .et-overlay-router-outlet-page>*:not(.et-overlay-main){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.et-overlay-sidebar-host{overflow:auto}.et-overlay-main{display:grid;grid-template-rows:minmax(0,1fr);overflow:auto}.et-overlay-main:has(.et-overlay-header):has(.et-overlay-body):has(.et-overlay-footer){grid-template-rows:auto minmax(var(--et-overlay-body-min-block-size),1fr) auto}.et-overlay-main:has(.et-overlay-header):has(.et-overlay-body){grid-template-rows:auto minmax(var(--et-overlay-body-min-block-size),1fr)}.et-overlay-main:has(.et-overlay-body):has(.et-overlay-footer){grid-template-rows:minmax(var(--et-overlay-body-min-block-size),1fr) auto}.et-overlay-main:not(:has(.et-overlay-footer)){grid-template-rows:minmax(var(--et-overlay-body-min-block-size),1fr) auto}.et-overlay-container-drag-handle{block-size:var(--_et-overlay-drag-handle-block-size);margin-block:var(--_et-overlay-drag-handle-block-margin);display:none;justify-content:center}.et-overlay-container-drag-handle:before{content:\"\";position:static;inline-size:var(--_et-overlay-drag-handle-inline-size);block-size:var(--_et-overlay-drag-handle-block-size);background-color:var(--_et-overlay-drag-handle-color);border-radius:var(--_et-overlay-drag-handle-radius)}.et-overlay-body{display:grid;overflow:auto;padding-inline:var(--et-overlay-padding-inline);padding-block:var(--et-overlay-body-padding-block);grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr)}.et-overlay-body:has(.et-overlay-router-outlet-host){padding:0;overflow:visible}.et-overlay-body:has(.et-overlay-router-outlet-host) .et-overlay-body-container{display:grid;grid-auto-rows:minmax(0,1fr);min-height:0}.et-overlay-body:has(.et-overlay-router-outlet-host) .et-overlay-router-outlet-host{display:grid}.et-overlay-body:has(.et-overlay-router-outlet-host) .et-overlay-router-outlet-page{padding-inline:var(--et-overlay-padding-inline);padding-block:var(--et-overlay-body-padding-block);overflow-x:hidden;overflow-y:auto;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr)}.et-overlay-body.et-overlay-body--enable-divider-animations{transition:border-color .3s var(--ease-1)}.et-overlay-main:has(.et-overlay-header) .et-overlay-body.et-overlay-body--render-dividers{border-block-start:1px solid var(--et-overlay-body-divider-color)}.et-overlay-main:has(.et-overlay-footer) .et-overlay-body.et-overlay-body--render-dividers{border-block-end:1px solid var(--et-overlay-body-divider-color)}.et-overlay-body.et-overlay-body--render-dividers.et-overlay-body--dynamic-dividers{border-color:var(--et-overlay-body-divider-color)}.et-overlay-body.et-overlay-body--render-dividers.et-overlay-body--dynamic-dividers.et-scrollable-body--is-at-start{border-block-start-color:transparent}.et-overlay-body.et-overlay-body--render-dividers.et-overlay-body--dynamic-dividers.et-scrollable-body--is-at-end{border-block-end-color:transparent}.et-overlay-body .et-overlay-body-container{position:relative;min-block-size:min-content}.et-overlay-body .et-overlay-body-container .et-overlay-body-start-element,.et-overlay-body .et-overlay-body-container .et-overlay-body-end-element{position:absolute;block-size:1px;pointer-events:none}.et-overlay-body .et-overlay-body-container .et-overlay-body-start-element{inset-inline:1px;inset-block-start:1px}.et-overlay-body .et-overlay-body-container .et-overlay-body-end-element{inset-inline:1px;inset-block-end:1px}.et-overlay-header{padding-block-start:var(--et-overlay-padding-block);padding-inline:var(--et-overlay-padding-inline);padding-block-end:var(--et-overlay-header-padding-block-end)}.et-overlay-footer{padding-block-end:var(--et-overlay-padding-block);padding-inline:var(--et-overlay-padding-inline);padding-block-start:var(--et-overlay-footer-padding-block-start)}.et-overlay-pane{pointer-events:none}.et-overlay.et-with-default-animation:after{content:\"\";position:absolute;background-color:inherit}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-leave-to{transform:translate(var(--origin-translate-x, 0),var(--origin-translate-y, 0)) scale(var(--origin-scale-x, 0),var(--origin-scale-y, 0))!important;border-radius:min(250px,var(--origin-width, 0px) / 2,var(--origin-height, 0px) / 2);opacity:0}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-enter-active{transition:transform .4s var(--ease-out-5),border-radius .4s var(--ease-out-5),opacity .15s linear}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-enter-active{transition:transform .4s var(--ease-spring-1),border-radius .4s var(--ease-spring-1),opacity .15s linear}}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-animation-leave-active{transition:transform .3s var(--ease-in-out-5),border-radius .3s var(--ease-in-out-5),opacity .15s linear .1s}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-overlay--full-screen-dialog--reduced-animation.et-animation-enter-active{transition:transform .3s var(--ease-out-5),border-radius .3s var(--ease-out-5),opacity .15s linear}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-overlay--full-screen-dialog--reduced-animation.et-animation-enter-active{transition:transform .3s var(--ease-spring-2),opacity .3s var(--ease-out-5),border-radius .3s var(--ease-spring-2)}}.et-overlay.et-with-default-animation.et-overlay--full-screen-dialog.et-overlay--full-screen-dialog--reduced-animation.et-animation-leave-active{transition:transform .15s var(--ease-in-5),border-radius .15s var(--ease-in-5),opacity .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-leave-to{transform:translateY(100%)!important}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--bottom-sheet:after{inset-inline:0;inset-block-end:-50px;block-size:50px}.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-leave-to{transform:translateY(-100%)!important}.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--top-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--top-sheet:after{inset-inline:0;inset-block-start:-50px;block-size:50px}.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-leave-to{transform:translate(-100%)!important}.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--left-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--left-sheet:after{inset-inline-start:-50px;inset-block:0;inline-size:50px}.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-leave-to{transform:translate(100%)!important}.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-enter-active{transition:transform .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-enter-active{transition:transform .3s var(--ease-spring-1)}}.et-overlay.et-with-default-animation.et-overlay--right-sheet.et-animation-leave-active{transition:transform .15s var(--ease-in-5)}.et-overlay.et-with-default-animation.et-overlay--right-sheet:after{inset-inline-end:-50px;inset-block:0;inline-size:50px}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-enter-from{opacity:0!important;transform:scale(.85)!important}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-leave-to{opacity:0!important;transform:scale(.7)!important}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-enter-active{transition:transform .3s var(--ease-out-5),opacity .3s var(--ease-out-5)}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-enter-active{transition:transform .3s var(--ease-spring-2),opacity .3s var(--ease-out-5)}}.et-overlay.et-with-default-animation.et-overlay--dialog.et-animation-leave-active{transition:transform .15s var(--ease-out-5),opacity .15s var(--ease-out-5)}.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-enter-from,.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-leave-to{transform:translate(var(--origin-translate-x, 0),var(--origin-translate-y, 0)) scale(var(--origin-scale-x, .85),var(--origin-scale-y, .85))!important;opacity:0}.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-enter-active{transition:transform .3s var(--ease-out-5),opacity .15s linear}@supports (transition-timing-function: linear(0,1)){.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-enter-active{transition:transform .3s var(--ease-spring-1),opacity .15s linear}}.et-overlay.et-with-default-animation.et-overlay--anchored-dialog.et-animation-leave-active{transition:transform .15s var(--ease-in-5),opacity .15s linear}.et-overlay-backdrop--hidden{display:none!important}\n"] }]
|
|
6566
6713
|
}], ctorParameters: () => [] });
|
|
6567
6714
|
|
|
6568
6715
|
const OVERLAY_FOOTER_TOKEN = new InjectionToken('OVERLAY_FOOTER_TOKEN');
|
|
@@ -7703,43 +7850,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
7703
7850
|
const [provideOverlayScrollBlocker, injectOverlayScrollBlocker] = createRootProvider(() => {
|
|
7704
7851
|
const overlayManager = injectOverlayManager();
|
|
7705
7852
|
const document = inject(DOCUMENT);
|
|
7706
|
-
const angularRoot = injectAngularRootElement();
|
|
7707
7853
|
const renderer = injectRenderer();
|
|
7854
|
+
const documentScrollState = signalElementScrollState(createDocumentElementSignal());
|
|
7708
7855
|
const root = document.documentElement;
|
|
7709
|
-
let
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
hasOpenOverlays
|
|
7713
|
-
|
|
7714
|
-
})
|
|
7715
|
-
.pipe(switchMap((data) => {
|
|
7716
|
-
if (!data.hasOpenOverlays || !data.angularRoot)
|
|
7717
|
-
return of(data);
|
|
7718
|
-
return fromEvent(window, 'resize').pipe(startWith(data), map(() => data));
|
|
7719
|
-
}), tap(({ hasOpenOverlays, angularRoot }) => {
|
|
7720
|
-
if (!angularRoot)
|
|
7721
|
-
return;
|
|
7722
|
-
if (hasOpenOverlays && elementCanScroll(root)) {
|
|
7723
|
-
if (isEnabled)
|
|
7724
|
-
return;
|
|
7725
|
-
renderer.setStyle(angularRoot, {
|
|
7726
|
-
contain: 'content',
|
|
7727
|
-
});
|
|
7856
|
+
let savedTop = null;
|
|
7857
|
+
combineLatest([toObservable(overlayManager.hasOpenOverlays), toObservable(documentScrollState)])
|
|
7858
|
+
.pipe(tap(([hasOpenOverlays, scrollState]) => {
|
|
7859
|
+
if (hasOpenOverlays && scrollState.canScrollVertically && savedTop === null) {
|
|
7860
|
+
savedTop = document.defaultView?.scrollY ?? 0;
|
|
7728
7861
|
renderer.setStyle(root, {
|
|
7729
|
-
|
|
7730
|
-
|
|
7862
|
+
position: 'fixed',
|
|
7863
|
+
top: `-${savedTop}px`,
|
|
7864
|
+
left: '0',
|
|
7865
|
+
right: '0',
|
|
7866
|
+
'overflow-y': 'scroll',
|
|
7731
7867
|
});
|
|
7732
|
-
isEnabled = true;
|
|
7733
7868
|
}
|
|
7734
|
-
else if (!hasOpenOverlays &&
|
|
7869
|
+
else if (!hasOpenOverlays && savedTop !== null) {
|
|
7870
|
+
const top = savedTop;
|
|
7871
|
+
savedTop = null;
|
|
7735
7872
|
renderer.setStyle(root, {
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7873
|
+
position: null,
|
|
7874
|
+
top: null,
|
|
7875
|
+
left: null,
|
|
7876
|
+
right: null,
|
|
7877
|
+
'overflow-y': null,
|
|
7878
|
+
'scroll-behavior': 'auto',
|
|
7741
7879
|
});
|
|
7742
|
-
|
|
7880
|
+
document.defaultView?.scrollTo(0, top);
|
|
7881
|
+
renderer.setStyle(root, { 'scroll-behavior': null });
|
|
7743
7882
|
}
|
|
7744
7883
|
}), takeUntilDestroyed())
|
|
7745
7884
|
.subscribe();
|
|
@@ -7933,106 +8072,6 @@ const anchoredDialogOverlayStrategy = (config = {}) => {
|
|
|
7933
8072
|
};
|
|
7934
8073
|
};
|
|
7935
8074
|
|
|
7936
|
-
let nextUniqueId$4 = 0;
|
|
7937
|
-
const isTouchEvent$1 = (event) => {
|
|
7938
|
-
return event.type[0] === 't';
|
|
7939
|
-
};
|
|
7940
|
-
class SwipeHandlerService {
|
|
7941
|
-
constructor() {
|
|
7942
|
-
this._handlerMap = {};
|
|
7943
|
-
}
|
|
7944
|
-
startSwipe(event) {
|
|
7945
|
-
const handlerId = nextUniqueId$4++;
|
|
7946
|
-
const originClientX = isTouchEvent$1(event) ? event.targetTouches[0].clientX : event.clientX;
|
|
7947
|
-
const originClientY = isTouchEvent$1(event) ? event.targetTouches[0].clientY : event.clientY;
|
|
7948
|
-
const timestamp = Date.now();
|
|
7949
|
-
this._handlerMap[handlerId] = {
|
|
7950
|
-
originClientX,
|
|
7951
|
-
originClientY,
|
|
7952
|
-
timestamp,
|
|
7953
|
-
movementX: 0,
|
|
7954
|
-
movementY: 0,
|
|
7955
|
-
positiveMovementX: 0,
|
|
7956
|
-
positiveMovementY: 0,
|
|
7957
|
-
isScrolling: false,
|
|
7958
|
-
isSwiping: false,
|
|
7959
|
-
};
|
|
7960
|
-
return handlerId;
|
|
7961
|
-
}
|
|
7962
|
-
updateSwipe(handlerId, event) {
|
|
7963
|
-
const handler = this._getSwipeHandler(handlerId);
|
|
7964
|
-
if (!handler)
|
|
7965
|
-
return null;
|
|
7966
|
-
const { originClientX, originClientY, isSwiping, isScrolling } = handler;
|
|
7967
|
-
const currentClientX = isTouchEvent$1(event) ? event.targetTouches[0].clientX : event.clientX;
|
|
7968
|
-
const currentClientY = isTouchEvent$1(event) ? event.targetTouches[0].clientY : event.clientY;
|
|
7969
|
-
const movementX = (originClientX - currentClientX) * -1;
|
|
7970
|
-
const movementY = (originClientY - currentClientY) * -1;
|
|
7971
|
-
const positiveMovementX = Math.abs(movementX);
|
|
7972
|
-
const positiveMovementY = Math.abs(movementY);
|
|
7973
|
-
if (!isSwiping && !isScrolling) {
|
|
7974
|
-
if (positiveMovementY > positiveMovementX) {
|
|
7975
|
-
handler.isScrolling = true;
|
|
7976
|
-
}
|
|
7977
|
-
else {
|
|
7978
|
-
handler.isSwiping = true;
|
|
7979
|
-
}
|
|
7980
|
-
}
|
|
7981
|
-
handler.movementX = movementX;
|
|
7982
|
-
handler.movementY = movementY;
|
|
7983
|
-
handler.positiveMovementX = positiveMovementX;
|
|
7984
|
-
handler.positiveMovementY = positiveMovementY;
|
|
7985
|
-
return handler;
|
|
7986
|
-
}
|
|
7987
|
-
endSwipe(handlerId) {
|
|
7988
|
-
const handler = this._getSwipeHandler(handlerId);
|
|
7989
|
-
if (!handler)
|
|
7990
|
-
return null;
|
|
7991
|
-
const { movementX, movementY, timestamp, originClientX, originClientY, positiveMovementX, positiveMovementY } = handler;
|
|
7992
|
-
const timestampStart = timestamp;
|
|
7993
|
-
const timestampEnd = Date.now();
|
|
7994
|
-
const swipeTime = timestampEnd - timestampStart;
|
|
7995
|
-
const pixelPerMillisecondX = movementX ? movementX / swipeTime : 0;
|
|
7996
|
-
const pixelPerSecondX = pixelPerMillisecondX * 1000;
|
|
7997
|
-
const positivePixelPerSecondX = Math.abs(pixelPerSecondX);
|
|
7998
|
-
const pixelPerMillisecondY = movementY ? movementY / swipeTime : 0;
|
|
7999
|
-
const pixelPerSecondY = pixelPerMillisecondY * 1000;
|
|
8000
|
-
const positivePixelPerSecondY = Math.abs(pixelPerSecondY);
|
|
8001
|
-
delete this._handlerMap[handlerId];
|
|
8002
|
-
const swipeEnd = {
|
|
8003
|
-
positivePixelPerSecondX,
|
|
8004
|
-
positivePixelPerSecondY,
|
|
8005
|
-
pixelPerSecondX,
|
|
8006
|
-
pixelPerSecondY,
|
|
8007
|
-
movementX,
|
|
8008
|
-
movementY,
|
|
8009
|
-
originClientX,
|
|
8010
|
-
originClientY,
|
|
8011
|
-
positiveMovementX,
|
|
8012
|
-
positiveMovementY,
|
|
8013
|
-
};
|
|
8014
|
-
return swipeEnd;
|
|
8015
|
-
}
|
|
8016
|
-
cancelSwipe(handlerId) {
|
|
8017
|
-
delete this._handlerMap[handlerId];
|
|
8018
|
-
}
|
|
8019
|
-
_getSwipeHandler(handlerId) {
|
|
8020
|
-
const handler = this._handlerMap[handlerId];
|
|
8021
|
-
if (!handler) {
|
|
8022
|
-
return null;
|
|
8023
|
-
}
|
|
8024
|
-
return handler;
|
|
8025
|
-
}
|
|
8026
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SwipeHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8027
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SwipeHandlerService, providedIn: 'root' }); }
|
|
8028
|
-
}
|
|
8029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SwipeHandlerService, decorators: [{
|
|
8030
|
-
type: Injectable,
|
|
8031
|
-
args: [{
|
|
8032
|
-
providedIn: 'root',
|
|
8033
|
-
}]
|
|
8034
|
-
}] });
|
|
8035
|
-
|
|
8036
8075
|
const [provideBottomSheetStrategyDefaults, injectBottomSheetStrategyDefaults] = createStaticRootProvider({
|
|
8037
8076
|
width: '100%',
|
|
8038
8077
|
height: undefined,
|
|
@@ -8050,7 +8089,6 @@ const [provideBottomSheetStrategyDefaults, injectBottomSheetStrategyDefaults] =
|
|
|
8050
8089
|
});
|
|
8051
8090
|
const [provideBottomSheetStrategy, injectBottomSheetStrategy] = createRootProvider(() => {
|
|
8052
8091
|
const defaults = injectBottomSheetStrategyDefaults();
|
|
8053
|
-
const swipeHandlerService = inject(SwipeHandlerService);
|
|
8054
8092
|
const build = (config = {}) => {
|
|
8055
8093
|
const cfg = mergeOverlayBreakpointConfigs(defaults, config);
|
|
8056
8094
|
let dragToDismissRef;
|
|
@@ -8061,7 +8099,6 @@ const [provideBottomSheetStrategy, injectBottomSheetStrategy] = createRootProvid
|
|
|
8061
8099
|
config: cfg.dragToDismiss,
|
|
8062
8100
|
element: context.containerEl,
|
|
8063
8101
|
overlayRef: context.overlayRef,
|
|
8064
|
-
swipeHandlerService,
|
|
8065
8102
|
});
|
|
8066
8103
|
};
|
|
8067
8104
|
const detachDragToDismiss = () => {
|
|
@@ -8229,7 +8266,6 @@ const [provideLeftSheetStrategyDefaults, injectLeftSheetStrategyDefaults] = crea
|
|
|
8229
8266
|
});
|
|
8230
8267
|
const [provideLeftSheetStrategy, injectLeftSheetStrategy] = createRootProvider(() => {
|
|
8231
8268
|
const defaults = injectLeftSheetStrategyDefaults();
|
|
8232
|
-
const swipeHandlerService = inject(SwipeHandlerService);
|
|
8233
8269
|
const build = (config = {}) => {
|
|
8234
8270
|
const cfg = mergeOverlayBreakpointConfigs(defaults, config);
|
|
8235
8271
|
let dragToDismissRef;
|
|
@@ -8240,7 +8276,6 @@ const [provideLeftSheetStrategy, injectLeftSheetStrategy] = createRootProvider((
|
|
|
8240
8276
|
config: cfg.dragToDismiss,
|
|
8241
8277
|
element: context.containerEl,
|
|
8242
8278
|
overlayRef: context.overlayRef,
|
|
8243
|
-
swipeHandlerService,
|
|
8244
8279
|
});
|
|
8245
8280
|
};
|
|
8246
8281
|
const detachDragToDismiss = () => {
|
|
@@ -8295,7 +8330,6 @@ const [provideRightSheetStrategyDefaults, injectRightSheetStrategyDefaults] = cr
|
|
|
8295
8330
|
});
|
|
8296
8331
|
const [provideRightSheetStrategy, injectRightSheetStrategy] = createRootProvider(() => {
|
|
8297
8332
|
const defaults = injectRightSheetStrategyDefaults();
|
|
8298
|
-
const swipeHandlerService = inject(SwipeHandlerService);
|
|
8299
8333
|
const build = (config = {}) => {
|
|
8300
8334
|
const cfg = mergeOverlayBreakpointConfigs(defaults, config);
|
|
8301
8335
|
let dragToDismissRef;
|
|
@@ -8306,7 +8340,6 @@ const [provideRightSheetStrategy, injectRightSheetStrategy] = createRootProvider
|
|
|
8306
8340
|
config: cfg.dragToDismiss,
|
|
8307
8341
|
element: context.containerEl,
|
|
8308
8342
|
overlayRef: context.overlayRef,
|
|
8309
|
-
swipeHandlerService,
|
|
8310
8343
|
});
|
|
8311
8344
|
};
|
|
8312
8345
|
const detachDragToDismiss = () => {
|
|
@@ -8407,7 +8440,6 @@ const [provideTopSheetStrategyDefaults, injectTopSheetStrategyDefaults] = create
|
|
|
8407
8440
|
});
|
|
8408
8441
|
const [provideTopSheetStrategy, injectTopSheetStrategy] = createRootProvider(() => {
|
|
8409
8442
|
const defaults = injectTopSheetStrategyDefaults();
|
|
8410
|
-
const swipeHandlerService = inject(SwipeHandlerService);
|
|
8411
8443
|
const build = (config = {}) => {
|
|
8412
8444
|
const cfg = mergeOverlayBreakpointConfigs(defaults, config);
|
|
8413
8445
|
let dragToDismissRef;
|
|
@@ -8418,7 +8450,6 @@ const [provideTopSheetStrategy, injectTopSheetStrategy] = createRootProvider(()
|
|
|
8418
8450
|
config: cfg.dragToDismiss,
|
|
8419
8451
|
element: context.containerEl,
|
|
8420
8452
|
overlayRef: context.overlayRef,
|
|
8421
|
-
swipeHandlerService,
|
|
8422
8453
|
});
|
|
8423
8454
|
};
|
|
8424
8455
|
const detachDragToDismiss = () => {
|
|
@@ -8505,14 +8536,14 @@ const MENU_TEMPLATE = new InjectionToken('MENU_TEMPLATE');
|
|
|
8505
8536
|
class MenuContainerComponent {
|
|
8506
8537
|
constructor() {
|
|
8507
8538
|
this.animatedLifecycle = viewChild(ANIMATED_LIFECYCLE_TOKEN, ...(ngDevMode ? [{ debugName: "animatedLifecycle" }] : []));
|
|
8508
|
-
this.
|
|
8539
|
+
this.colorProvider = inject(COLOR_PROVIDER);
|
|
8509
8540
|
this.injector = inject(Injector);
|
|
8510
8541
|
this._trigger = inject(MENU_TRIGGER_TOKEN);
|
|
8511
8542
|
this.elementRef = inject(ElementRef);
|
|
8512
8543
|
this._menuTemplate = inject(MENU_TEMPLATE);
|
|
8513
8544
|
}
|
|
8514
|
-
|
|
8515
|
-
this.
|
|
8545
|
+
setColorFromProvider(provider) {
|
|
8546
|
+
this.colorProvider.syncWithProvider(provider);
|
|
8516
8547
|
}
|
|
8517
8548
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MenuContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8518
8549
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.1", type: MenuContainerComponent, isStandalone: true, selector: "et-menu-container", host: { classAttribute: "et-menu-container" }, providers: [
|
|
@@ -8520,7 +8551,7 @@ class MenuContainerComponent {
|
|
|
8520
8551
|
provide: MENU_CONTAINER,
|
|
8521
8552
|
useExisting: MenuContainerComponent,
|
|
8522
8553
|
},
|
|
8523
|
-
], viewQueries: [{ propertyName: "animatedLifecycle", first: true, predicate: ANIMATED_LIFECYCLE_TOKEN, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.
|
|
8554
|
+
], viewQueries: [{ propertyName: "animatedLifecycle", first: true, predicate: ANIMATED_LIFECYCLE_TOKEN, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.ProvideColorDirective }], ngImport: i0, template: `
|
|
8524
8555
|
<div class="et-menu-body" etAnimatedLifecycle>
|
|
8525
8556
|
<ng-container *ngTemplateOutlet="_menuTemplate; injector: injector" />
|
|
8526
8557
|
</div>
|
|
@@ -8534,7 +8565,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
8534
8565
|
</div>
|
|
8535
8566
|
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
8536
8567
|
class: 'et-menu-container',
|
|
8537
|
-
}, imports: [AnimatedLifecycleDirective, NgTemplateOutlet], hostDirectives: [
|
|
8568
|
+
}, imports: [AnimatedLifecycleDirective, NgTemplateOutlet], hostDirectives: [ProvideColorDirective], providers: [
|
|
8538
8569
|
{
|
|
8539
8570
|
provide: MENU_CONTAINER,
|
|
8540
8571
|
useExisting: MenuContainerComponent,
|
|
@@ -8553,7 +8584,7 @@ class MenuTriggerDirective {
|
|
|
8553
8584
|
constructor() {
|
|
8554
8585
|
this.elementRef = inject(ElementRef);
|
|
8555
8586
|
this.animatedOverlay = inject(AnimatedOverlayDirective);
|
|
8556
|
-
this.
|
|
8587
|
+
this.colorProvider = inject(COLOR_PROVIDER, { optional: true });
|
|
8557
8588
|
this.document = inject(DOCUMENT);
|
|
8558
8589
|
this.id = `et-menu-trigger-${uniqueId$5++}`;
|
|
8559
8590
|
this.isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
@@ -8607,7 +8638,7 @@ class MenuTriggerDirective {
|
|
|
8607
8638
|
return;
|
|
8608
8639
|
const menuRef = this.animatedOverlay.mount({
|
|
8609
8640
|
component: MenuContainerComponent,
|
|
8610
|
-
|
|
8641
|
+
colorProvider: this.colorProvider,
|
|
8611
8642
|
providers: [
|
|
8612
8643
|
{
|
|
8613
8644
|
provide: MENU_TEMPLATE,
|
|
@@ -9034,71 +9065,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
9034
9065
|
}]
|
|
9035
9066
|
}], propDecorators: { repeatContentCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "repeatContentCount", required: false }] }] } });
|
|
9036
9067
|
|
|
9037
|
-
// TODO: This needs to be redone, it's a mess...
|
|
9038
|
-
const getIntersectionInfo = (intersections) => {
|
|
9039
|
-
const reverseIntersections = [...intersections].reverse();
|
|
9040
|
-
const firstIntersecting = intersections.find((i) => i.intersectionRatio > 0);
|
|
9041
|
-
const lastIntersecting = reverseIntersections.find((i) => i.intersectionRatio > 0);
|
|
9042
|
-
const firstIntersectingIndex = intersections.findIndex((i) => i === firstIntersecting);
|
|
9043
|
-
const lastIntersectingIndex = intersections.findIndex((i) => i === lastIntersecting);
|
|
9044
|
-
if (!firstIntersecting || !lastIntersecting)
|
|
9045
|
-
return null;
|
|
9046
|
-
const greaterIntersecting = firstIntersecting.intersectionRatio > lastIntersecting.intersectionRatio ? firstIntersecting : lastIntersecting;
|
|
9047
|
-
const greaterIntersectingIndex = firstIntersecting.intersectionRatio > lastIntersecting.intersectionRatio
|
|
9048
|
-
? firstIntersectingIndex
|
|
9049
|
-
: lastIntersectingIndex;
|
|
9050
|
-
const hasFullIntersection = intersections.some((i) => i.intersectionRatio === 1);
|
|
9051
|
-
const hasMultipleFullIntersections = intersections.filter((i) => i.intersectionRatio === 1).length > 1;
|
|
9052
|
-
const firstFullIntersectionIndex = intersections.findIndex((i) => i.intersectionRatio === 1);
|
|
9053
|
-
const firstFullIntersection = intersections.find((i) => i.intersectionRatio === 1);
|
|
9054
|
-
const lastFullIntersection = reverseIntersections.find((i) => i.intersectionRatio === 1);
|
|
9055
|
-
const lastFullIntersectionIndex = intersections.findIndex((i) => i === lastFullIntersection);
|
|
9056
|
-
const firstNonIntersectingIndex = intersections.findIndex((i) => i.intersectionRatio === 0);
|
|
9057
|
-
const firstNonIntersection = intersections.find((i) => i.intersectionRatio === 0);
|
|
9058
|
-
const lastNonIntersection = reverseIntersections.find((i) => i.intersectionRatio === 0);
|
|
9059
|
-
const lastNonIntersectingIndex = intersections.findIndex((i) => i === lastNonIntersection);
|
|
9060
|
-
return {
|
|
9061
|
-
partial: {
|
|
9062
|
-
hasAny: !!firstIntersecting || !!lastIntersecting,
|
|
9063
|
-
hasMultiple: !!firstIntersecting || (!!lastIntersecting && firstIntersecting !== lastIntersecting),
|
|
9064
|
-
first: {
|
|
9065
|
-
intersection: firstIntersecting,
|
|
9066
|
-
index: firstIntersectingIndex,
|
|
9067
|
-
},
|
|
9068
|
-
last: {
|
|
9069
|
-
intersection: lastIntersecting,
|
|
9070
|
-
index: lastIntersectingIndex,
|
|
9071
|
-
},
|
|
9072
|
-
biggest: {
|
|
9073
|
-
intersection: greaterIntersecting,
|
|
9074
|
-
index: greaterIntersectingIndex,
|
|
9075
|
-
},
|
|
9076
|
-
},
|
|
9077
|
-
full: {
|
|
9078
|
-
hasAny: hasFullIntersection,
|
|
9079
|
-
hasMultiple: hasMultipleFullIntersections,
|
|
9080
|
-
first: {
|
|
9081
|
-
index: firstFullIntersectionIndex,
|
|
9082
|
-
intersection: firstFullIntersection,
|
|
9083
|
-
},
|
|
9084
|
-
last: {
|
|
9085
|
-
index: lastFullIntersectionIndex,
|
|
9086
|
-
intersection: lastFullIntersection,
|
|
9087
|
-
},
|
|
9088
|
-
},
|
|
9089
|
-
none: {
|
|
9090
|
-
first: {
|
|
9091
|
-
index: firstNonIntersectingIndex,
|
|
9092
|
-
intersection: firstNonIntersection,
|
|
9093
|
-
},
|
|
9094
|
-
last: {
|
|
9095
|
-
index: lastNonIntersectingIndex,
|
|
9096
|
-
intersection: lastNonIntersection,
|
|
9097
|
-
},
|
|
9098
|
-
},
|
|
9099
|
-
};
|
|
9100
|
-
};
|
|
9101
|
-
|
|
9102
9068
|
// Thresholds for the intersection observer.
|
|
9103
9069
|
const ELEMENT_INTERSECTION_THRESHOLD = [
|
|
9104
9070
|
// 5% steps
|
|
@@ -9113,56 +9079,47 @@ const ELEMENT_INTERSECTION_THRESHOLD = [
|
|
|
9113
9079
|
];
|
|
9114
9080
|
class ScrollableComponent {
|
|
9115
9081
|
constructor() {
|
|
9116
|
-
this.
|
|
9117
|
-
this._manualActiveNavigationIndex = signal(null, ...(ngDevMode ? [{ debugName: "_manualActiveNavigationIndex" }] : []));
|
|
9082
|
+
this.manualActiveNavigationIndex = signal(null, ...(ngDevMode ? [{ debugName: "manualActiveNavigationIndex" }] : []));
|
|
9118
9083
|
this.elementRef = inject(ElementRef);
|
|
9119
|
-
this.itemSize = input('auto', ...(ngDevMode ?
|
|
9120
|
-
this.direction = input('horizontal', ...(ngDevMode ?
|
|
9084
|
+
this.itemSize = input('auto', { ...(ngDevMode ? { debugName: "itemSize" } : {}), transform: typedBreakpointTransform() });
|
|
9085
|
+
this.direction = input('horizontal', { ...(ngDevMode ? { debugName: "direction" } : {}), transform: typedBreakpointTransform() });
|
|
9121
9086
|
this.scrollableRole = input(null, ...(ngDevMode ? [{ debugName: "scrollableRole" }] : []));
|
|
9122
9087
|
this.scrollableClass = input(null, ...(ngDevMode ? [{ debugName: "scrollableClass" }] : []));
|
|
9123
|
-
this.renderNavigation = input(false, { ...(ngDevMode ? { debugName: "renderNavigation" } : {}), transform:
|
|
9124
|
-
this.renderMasks = input(true, { ...(ngDevMode ? { debugName: "renderMasks" } : {}), transform:
|
|
9125
|
-
this.renderButtons = input(true, { ...(ngDevMode ? { debugName: "renderButtons" } : {}), transform:
|
|
9126
|
-
this.buttonPosition = input('inside', ...(ngDevMode ?
|
|
9127
|
-
this.renderScrollbars = input(false, { ...(ngDevMode ? { debugName: "renderScrollbars" } : {}), transform:
|
|
9128
|
-
this.stickyButtons = input(false, { ...(ngDevMode ? { debugName: "stickyButtons" } : {}), transform:
|
|
9129
|
-
this.cursorDragScroll = input(true, { ...(ngDevMode ? { debugName: "cursorDragScroll" } : {}), transform:
|
|
9130
|
-
this.disableActiveElementScrolling = input(false, { ...(ngDevMode ? { debugName: "disableActiveElementScrolling" } : {}), transform:
|
|
9131
|
-
this.scrollMode = input('container', ...(ngDevMode ?
|
|
9132
|
-
this.snap = input(false, { ...(ngDevMode ? { debugName: "snap" } : {}), transform:
|
|
9133
|
-
this.scrollMargin = input(0, { ...(ngDevMode ? { debugName: "scrollMargin" } : {}), transform:
|
|
9134
|
-
this.scrollOrigin = input('auto', ...(ngDevMode ?
|
|
9135
|
-
this.darkenNonIntersectingItems = input(false, { ...(ngDevMode ? { debugName: "darkenNonIntersectingItems" } : {}), transform:
|
|
9136
|
-
this.showLoadingTemplate = input(false, { ...(ngDevMode ? { debugName: "showLoadingTemplate" } : {}), transform:
|
|
9137
|
-
this.loadingTemplatePosition = input('end', ...(ngDevMode ?
|
|
9088
|
+
this.renderNavigation = input(false, { ...(ngDevMode ? { debugName: "renderNavigation" } : {}), transform: boolBreakpointTransform() });
|
|
9089
|
+
this.renderMasks = input(true, { ...(ngDevMode ? { debugName: "renderMasks" } : {}), transform: boolBreakpointTransform() });
|
|
9090
|
+
this.renderButtons = input(true, { ...(ngDevMode ? { debugName: "renderButtons" } : {}), transform: boolBreakpointTransform() });
|
|
9091
|
+
this.buttonPosition = input('inside', { ...(ngDevMode ? { debugName: "buttonPosition" } : {}), transform: typedBreakpointTransform() });
|
|
9092
|
+
this.renderScrollbars = input(false, { ...(ngDevMode ? { debugName: "renderScrollbars" } : {}), transform: boolBreakpointTransform() });
|
|
9093
|
+
this.stickyButtons = input(false, { ...(ngDevMode ? { debugName: "stickyButtons" } : {}), transform: boolBreakpointTransform() });
|
|
9094
|
+
this.cursorDragScroll = input(true, { ...(ngDevMode ? { debugName: "cursorDragScroll" } : {}), transform: boolBreakpointTransform() });
|
|
9095
|
+
this.disableActiveElementScrolling = input(false, { ...(ngDevMode ? { debugName: "disableActiveElementScrolling" } : {}), transform: boolBreakpointTransform() });
|
|
9096
|
+
this.scrollMode = input('container', { ...(ngDevMode ? { debugName: "scrollMode" } : {}), transform: typedBreakpointTransform() });
|
|
9097
|
+
this.snap = input(false, { ...(ngDevMode ? { debugName: "snap" } : {}), transform: boolBreakpointTransform() });
|
|
9098
|
+
this.scrollMargin = input(0, { ...(ngDevMode ? { debugName: "scrollMargin" } : {}), transform: numberBreakpointTransform() });
|
|
9099
|
+
this.scrollOrigin = input('auto', { ...(ngDevMode ? { debugName: "scrollOrigin" } : {}), transform: typedBreakpointTransform() });
|
|
9100
|
+
this.darkenNonIntersectingItems = input(false, { ...(ngDevMode ? { debugName: "darkenNonIntersectingItems" } : {}), transform: boolBreakpointTransform() });
|
|
9101
|
+
this.showLoadingTemplate = input(false, { ...(ngDevMode ? { debugName: "showLoadingTemplate" } : {}), transform: boolBreakpointTransform() });
|
|
9102
|
+
this.loadingTemplatePosition = input('end', { ...(ngDevMode ? { debugName: "loadingTemplatePosition" } : {}), transform: typedBreakpointTransform() });
|
|
9138
9103
|
this.scrollable = viewChild('scrollable', ...(ngDevMode ? [{ debugName: "scrollable" }] : []));
|
|
9139
|
-
this.
|
|
9140
|
-
this.lastElement = viewChild('lastElement', ...(ngDevMode ? [{ debugName: "lastElement" }] : []));
|
|
9104
|
+
this.scrollObserver = viewChild.required(ScrollObserverDirective);
|
|
9141
9105
|
this.activeElementList = contentChildren(SCROLLABLE_IS_ACTIVE_CHILD_TOKEN, { ...(ngDevMode ? { debugName: "activeElementList" } : {}), descendants: true });
|
|
9142
9106
|
this.navigationDotsContainer = viewChild('navigationDotsContainer', ...(ngDevMode ? [{ debugName: "navigationDotsContainer" }] : []));
|
|
9143
9107
|
this.firstNavigationDot = viewChild('navigationDot', ...(ngDevMode ? [{ debugName: "firstNavigationDot" }] : []));
|
|
9144
9108
|
this.loadingTemplate = contentChild(SCROLLABLE_LOADING_TEMPLATE_TOKEN, ...(ngDevMode ? [{ debugName: "loadingTemplate" }] : []));
|
|
9145
|
-
this.scrollableAttributeMutations = signalElementMutations(this.scrollable, {
|
|
9146
|
-
attributes: true,
|
|
9147
|
-
childList: true,
|
|
9148
|
-
subtree: true,
|
|
9149
|
-
});
|
|
9150
9109
|
this.scrollableDimensions = signalElementDimensions(this.scrollable);
|
|
9151
9110
|
this.navigationDotDimensions = signalElementDimensions(this.firstNavigationDot);
|
|
9152
|
-
this.isRendered = createIsRenderedSignal();
|
|
9153
9111
|
this.canAnimate = createCanAnimateSignal();
|
|
9154
9112
|
this.cursorDragScrollState = useCursorDragScroll(this.scrollable, {
|
|
9155
9113
|
enabled: this.cursorDragScroll,
|
|
9156
9114
|
allowedDirection: this.direction,
|
|
9157
9115
|
});
|
|
9158
|
-
this.isCursorDragging$ = toObservable(this.cursorDragScrollState.isDragging);
|
|
9159
9116
|
this.renderButtonsInside = computed(() => this.buttonPosition() === 'inside' && this.renderButtons(), ...(ngDevMode ? [{ debugName: "renderButtonsInside" }] : []));
|
|
9160
9117
|
this.renderButtonsInFooter = computed(() => this.buttonPosition() === 'footer' && this.renderButtons(), ...(ngDevMode ? [{ debugName: "renderButtonsInFooter" }] : []));
|
|
9161
9118
|
this.containerScrollState = signalElementScrollState(this.scrollable, {
|
|
9162
9119
|
initialScrollPosition: computed(() => {
|
|
9163
9120
|
const scrollable = this.scrollable()?.nativeElement;
|
|
9164
9121
|
const activeElementList = this.activeElementList();
|
|
9165
|
-
if (!scrollable || !activeElementList.length
|
|
9122
|
+
if (!scrollable || !activeElementList.length)
|
|
9166
9123
|
return null;
|
|
9167
9124
|
const firstActive = activeElementList.find((a) => a.isActiveChildEnabled());
|
|
9168
9125
|
if (firstActive && !this.disableActiveElementScrolling()) {
|
|
@@ -9171,44 +9128,26 @@ class ScrollableComponent {
|
|
|
9171
9128
|
return null;
|
|
9172
9129
|
}),
|
|
9173
9130
|
});
|
|
9174
|
-
this.firstElementIntersection = signalElementIntersection(this.firstElement, {
|
|
9175
|
-
root: this.scrollable,
|
|
9176
|
-
enabled: this.isRendered.state,
|
|
9177
|
-
});
|
|
9178
|
-
this.lastElementIntersection = signalElementIntersection(this.lastElement, {
|
|
9179
|
-
root: this.scrollable,
|
|
9180
|
-
enabled: this.isRendered.state,
|
|
9181
|
-
});
|
|
9182
9131
|
this.allScrollableChildren = signalElementChildren(this.scrollable);
|
|
9183
9132
|
this.scrollableChildren = computed(() => this.allScrollableChildren().filter((c) => !isScrollableChildIgnored(c)), ...(ngDevMode ? [{ debugName: "scrollableChildren" }] : []));
|
|
9184
9133
|
this.scrollableContentIntersections = signalElementIntersection(this.scrollableChildren, {
|
|
9185
9134
|
root: this.scrollable,
|
|
9186
9135
|
threshold: ELEMENT_INTERSECTION_THRESHOLD,
|
|
9187
|
-
enabled: this.isRendered.state,
|
|
9188
9136
|
});
|
|
9189
9137
|
this.scrollableContentIntersections$ = toObservable(this.scrollableContentIntersections);
|
|
9138
|
+
this.maxVisibleItemCount = toSignal(this.scrollableContentIntersections$.pipe(takeUntilDestroyed(), debounceTime(150), map((entries) => entries.filter((i) => i.intersectionRatio > 0).length)), { initialValue: 0 });
|
|
9190
9139
|
this.nonScrollableIntersections = computed(() => {
|
|
9191
9140
|
const allIntersections = this.scrollableContentIntersections();
|
|
9192
9141
|
return allIntersections.filter((i) => i.intersectionRatio !== 1).map((i) => i.target);
|
|
9193
9142
|
}, { ...(ngDevMode ? { debugName: "nonScrollableIntersections" } : {}), equal: (a, b) => a.length === b.length && a.every((v, i) => v === b[i]) });
|
|
9194
|
-
this.isAtStart = computed(() => {
|
|
9195
|
-
|
|
9196
|
-
if (!intersection)
|
|
9197
|
-
return false;
|
|
9198
|
-
return intersection.isIntersecting;
|
|
9199
|
-
}, ...(ngDevMode ? [{ debugName: "isAtStart" }] : []));
|
|
9200
|
-
this.isAtEnd = computed(() => {
|
|
9201
|
-
const intersection = this.lastElementIntersection()[0];
|
|
9202
|
-
if (!intersection)
|
|
9203
|
-
return false;
|
|
9204
|
-
return intersection.isIntersecting;
|
|
9205
|
-
}, ...(ngDevMode ? [{ debugName: "isAtEnd" }] : []));
|
|
9143
|
+
this.isAtStart = computed(() => this.scrollObserver().isAtStart(), ...(ngDevMode ? [{ debugName: "isAtStart" }] : []));
|
|
9144
|
+
this.isAtEnd = computed(() => this.scrollObserver().isAtEnd(), ...(ngDevMode ? [{ debugName: "isAtEnd" }] : []));
|
|
9206
9145
|
this.canScroll = computed(() => this.direction() === 'horizontal'
|
|
9207
9146
|
? this.containerScrollState().canScrollHorizontally
|
|
9208
9147
|
: this.containerScrollState().canScrollVertically, ...(ngDevMode ? [{ debugName: "canScroll" }] : []));
|
|
9209
9148
|
this.scrollableNavigation = computed(() => {
|
|
9210
9149
|
const allIntersections = this.scrollableContentIntersections();
|
|
9211
|
-
const manualActiveNavigationIndex = this.
|
|
9150
|
+
const manualActiveNavigationIndex = this.manualActiveNavigationIndex();
|
|
9212
9151
|
const isAtStart = this.isAtStart();
|
|
9213
9152
|
const isAtEnd = this.isAtEnd();
|
|
9214
9153
|
const firstIntersection = allIntersections[0];
|
|
@@ -9224,26 +9163,24 @@ class ScrollableComponent {
|
|
|
9224
9163
|
return curr;
|
|
9225
9164
|
}, allIntersections[0]);
|
|
9226
9165
|
if (!highestIntersection) {
|
|
9227
|
-
return [];
|
|
9166
|
+
return { items: [], activeIndex: -1 };
|
|
9228
9167
|
}
|
|
9229
9168
|
const activeIndex = manualActiveNavigationIndex !== null
|
|
9230
9169
|
? manualActiveNavigationIndex
|
|
9231
9170
|
: allIntersections.findIndex((i) => i === highestIntersection);
|
|
9232
|
-
|
|
9171
|
+
const items = allIntersections.map((i, index) => ({
|
|
9233
9172
|
isActive: manualActiveNavigationIndex !== null
|
|
9234
9173
|
? manualActiveNavigationIndex === index
|
|
9235
9174
|
: i === highestIntersection && highestIntersection.intersectionRatio > 0,
|
|
9236
9175
|
activeOffset: index === activeIndex ? 0 : Math.abs(index - activeIndex),
|
|
9237
9176
|
element: i.target,
|
|
9238
9177
|
}));
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
}, ...(ngDevMode ? [{ debugName: "activeIndex" }] : []));
|
|
9178
|
+
return { items, activeIndex };
|
|
9179
|
+
}, { ...(ngDevMode ? { debugName: "scrollableNavigation" } : {}), equal: (a, b) => a.activeIndex === b.activeIndex &&
|
|
9180
|
+
a.items.length === b.items.length &&
|
|
9181
|
+
a.items.every((v, i) => v.isActive === b.items[i]?.isActive && v.activeOffset === b.items[i]?.activeOffset) });
|
|
9182
|
+
this.activeIndex = computed(() => this.scrollableNavigation().activeIndex, ...(ngDevMode ? [{ debugName: "activeIndex" }] : []));
|
|
9245
9183
|
this.gapValue = computed(() => {
|
|
9246
|
-
this.scrollableAttributeMutations();
|
|
9247
9184
|
this.scrollableDimensions();
|
|
9248
9185
|
const scrollable = this.scrollable()?.nativeElement;
|
|
9249
9186
|
if (!scrollable)
|
|
@@ -9255,22 +9192,17 @@ class ScrollableComponent {
|
|
|
9255
9192
|
return '0px';
|
|
9256
9193
|
return gap;
|
|
9257
9194
|
}, ...(ngDevMode ? [{ debugName: "gapValue" }] : []));
|
|
9258
|
-
this.intersectionChange = outputFromObservable(this.scrollableContentIntersections
|
|
9195
|
+
this.intersectionChange = outputFromObservable(toObservable(this.scrollableContentIntersections).pipe(takeUntilDestroyed(), debounceTime(50), map((entries) => entries.map((i, index) => ({
|
|
9259
9196
|
index,
|
|
9260
9197
|
element: i.target,
|
|
9261
9198
|
intersectionRatio: i.intersectionRatio,
|
|
9262
9199
|
isIntersecting: i.isIntersecting,
|
|
9263
9200
|
})))));
|
|
9264
|
-
this.scrollStateChange = outputFromObservable(toObservable(computed(() => {
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
canScroll,
|
|
9270
|
-
isAtEnd: !!isAtEnd,
|
|
9271
|
-
isAtStart: !!isAtStart,
|
|
9272
|
-
};
|
|
9273
|
-
})));
|
|
9201
|
+
this.scrollStateChange = outputFromObservable(toObservable(computed(() => ({
|
|
9202
|
+
canScroll: this.canScroll(),
|
|
9203
|
+
isAtEnd: this.isAtEnd(),
|
|
9204
|
+
isAtStart: this.isAtStart(),
|
|
9205
|
+
}))));
|
|
9274
9206
|
this.allChildElementClassBindings = signalClasses(this.scrollableChildren, {
|
|
9275
9207
|
'et-scrollable-item': signal(true),
|
|
9276
9208
|
});
|
|
@@ -9288,7 +9220,8 @@ class ScrollableComponent {
|
|
|
9288
9220
|
'et-scrollable--is-at-start': this.isAtStart,
|
|
9289
9221
|
'et-scrollable--is-at-end': this.isAtEnd,
|
|
9290
9222
|
'et-scrollable--can-animate': this.canAnimate.state,
|
|
9291
|
-
'et-scrollable--
|
|
9223
|
+
'et-scrollable--has-partial-items': computed(() => this.scrollableContentIntersections().some((i) => i.intersectionRatio > 0 && i.intersectionRatio < 1)),
|
|
9224
|
+
'et-scrollable--darken-non-intersecting-items': computed(() => this.darkenNonIntersectingItems() && this.maxVisibleItemCount() > 1),
|
|
9292
9225
|
});
|
|
9293
9226
|
this.hostStyleBindings = signalHostStyles({
|
|
9294
9227
|
'--item-count': computed(() => this.scrollableChildren().length),
|
|
@@ -9297,32 +9230,40 @@ class ScrollableComponent {
|
|
|
9297
9230
|
this.scrollableDotsContainerStyleBindings = signalStyles(this.navigationDotsContainer, {
|
|
9298
9231
|
// Responsible for centering the active dot in navigation bar by using 'translate'
|
|
9299
9232
|
transform: computed(() => {
|
|
9300
|
-
const activeIndex = this.
|
|
9301
|
-
const childCount = this.
|
|
9233
|
+
const activeIndex = this.scrollableNavigation().activeIndex;
|
|
9234
|
+
const childCount = this.scrollableNavigation().items.length;
|
|
9302
9235
|
const offset = this.getNavigationDotsContainerTranslate(childCount, activeIndex);
|
|
9303
9236
|
const dir = this.direction() === 'horizontal' ? 'X' : 'Y';
|
|
9304
9237
|
return `translate${dir}(${offset})`;
|
|
9305
9238
|
}),
|
|
9306
9239
|
});
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9240
|
+
const isDragging$ = toObservable(this.cursorDragScrollState.isDragging);
|
|
9241
|
+
const scrollable$ = toObservable(this.scrollable);
|
|
9242
|
+
toObservable(this.snap)
|
|
9243
|
+
.pipe(takeUntilDestroyed(), switchMap((enabled) => {
|
|
9244
|
+
if (!enabled)
|
|
9245
|
+
return EMPTY;
|
|
9246
|
+
return combineLatest([this.scrollableContentIntersections$, isDragging$]).pipe(filter(([, isDragging]) => !isDragging), map(([intersections]) => intersections), debounceTime(150), tap((allIntersections) => {
|
|
9247
|
+
const scrollElement = this.scrollable()?.nativeElement;
|
|
9248
|
+
if (!scrollElement)
|
|
9249
|
+
return;
|
|
9250
|
+
const visibleItems = allIntersections
|
|
9251
|
+
.filter((i) => i.intersectionRatio > 0)
|
|
9252
|
+
.map((i) => i.target);
|
|
9253
|
+
const target = getScrollSnapTarget(visibleItems, scrollElement, this.direction(), this.scrollOrigin(), this.scrollMargin());
|
|
9254
|
+
if (target) {
|
|
9255
|
+
this.scrollToElement({ element: target.element, origin: target.origin, ignoreForcedOrigin: true });
|
|
9256
|
+
}
|
|
9257
|
+
}));
|
|
9258
|
+
}))
|
|
9259
|
+
.subscribe();
|
|
9260
|
+
toObservable(this.manualActiveNavigationIndex)
|
|
9261
|
+
.pipe(takeUntilDestroyed(), filter((i) => i !== null), switchMap(() => scrollable$.pipe(switchMap((ref) => {
|
|
9262
|
+
if (!ref)
|
|
9263
|
+
return EMPTY;
|
|
9264
|
+
return fromEvent(ref.nativeElement, 'scroll');
|
|
9265
|
+
}))), debounceTime(50), tap(() => this.manualActiveNavigationIndex.set(null)))
|
|
9324
9266
|
.subscribe();
|
|
9325
|
-
this.isRendered.bind();
|
|
9326
9267
|
}
|
|
9327
9268
|
getNavigationDotsContainerTranslate(navigationDotCount, activeIndex) {
|
|
9328
9269
|
if (navigationDotCount <= 5) {
|
|
@@ -9345,30 +9286,16 @@ class ScrollableComponent {
|
|
|
9345
9286
|
if (!scrollElement) {
|
|
9346
9287
|
return;
|
|
9347
9288
|
}
|
|
9348
|
-
const parent = this.elementRef.nativeElement;
|
|
9349
9289
|
const isSnappingEnabled = this.snap();
|
|
9350
9290
|
if (isSnappingEnabled) {
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
const relevantIntersection = direction === 'start' ? intersections?.partial.first : intersections?.partial.last;
|
|
9355
|
-
if (!relevantIntersection)
|
|
9356
|
-
return;
|
|
9357
|
-
const nextIndex = relevantIntersection.intersection.intersectionRatio !== 1
|
|
9358
|
-
? relevantIntersection.index
|
|
9359
|
-
: direction === 'start'
|
|
9360
|
-
? relevantIntersection.index - 1
|
|
9361
|
-
: relevantIntersection.index + 1;
|
|
9362
|
-
const element = allIntersections[nextIndex]?.target ||
|
|
9363
|
-
relevantIntersection.intersection.target;
|
|
9364
|
-
this.scrollToElement({
|
|
9365
|
-
element: element,
|
|
9366
|
-
origin: direction === 'end' ? 'start' : 'end',
|
|
9367
|
-
});
|
|
9291
|
+
const target = getScrollContainerTarget(this.scrollableContentIntersections(), direction);
|
|
9292
|
+
if (target)
|
|
9293
|
+
this.scrollToElement(target);
|
|
9368
9294
|
}
|
|
9369
9295
|
else {
|
|
9370
9296
|
// Just scroll one size of the scrollable container.
|
|
9371
|
-
const
|
|
9297
|
+
const dimensions = this.scrollableDimensions().client;
|
|
9298
|
+
const scrollableSize = this.direction() === 'horizontal' ? (dimensions?.width ?? 0) : (dimensions?.height ?? 0);
|
|
9372
9299
|
const currentScroll = this.direction() === 'horizontal' ? scrollElement.scrollLeft : scrollElement.scrollTop;
|
|
9373
9300
|
scrollElement.scrollTo({
|
|
9374
9301
|
[this.direction() === 'horizontal' ? 'left' : 'top']: currentScroll + (direction === 'start' ? -scrollableSize : scrollableSize),
|
|
@@ -9385,101 +9312,13 @@ class ScrollableComponent {
|
|
|
9385
9312
|
}
|
|
9386
9313
|
return;
|
|
9387
9314
|
}
|
|
9388
|
-
|
|
9389
|
-
if (!intersections || !scrollElement)
|
|
9315
|
+
if (!scrollElement)
|
|
9390
9316
|
return;
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
// This applies to the other direction as well.
|
|
9394
|
-
const isFirstAndLastIntersectionEqual = intersections.partial.first.intersection === intersections.partial.last.intersection;
|
|
9395
|
-
const scrollableRect = scrollElement.getBoundingClientRect();
|
|
9396
|
-
if (isFirstAndLastIntersectionEqual) {
|
|
9397
|
-
const intersection = intersections.partial.first.intersection.target.getBoundingClientRect();
|
|
9398
|
-
const isStartOfElementVisible = this.direction() === 'horizontal'
|
|
9399
|
-
? Math.round(intersection.left) >= Math.round(scrollableRect.left)
|
|
9400
|
-
: Math.round(intersection.top) >= Math.round(scrollableRect.top);
|
|
9401
|
-
const isEndOfElementVisible = this.direction() === 'horizontal'
|
|
9402
|
-
? Math.round(intersection.right) <= Math.round(scrollableRect.right)
|
|
9403
|
-
: Math.round(intersection.bottom) <= Math.round(scrollableRect.bottom);
|
|
9404
|
-
if (!isStartOfElementVisible || !isEndOfElementVisible) {
|
|
9405
|
-
if (direction === 'start') {
|
|
9406
|
-
if (isStartOfElementVisible) {
|
|
9407
|
-
// to the end of the previous element
|
|
9408
|
-
const previousIndex = intersections.partial.first.index - 1;
|
|
9409
|
-
const elementToScrollTo = allIntersections[previousIndex]?.target;
|
|
9410
|
-
if (!elementToScrollTo)
|
|
9411
|
-
return;
|
|
9412
|
-
this.scrollToElement({
|
|
9413
|
-
element: elementToScrollTo,
|
|
9414
|
-
origin: 'end',
|
|
9415
|
-
});
|
|
9416
|
-
this._manualActiveNavigationIndex.set(previousIndex);
|
|
9417
|
-
}
|
|
9418
|
-
else {
|
|
9419
|
-
// to the start of the current element
|
|
9420
|
-
this.scrollToElement({
|
|
9421
|
-
element: intersections.partial.first.intersection.target,
|
|
9422
|
-
origin: 'start',
|
|
9423
|
-
});
|
|
9424
|
-
this._manualActiveNavigationIndex.set(intersections.partial.first.index);
|
|
9425
|
-
}
|
|
9426
|
-
}
|
|
9427
|
-
else {
|
|
9428
|
-
if (isEndOfElementVisible) {
|
|
9429
|
-
// to the start of the next element
|
|
9430
|
-
const nextIndex = intersections.partial.last.index + 1;
|
|
9431
|
-
const elementToScrollTo = allIntersections[nextIndex]?.target;
|
|
9432
|
-
if (!elementToScrollTo)
|
|
9433
|
-
return;
|
|
9434
|
-
this.scrollToElement({
|
|
9435
|
-
element: elementToScrollTo,
|
|
9436
|
-
origin: 'start',
|
|
9437
|
-
});
|
|
9438
|
-
this._manualActiveNavigationIndex.set(nextIndex);
|
|
9439
|
-
}
|
|
9440
|
-
else {
|
|
9441
|
-
// to the end of the current element
|
|
9442
|
-
this.scrollToElement({
|
|
9443
|
-
element: intersections.partial.last.intersection.target,
|
|
9444
|
-
origin: 'end',
|
|
9445
|
-
});
|
|
9446
|
-
this._manualActiveNavigationIndex.set(intersections.partial.last.index);
|
|
9447
|
-
}
|
|
9448
|
-
}
|
|
9449
|
-
return;
|
|
9450
|
-
}
|
|
9451
|
-
}
|
|
9452
|
-
else if (this.scrollOrigin() === 'center') {
|
|
9453
|
-
// If the scroll origin is forced to be center we should always snap to the center of the next partial intersection in the scroll direction.
|
|
9454
|
-
const nextPartialIntersection = direction === 'start' ? intersections.partial.first : intersections.partial.last;
|
|
9455
|
-
const nextIndex = nextPartialIntersection.index;
|
|
9456
|
-
this.scrollToElement({
|
|
9457
|
-
element: nextPartialIntersection.intersection.target,
|
|
9458
|
-
origin: 'center',
|
|
9459
|
-
});
|
|
9460
|
-
this._manualActiveNavigationIndex.set(nextIndex);
|
|
9317
|
+
const target = getScrollItemTarget(allIntersections, scrollElement, direction, this.scrollOrigin(), this.direction());
|
|
9318
|
+
if (!target)
|
|
9461
9319
|
return;
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
let elementToScrollTo = data.intersection.target;
|
|
9465
|
-
let nextIndex = data.index;
|
|
9466
|
-
if (Math.round(data.intersection.intersectionRatio) === 1) {
|
|
9467
|
-
if (direction === 'start' && data.index === 0) {
|
|
9468
|
-
return;
|
|
9469
|
-
}
|
|
9470
|
-
if (direction === 'end' && data.index === allIntersections.length - 1) {
|
|
9471
|
-
return;
|
|
9472
|
-
}
|
|
9473
|
-
nextIndex = direction === 'start' ? data.index - 1 : data.index + 1;
|
|
9474
|
-
elementToScrollTo = allIntersections[nextIndex]?.target;
|
|
9475
|
-
if (!elementToScrollTo)
|
|
9476
|
-
return;
|
|
9477
|
-
}
|
|
9478
|
-
this.scrollToElement({
|
|
9479
|
-
element: elementToScrollTo,
|
|
9480
|
-
origin: direction,
|
|
9481
|
-
});
|
|
9482
|
-
this._manualActiveNavigationIndex.set(nextIndex);
|
|
9320
|
+
this.scrollToElement(target);
|
|
9321
|
+
this.manualActiveNavigationIndex.set(target.index);
|
|
9483
9322
|
}
|
|
9484
9323
|
getElementScrollCoordinates(options) {
|
|
9485
9324
|
const scrollElement = this.scrollable()?.nativeElement;
|
|
@@ -9510,7 +9349,7 @@ class ScrollableComponent {
|
|
|
9510
9349
|
}
|
|
9511
9350
|
scrollToElementViaNavigation(elementIndex) {
|
|
9512
9351
|
const element = this.scrollableChildren()[elementIndex];
|
|
9513
|
-
this.
|
|
9352
|
+
this.manualActiveNavigationIndex.set(elementIndex);
|
|
9514
9353
|
this.scrollToElement({
|
|
9515
9354
|
element,
|
|
9516
9355
|
});
|
|
@@ -9531,92 +9370,23 @@ class ScrollableComponent {
|
|
|
9531
9370
|
this.scrollOneItemSize('end');
|
|
9532
9371
|
}
|
|
9533
9372
|
}
|
|
9534
|
-
_enableSnapping() {
|
|
9535
|
-
combineLatest([this.scrollableContentIntersections$, this.isCursorDragging$])
|
|
9536
|
-
.pipe(filter(([, isDragging]) => !isDragging), map(([intersections]) => intersections), debounceTime(150), tap((allIntersections) => {
|
|
9537
|
-
const scrollElement = this.scrollable()?.nativeElement;
|
|
9538
|
-
if (!scrollElement)
|
|
9539
|
-
return;
|
|
9540
|
-
const intersections = getIntersectionInfo(allIntersections);
|
|
9541
|
-
if (!intersections)
|
|
9542
|
-
return;
|
|
9543
|
-
const isFirstAndLastIntersectionEqual = intersections.partial.first.intersection === intersections.partial.last.intersection;
|
|
9544
|
-
const scrollableRect = scrollElement.getBoundingClientRect();
|
|
9545
|
-
if (this.scrollOrigin() === 'center' && intersections.full.hasMultiple) {
|
|
9546
|
-
// If there is more than one fully visible element we should not snap at all.
|
|
9547
|
-
return;
|
|
9548
|
-
}
|
|
9549
|
-
else if (this.scrollOrigin() === 'center' && intersections.full.first.intersection) {
|
|
9550
|
-
// If there is already a fully visible element we should snap it to the center.
|
|
9551
|
-
this.scrollToElement({
|
|
9552
|
-
element: intersections.full.first.intersection.target,
|
|
9553
|
-
origin: 'center',
|
|
9554
|
-
});
|
|
9555
|
-
return;
|
|
9556
|
-
}
|
|
9557
|
-
else if (isFirstAndLastIntersectionEqual) {
|
|
9558
|
-
const intersection = intersections.partial.first.intersection.target.getBoundingClientRect();
|
|
9559
|
-
const isStartOfElementVisible = this.direction() === 'horizontal'
|
|
9560
|
-
? intersection.left >= scrollableRect.left
|
|
9561
|
-
: intersection.top >= scrollableRect.top;
|
|
9562
|
-
const isEndOfElementVisible = this.direction() === 'horizontal'
|
|
9563
|
-
? intersection.right <= scrollableRect.right
|
|
9564
|
-
: intersection.bottom <= scrollableRect.bottom;
|
|
9565
|
-
// Don't snap if neither the start nor the end of the current element is visible.
|
|
9566
|
-
// Otherwise this would result in parts of the element being inaccessible.
|
|
9567
|
-
if (!isStartOfElementVisible && !isEndOfElementVisible)
|
|
9568
|
-
return;
|
|
9569
|
-
// If the start of the element is visible we should snap to the start.
|
|
9570
|
-
if (isStartOfElementVisible) {
|
|
9571
|
-
this.scrollToElement({
|
|
9572
|
-
element: intersections.partial.first.intersection.target,
|
|
9573
|
-
origin: 'start',
|
|
9574
|
-
});
|
|
9575
|
-
return;
|
|
9576
|
-
}
|
|
9577
|
-
// If the end of the element is visible we should snap to the end.
|
|
9578
|
-
if (isEndOfElementVisible) {
|
|
9579
|
-
this.scrollToElement({
|
|
9580
|
-
element: intersections.partial.last.intersection.target,
|
|
9581
|
-
origin: 'end',
|
|
9582
|
-
});
|
|
9583
|
-
return;
|
|
9584
|
-
}
|
|
9585
|
-
}
|
|
9586
|
-
else if ((this.direction() === 'horizontal' &&
|
|
9587
|
-
intersections.partial.biggest.intersection.boundingClientRect.width > scrollableRect.width) ||
|
|
9588
|
-
(this.direction() === 'vertical' &&
|
|
9589
|
-
intersections.partial.biggest.intersection.boundingClientRect.height > scrollableRect.height)) {
|
|
9590
|
-
// If the current element is bigger than the scrollable container we should snap to the start of the current element if the scroll direction is forward
|
|
9591
|
-
// and to the end of the current element if the scroll direction is backwards.
|
|
9592
|
-
const origin = intersections.partial.biggest.index === intersections.partial.first.index ? 'end' : 'start';
|
|
9593
|
-
this.scrollToElement({
|
|
9594
|
-
element: intersections.partial.biggest.intersection.target,
|
|
9595
|
-
origin,
|
|
9596
|
-
ignoreForcedOrigin: true,
|
|
9597
|
-
});
|
|
9598
|
-
}
|
|
9599
|
-
else {
|
|
9600
|
-
// No special case. Just snap to the biggest intersection.
|
|
9601
|
-
this.scrollToElement({
|
|
9602
|
-
element: intersections.partial.biggest.intersection.target,
|
|
9603
|
-
});
|
|
9604
|
-
}
|
|
9605
|
-
}), takeUntil(this._disableSnapping$))
|
|
9606
|
-
.subscribe();
|
|
9607
|
-
}
|
|
9608
|
-
_disableSnapping() {
|
|
9609
|
-
this._disableSnapping$.next();
|
|
9610
|
-
}
|
|
9611
9373
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ScrollableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9612
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ScrollableComponent, isStandalone: true, selector: "et-scrollable", inputs: { itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, scrollableRole: { classPropertyName: "scrollableRole", publicName: "scrollableRole", isSignal: true, isRequired: false, transformFunction: null }, scrollableClass: { classPropertyName: "scrollableClass", publicName: "scrollableClass", isSignal: true, isRequired: false, transformFunction: null }, renderNavigation: { classPropertyName: "renderNavigation", publicName: "renderNavigation", isSignal: true, isRequired: false, transformFunction: null }, renderMasks: { classPropertyName: "renderMasks", publicName: "renderMasks", isSignal: true, isRequired: false, transformFunction: null }, renderButtons: { classPropertyName: "renderButtons", publicName: "renderButtons", isSignal: true, isRequired: false, transformFunction: null }, buttonPosition: { classPropertyName: "buttonPosition", publicName: "buttonPosition", isSignal: true, isRequired: false, transformFunction: null }, renderScrollbars: { classPropertyName: "renderScrollbars", publicName: "renderScrollbars", isSignal: true, isRequired: false, transformFunction: null }, stickyButtons: { classPropertyName: "stickyButtons", publicName: "stickyButtons", isSignal: true, isRequired: false, transformFunction: null }, cursorDragScroll: { classPropertyName: "cursorDragScroll", publicName: "cursorDragScroll", isSignal: true, isRequired: false, transformFunction: null }, disableActiveElementScrolling: { classPropertyName: "disableActiveElementScrolling", publicName: "disableActiveElementScrolling", isSignal: true, isRequired: false, transformFunction: null }, scrollMode: { classPropertyName: "scrollMode", publicName: "scrollMode", isSignal: true, isRequired: false, transformFunction: null }, snap: { classPropertyName: "snap", publicName: "snap", isSignal: true, isRequired: false, transformFunction: null }, scrollMargin: { classPropertyName: "scrollMargin", publicName: "scrollMargin", isSignal: true, isRequired: false, transformFunction: null }, scrollOrigin: { classPropertyName: "scrollOrigin", publicName: "scrollOrigin", isSignal: true, isRequired: false, transformFunction: null }, darkenNonIntersectingItems: { classPropertyName: "darkenNonIntersectingItems", publicName: "darkenNonIntersectingItems", isSignal: true, isRequired: false, transformFunction: null }, showLoadingTemplate: { classPropertyName: "showLoadingTemplate", publicName: "showLoadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplatePosition: { classPropertyName: "loadingTemplatePosition", publicName: "loadingTemplatePosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { intersectionChange: "intersectionChange", scrollStateChange: "scrollStateChange" }, host: { classAttribute: "et-scrollable" }, providers: [provideIcons(CHEVRON_ICON)], queries: [{ propertyName: "activeElementList", predicate: SCROLLABLE_IS_ACTIVE_CHILD_TOKEN, descendants: true, isSignal: true }, { propertyName: "loadingTemplate", first: true, predicate: SCROLLABLE_LOADING_TEMPLATE_TOKEN, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "scrollable", first: true, predicate: ["scrollable"], descendants: true, isSignal: true }, { propertyName: "firstElement", first: true, predicate: ["firstElement"], descendants: true, isSignal: true }, { propertyName: "lastElement", first: true, predicate: ["lastElement"], descendants: true, isSignal: true }, { propertyName: "navigationDotsContainer", first: true, predicate: ["navigationDotsContainer"], descendants: true, isSignal: true }, { propertyName: "firstNavigationDot", first: true, predicate: ["navigationDot"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"et-scrollable-wrapper\">\n <div\n #scrollable\n [attr.role]=\"scrollableRole() ?? undefined\"\n [ngClass]=\"scrollableClass()\"\n class=\"et-scrollable-container\"\n >\n <div #firstElement class=\"et-scroll-observer-first-element\" etScrollableIgnoreChild></div>\n @if (loadingTemplatePosition() === 'start' && showLoadingTemplate()) {\n <ng-container *ngTemplateOutlet=\"loadingTpl\" />\n }\n <ng-content />\n @if (loadingTemplatePosition() === 'end' && showLoadingTemplate()) {\n <ng-container *ngTemplateOutlet=\"loadingTpl\" />\n }\n\n <div #lastElement class=\"et-scroll-observer-last-element\" etScrollableIgnoreChild></div>\n </div>\n\n @if (renderMasks()) {\n <div class=\"et-scrollable-masks\">\n <div class=\"et-scrollable-mask et-scrollable-mask--start\"></div>\n <div class=\"et-scrollable-mask et-scrollable-mask--end\"></div>\n </div>\n }\n\n @if (renderButtonsInside()) {\n <div class=\"et-scrollable-buttons\">\n <ng-container *ngTemplateOutlet=\"forwardButtonTpl\" />\n <ng-container *ngTemplateOutlet=\"backwardButtonTpl\" />\n </div>\n }\n</div>\n\n@if ((renderButtonsInFooter() || (renderNavigation() && scrollableNavigation().length > 1)) && canScroll()) {\n <div\n [ngClass]=\"{\n 'et-scrollable-footer--with-navigation': renderNavigation(),\n 'et-scrollable-footer--with-buttons': renderButtonsInFooter(),\n }\"\n class=\"et-scrollable-footer\"\n aria-hidden=\"true\"\n >\n @if (renderButtonsInFooter()) {\n <ng-container *ngTemplateOutlet=\"forwardButtonTpl\" />\n }\n\n @if (renderNavigation()) {\n <div class=\"et-scrollable-progress-bar\">\n <div #navigationDotsContainer class=\"et-scrollable-dots-container\">\n @for (item of scrollableNavigation(); track i; let i = $index) {\n <button\n #navigationDot\n [class.et-scrollable-navigation-item--active]=\"item.isActive\"\n [class.et-scrollable-navigation-item--close]=\"\n scrollableNavigation()[i + 1]?.isActive || scrollableNavigation()[i - 1]?.isActive\n \"\n [class.et-scrollable-navigation-item--far]=\"\n !scrollableNavigation()[i + 1]?.isActive && !scrollableNavigation()[i - 1]?.isActive && !item.isActive\n \"\n [attr.active-offset]=\"item.activeOffset\"\n (click)=\"scrollToElementViaNavigation(i)\"\n class=\"et-scrollable-navigation-item\"\n type=\"button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n ></button>\n }\n </div>\n </div>\n }\n\n @if (renderButtonsInFooter()) {\n <ng-container *ngTemplateOutlet=\"backwardButtonTpl\" />\n }\n </div>\n}\n\n<ng-template #forwardButtonTpl>\n <button\n [disabled]=\"isAtStart()\"\n (click)=\"scrollToStartDirection()\"\n class=\"et-scrollable-button et-scrollable-button--start\"\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n >\n <i etIcon=\"et-chevron\"></i>\n </button>\n</ng-template>\n\n<ng-template #backwardButtonTpl>\n <button\n [disabled]=\"isAtEnd()\"\n (click)=\"scrollToEndDirection()\"\n class=\"et-scrollable-button et-scrollable-button--end\"\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n >\n <i etIcon=\"et-chevron\"></i>\n </button>\n</ng-template>\n\n<ng-template #loadingTpl>\n @if (loadingTemplate(); as tpl) {\n @for (\n _ of tpl.repeat();\n track index;\n let index = $index;\n let even = $even;\n let odd = $odd;\n let first = $first;\n let last = $last\n ) {\n <ng-container *ngTemplateOutlet=\"tpl.templateRef; context: { index, even, odd, first, last }\" />\n }\n }\n</ng-template>\n", styles: [":where(.et-scrollable){--mask: #121212 0, transparent 100%;--mask-size: 25px;--darken-non-intersecting-items-amount: .75;--_auto-size: min-content;display:block}.et-scrollable .et-scrollable-wrapper{display:grid;position:relative;block-size:100%;inline-size:100%}.et-scrollable[item-size=same]{--_auto-size: 1fr}.et-scrollable[item-size=half]{--_auto-size: calc((100% - var(--item-gap)) / 2)}.et-scrollable[item-size=third]{--_auto-size: calc((100% - (var(--item-gap) * 2)) / 3)}.et-scrollable[item-size=quarter]{--_auto-size: calc((100% - (var(--item-gap) * 3)) / 4)}.et-scrollable[item-size=full]{--_auto-size: 100%}.et-scrollable[render-scrollbars=false] .et-scrollable-container,.et-scrollable:not([render-scrollbars]) .et-scrollable-container{scrollbar-width:none}.et-scrollable[render-scrollbars=false] .et-scrollable-container::-webkit-scrollbar,.et-scrollable:not([render-scrollbars]) .et-scrollable-container::-webkit-scrollbar{display:none}.et-scrollable .et-scrollable-button .et-icon--et-chevron{display:block}.et-scrollable[direction=horizontal] .et-scrollable-container,.et-scrollable:not([direction]) .et-scrollable-container{grid-auto-flow:column;grid-auto-columns:var(--_auto-size);overflow-x:auto;overflow-y:hidden}.et-scrollable[direction=horizontal] .et-scrollable-container>:nth-child(2),.et-scrollable:not([direction]) .et-scrollable-container>:nth-child(2){grid-column:1/1;grid-row:1/1}.et-scrollable[direction=horizontal] .et-scrollable-container>:nth-last-child(2),.et-scrollable:not([direction]) .et-scrollable-container>:nth-last-child(2){grid-column:var(--item-count)/var(--item-count);grid-row:1/1}.et-scrollable[direction=horizontal] .et-scrollable-mask,.et-scrollable[direction=horizontal] .et-scrollable-button,.et-scrollable:not([direction]) .et-scrollable-mask,.et-scrollable:not([direction]) .et-scrollable-button{inline-size:var(--mask-size);block-size:100%}.et-scrollable[direction=horizontal] .et-scrollable-mask--start,.et-scrollable[direction=horizontal] .et-scrollable-button--start,.et-scrollable:not([direction]) .et-scrollable-mask--start,.et-scrollable:not([direction]) .et-scrollable-button--start{inset-block-start:0;inset-inline:0 0}.et-scrollable[direction=horizontal] .et-scrollable-mask--end,.et-scrollable[direction=horizontal] .et-scrollable-button--end,.et-scrollable:not([direction]) .et-scrollable-mask--end,.et-scrollable:not([direction]) .et-scrollable-button--end{inset-block-start:0;inset-inline:calc(100% - 40px) 0}.et-scrollable[direction=horizontal] .et-scrollable-mask--start,.et-scrollable:not([direction]) .et-scrollable-mask--start{background:linear-gradient(to right,var(--mask))}.et-scrollable[direction=horizontal] .et-scrollable-mask--end,.et-scrollable:not([direction]) .et-scrollable-mask--end{background:linear-gradient(to left,var(--mask));inset-inline:calc(100% - var(--mask-size)) 100%}.et-scrollable[direction=horizontal] .et-scrollable-button--start,.et-scrollable:not([direction]) .et-scrollable-button--start{inset-block-start:calc(50% - 20px);transform:translate(-10px)}.et-scrollable[direction=horizontal] .et-scrollable-button--start .et-icon--et-chevron,.et-scrollable:not([direction]) .et-scrollable-button--start .et-icon--et-chevron{transform:rotate(-90deg)}.et-scrollable[direction=horizontal] .et-scrollable-button--end,.et-scrollable:not([direction]) .et-scrollable-button--end{inset-block-start:calc(50% - 20px);transform:translate(10px)}.et-scrollable[direction=horizontal] .et-scrollable-button--end .et-icon--et-chevron,.et-scrollable:not([direction]) .et-scrollable-button--end .et-icon--et-chevron{transform:rotate(90deg)}.et-scrollable[direction=horizontal] .et-scroll-observer-first-element,.et-scrollable[direction=horizontal] .et-scroll-observer-last-element,.et-scrollable:not([direction]) .et-scroll-observer-first-element,.et-scrollable:not([direction]) .et-scroll-observer-last-element{block-size:100%;inline-size:1px}.et-scrollable[direction=horizontal] .et-scroll-observer-first-element,.et-scrollable:not([direction]) .et-scroll-observer-first-element{margin-inline-start:3px;grid-column:1/1;grid-row:1/1}.et-scrollable[direction=horizontal] .et-scroll-observer-last-element,.et-scrollable:not([direction]) .et-scroll-observer-last-element{margin-inline-end:3px;grid-column:var(--item-count)/var(--item-count);grid-row:1/1;justify-self:end}.et-scrollable[direction=vertical] .et-scrollable-container{grid-auto-flow:row;grid-auto-rows:var(--_auto-size);overflow-x:hidden;overflow-y:auto}.et-scrollable[direction=vertical] .et-scrollable-container>:nth-child(2){grid-row:1/1;grid-column:1/1}.et-scrollable[direction=vertical] .et-scrollable-container>:nth-last-child(2){grid-row:var(--item-count)/var(--item-count);grid-column:1/1}.et-scrollable[direction=vertical] .et-scrollable-mask,.et-scrollable[direction=vertical] .et-scrollable-button{block-size:var(--mask-size);inline-size:100%}.et-scrollable[direction=vertical] .et-scrollable-mask--start,.et-scrollable[direction=vertical] .et-scrollable-button--start{inset-block-start:0;inset-inline-start:0}.et-scrollable[direction=vertical] .et-scrollable-mask--end,.et-scrollable[direction=vertical] .et-scrollable-button--end{inset-block-end:0;inset-inline-start:0}.et-scrollable[direction=vertical] .et-scrollable-mask--start{background:linear-gradient(to bottom,var(--mask))}.et-scrollable[direction=vertical] .et-scrollable-mask--end{background:linear-gradient(to top,var(--mask))}.et-scrollable[direction=vertical] .et-scrollable-button--start{inset-inline-start:calc(50% - 20px);transform:translateY(-10px)}.et-scrollable[direction=vertical] .et-scrollable-button--start .et-icon--et-chevron{transform:rotate(0)}.et-scrollable[direction=vertical] .et-scrollable-button--end{inset-inline-start:calc(50% - 20px);transform:translateY(10px)}.et-scrollable[direction=vertical] .et-scrollable-button--end .et-icon--et-chevron{transform:rotate(180deg)}.et-scrollable[direction=vertical] .et-scroll-observer-first-element,.et-scrollable[direction=vertical] .et-scroll-observer-last-element{inline-size:100%;block-size:1px}.et-scrollable[direction=vertical] .et-scroll-observer-first-element{margin-block-start:3px;grid-row:1/1;grid-column:1/1}.et-scrollable[direction=vertical] .et-scroll-observer-last-element{margin-block-end:3px;grid-row:var(--item-count)/var(--item-count);grid-column:1/1;align-self:end}.et-scrollable[direction=vertical]:has(.et-scrollable-footer){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr);gap:10px}.et-scrollable[direction=vertical] .et-scrollable-footer{flex-direction:column;margin-block-start:0}.et-scrollable[direction=vertical] .et-scrollable-progress-bar{flex-direction:column;max-block-size:100px}.et-scrollable[direction=vertical] .et-scrollable-dots-container{flex-direction:column}.et-scrollable:not(.et-scrollable--is-at-start) .et-scrollable-masks .et-scrollable-mask--start,.et-scrollable:not(.et-scrollable--is-at-start) .et-scrollable-buttons .et-scrollable-button--start{opacity:1;transform:translate(0)}.et-scrollable:not(.et-scrollable--is-at-start) .et-scrollable-buttons .et-scrollable-button--start{pointer-events:all}.et-scrollable:not(.et-scrollable--is-at-end) .et-scrollable-masks .et-scrollable-mask--end,.et-scrollable:not(.et-scrollable--is-at-end) .et-scrollable-buttons .et-scrollable-button--end{opacity:1;transform:translate(0)}.et-scrollable:not(.et-scrollable--is-at-end) .et-scrollable-buttons .et-scrollable-button--end{pointer-events:all}.et-scrollable .et-scroll-observer-first-element,.et-scrollable .et-scroll-observer-last-element{pointer-events:none}.et-scrollable .et-scrollable-container{display:grid;position:relative;grid-row:1/1;grid-column:1/1}.et-scrollable .et-scrollable-masks,.et-scrollable .et-scrollable-buttons{grid-row:1/1;grid-column:1/1;pointer-events:none}.et-scrollable .et-scrollable-masks .et-scrollable-mask,.et-scrollable .et-scrollable-masks .et-scrollable-button,.et-scrollable .et-scrollable-buttons .et-scrollable-mask,.et-scrollable .et-scrollable-buttons .et-scrollable-button{position:absolute;opacity:0}.et-scrollable.et-scrollable--can-animate .et-scrollable-dots-container{transition:transform .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate .et-scrollable-navigation-item:after{transition:background-color .2s linear,transform .2s linear}.et-scrollable.et-scrollable--can-animate.et-scrollable--can-scroll .et-scrollable-mask{transition:opacity .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate.et-scrollable--can-scroll .et-scrollable-button{transition:opacity .3s var(--ease-5),transform .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate.et-scrollable--darken-non-intersecting-items .et-scrollable-item{transition:opacity .3s var(--ease-5)}.et-scrollable.et-scrollable--darken-non-intersecting-items .et-scrollable-item--not-intersecting{opacity:var(--darken-non-intersecting-items-amount)}.et-scrollable .et-scrollable-buttons .et-scrollable-button{background:transparent;border:none;padding:12px;inline-size:40px;block-size:40px;border-radius:4px;cursor:pointer}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-icon--et-chevron{pointer-events:none}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-scrollable-button--start{inset-inline:0 0}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-scrollable-button--end{inset-inline:calc(100% - 40px) 0}.et-scrollable[sticky-buttons=true]{--_sticky-margin: 10%}.et-scrollable[sticky-buttons=true] .et-scrollable-button{position:sticky}.et-scrollable[sticky-buttons=true][direction=horizontal] .et-scrollable-buttons{margin-block:var(--_sticky-margin)}.et-scrollable[sticky-buttons=true][direction=vertical] .et-scrollable-buttons{margin-inline:var(--_sticky-margin)}.et-scrollable[sticky-buttons=true][direction=vertical] .et-scrollable-buttons .et-scrollable-button--end{inset-block-start:100%}.et-scrollable .et-scrollable-footer{display:flex;justify-content:center;align-items:center;gap:10px;margin-block-start:10px}.et-scrollable .et-scrollable-footer.et-scrollable-footer--with-buttons .et-scrollable-button{transform:none}.et-scrollable .et-scrollable-footer .et-scrollable-button{width:30px;height:30px}.et-scrollable .et-scrollable-navigation-item{display:flex;justify-content:center;align-items:center;border:none;padding:0;inline-size:20px;block-size:20px;border-radius:50%;cursor:pointer;background-color:transparent}.et-scrollable .et-scrollable-navigation-item.et-scrollable-navigation-item--active:after{background-color:#c6c6c6}.et-scrollable .et-scrollable-navigation-item:after{content:\"\";display:block;inline-size:50%;block-size:50%;border-radius:50%;background-color:#4b4b4b;transform:scale(0)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"0\"]:after{transform:scale(1)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"1\"]:after{transform:scale(.75)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"2\"]:after{transform:scale(.6)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"3\"]:after{transform:scale(.5)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"4\"]:after{transform:scale(.4)}.et-scrollable .et-scrollable-progress-bar{overflow:hidden;max-inline-size:100px;display:flex;align-items:center}.et-scrollable .et-scrollable-progress-bar .et-scrollable-dots-container{display:flex;flex-wrap:nowrap}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: ScrollableIgnoreChildDirective, selector: "[etScrollableIgnoreChild]", inputs: ["etScrollableIgnoreChild"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: IconDirective, selector: "[etIcon]", inputs: ["etIcon", "allowHardcodedColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
9374
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ScrollableComponent, isStandalone: true, selector: "et-scrollable", inputs: { itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, scrollableRole: { classPropertyName: "scrollableRole", publicName: "scrollableRole", isSignal: true, isRequired: false, transformFunction: null }, scrollableClass: { classPropertyName: "scrollableClass", publicName: "scrollableClass", isSignal: true, isRequired: false, transformFunction: null }, renderNavigation: { classPropertyName: "renderNavigation", publicName: "renderNavigation", isSignal: true, isRequired: false, transformFunction: null }, renderMasks: { classPropertyName: "renderMasks", publicName: "renderMasks", isSignal: true, isRequired: false, transformFunction: null }, renderButtons: { classPropertyName: "renderButtons", publicName: "renderButtons", isSignal: true, isRequired: false, transformFunction: null }, buttonPosition: { classPropertyName: "buttonPosition", publicName: "buttonPosition", isSignal: true, isRequired: false, transformFunction: null }, renderScrollbars: { classPropertyName: "renderScrollbars", publicName: "renderScrollbars", isSignal: true, isRequired: false, transformFunction: null }, stickyButtons: { classPropertyName: "stickyButtons", publicName: "stickyButtons", isSignal: true, isRequired: false, transformFunction: null }, cursorDragScroll: { classPropertyName: "cursorDragScroll", publicName: "cursorDragScroll", isSignal: true, isRequired: false, transformFunction: null }, disableActiveElementScrolling: { classPropertyName: "disableActiveElementScrolling", publicName: "disableActiveElementScrolling", isSignal: true, isRequired: false, transformFunction: null }, scrollMode: { classPropertyName: "scrollMode", publicName: "scrollMode", isSignal: true, isRequired: false, transformFunction: null }, snap: { classPropertyName: "snap", publicName: "snap", isSignal: true, isRequired: false, transformFunction: null }, scrollMargin: { classPropertyName: "scrollMargin", publicName: "scrollMargin", isSignal: true, isRequired: false, transformFunction: null }, scrollOrigin: { classPropertyName: "scrollOrigin", publicName: "scrollOrigin", isSignal: true, isRequired: false, transformFunction: null }, darkenNonIntersectingItems: { classPropertyName: "darkenNonIntersectingItems", publicName: "darkenNonIntersectingItems", isSignal: true, isRequired: false, transformFunction: null }, showLoadingTemplate: { classPropertyName: "showLoadingTemplate", publicName: "showLoadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplatePosition: { classPropertyName: "loadingTemplatePosition", publicName: "loadingTemplatePosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { intersectionChange: "intersectionChange", scrollStateChange: "scrollStateChange" }, host: { classAttribute: "et-scrollable" }, providers: [provideIcons(CHEVRON_ICON), provideBreakpointInstance(ScrollableComponent)], queries: [{ propertyName: "activeElementList", predicate: SCROLLABLE_IS_ACTIVE_CHILD_TOKEN, descendants: true, isSignal: true }, { propertyName: "loadingTemplate", first: true, predicate: SCROLLABLE_LOADING_TEMPLATE_TOKEN, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "scrollable", first: true, predicate: ["scrollable"], descendants: true, isSignal: true }, { propertyName: "scrollObserver", first: true, predicate: ScrollObserverDirective, descendants: true, isSignal: true }, { propertyName: "navigationDotsContainer", first: true, predicate: ["navigationDotsContainer"], descendants: true, isSignal: true }, { propertyName: "firstNavigationDot", first: true, predicate: ["navigationDot"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"et-scrollable-wrapper\">\n <div\n #scrollable\n [attr.role]=\"scrollableRole() ?? undefined\"\n [ngClass]=\"scrollableClass()\"\n class=\"et-scrollable-container\"\n etScrollObserver\n >\n <div #firstElement class=\"et-scroll-observer-first-element\" etScrollObserverStart etScrollableIgnoreChild></div>\n @if (loadingTemplatePosition() === 'start' && showLoadingTemplate()) {\n <ng-container *ngTemplateOutlet=\"loadingTpl\" />\n }\n <ng-content />\n @if (loadingTemplatePosition() === 'end' && showLoadingTemplate()) {\n <ng-container *ngTemplateOutlet=\"loadingTpl\" />\n }\n\n <div #lastElement class=\"et-scroll-observer-last-element\" etScrollObserverEnd etScrollableIgnoreChild></div>\n </div>\n\n @if (renderMasks()) {\n <div class=\"et-scrollable-masks\">\n <div class=\"et-scrollable-mask et-scrollable-mask--start\"></div>\n <div class=\"et-scrollable-mask et-scrollable-mask--end\"></div>\n </div>\n }\n\n @if (renderButtonsInside()) {\n <div class=\"et-scrollable-buttons\">\n <ng-container *ngTemplateOutlet=\"forwardButtonTpl\" />\n <ng-container *ngTemplateOutlet=\"backwardButtonTpl\" />\n </div>\n }\n</div>\n\n@if ((renderButtonsInFooter() || (renderNavigation() && scrollableNavigation().items.length > 1)) && canScroll()) {\n <div\n [ngClass]=\"{\n 'et-scrollable-footer--with-navigation': renderNavigation(),\n 'et-scrollable-footer--with-buttons': renderButtonsInFooter(),\n }\"\n class=\"et-scrollable-footer\"\n aria-hidden=\"true\"\n >\n @if (renderButtonsInFooter()) {\n <ng-container *ngTemplateOutlet=\"forwardButtonTpl\" />\n }\n\n @if (renderNavigation()) {\n <div class=\"et-scrollable-progress-bar\">\n <div #navigationDotsContainer class=\"et-scrollable-dots-container\">\n @for (item of scrollableNavigation().items; track i; let i = $index) {\n <button\n #navigationDot\n [class.et-scrollable-navigation-item--active]=\"item.isActive\"\n [class.et-scrollable-navigation-item--close]=\"\n scrollableNavigation().items[i + 1]?.isActive || scrollableNavigation().items[i - 1]?.isActive\n \"\n [class.et-scrollable-navigation-item--far]=\"\n !scrollableNavigation().items[i + 1]?.isActive &&\n !scrollableNavigation().items[i - 1]?.isActive &&\n !item.isActive\n \"\n [attr.active-offset]=\"item.activeOffset\"\n (click)=\"scrollToElementViaNavigation(i)\"\n class=\"et-scrollable-navigation-item\"\n type=\"button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n ></button>\n }\n </div>\n </div>\n }\n\n @if (renderButtonsInFooter()) {\n <ng-container *ngTemplateOutlet=\"backwardButtonTpl\" />\n }\n </div>\n}\n\n<ng-template #forwardButtonTpl>\n <button\n [disabled]=\"isAtStart()\"\n (click)=\"scrollToStartDirection()\"\n class=\"et-scrollable-button et-scrollable-button--start\"\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n >\n <i etIcon=\"et-chevron\"></i>\n </button>\n</ng-template>\n\n<ng-template #backwardButtonTpl>\n <button\n [disabled]=\"isAtEnd()\"\n (click)=\"scrollToEndDirection()\"\n class=\"et-scrollable-button et-scrollable-button--end\"\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n >\n <i etIcon=\"et-chevron\"></i>\n </button>\n</ng-template>\n\n<ng-template #loadingTpl>\n @if (loadingTemplate(); as tpl) {\n @for (\n _ of tpl.repeat();\n track index;\n let index = $index;\n let even = $even;\n let odd = $odd;\n let first = $first;\n let last = $last\n ) {\n <ng-container *ngTemplateOutlet=\"tpl.templateRef; context: { index, even, odd, first, last }\" />\n }\n }\n</ng-template>\n", styles: [":where(.et-scrollable){--mask: #121212 0, transparent 100%;--mask-size: 25px;--darken-non-intersecting-items-amount: .75;--_auto-size: min-content;display:block;position:relative}.et-scrollable .et-scrollable-wrapper{display:grid;position:relative;block-size:100%;inline-size:100%}.et-scrollable[item-size=same]{--_auto-size: 1fr}.et-scrollable[item-size=half]{--_auto-size: calc((100% - var(--item-gap)) / 2)}.et-scrollable[item-size=third]{--_auto-size: calc((100% - (var(--item-gap) * 2)) / 3)}.et-scrollable[item-size=quarter]{--_auto-size: calc((100% - (var(--item-gap) * 3)) / 4)}.et-scrollable[item-size=full]{--_auto-size: 100%}.et-scrollable[render-scrollbars=false] .et-scrollable-container,.et-scrollable:not([render-scrollbars]) .et-scrollable-container{scrollbar-width:none}.et-scrollable[render-scrollbars=false] .et-scrollable-container::-webkit-scrollbar,.et-scrollable:not([render-scrollbars]) .et-scrollable-container::-webkit-scrollbar{display:none}.et-scrollable .et-scrollable-button .et-icon--et-chevron{display:block}.et-scrollable[direction=horizontal] .et-scrollable-container,.et-scrollable:not([direction]) .et-scrollable-container{grid-auto-flow:column;grid-auto-columns:var(--_auto-size);overflow-x:auto;overflow-y:hidden}.et-scrollable[direction=horizontal] .et-scrollable-container>:nth-child(2),.et-scrollable:not([direction]) .et-scrollable-container>:nth-child(2){grid-column:1/1;grid-row:1/1}.et-scrollable[direction=horizontal] .et-scrollable-container>:nth-last-child(2),.et-scrollable:not([direction]) .et-scrollable-container>:nth-last-child(2){grid-column:var(--item-count)/var(--item-count);grid-row:1/1}.et-scrollable[direction=horizontal] .et-scrollable-mask,.et-scrollable[direction=horizontal] .et-scrollable-button,.et-scrollable:not([direction]) .et-scrollable-mask,.et-scrollable:not([direction]) .et-scrollable-button{inline-size:var(--mask-size);block-size:100%}.et-scrollable[direction=horizontal] .et-scrollable-mask--start,.et-scrollable[direction=horizontal] .et-scrollable-button--start,.et-scrollable:not([direction]) .et-scrollable-mask--start,.et-scrollable:not([direction]) .et-scrollable-button--start{inset-block-start:0;inset-inline:0 0}.et-scrollable[direction=horizontal] .et-scrollable-mask--end,.et-scrollable[direction=horizontal] .et-scrollable-button--end,.et-scrollable:not([direction]) .et-scrollable-mask--end,.et-scrollable:not([direction]) .et-scrollable-button--end{inset-block-start:0;inset-inline:calc(100% - 40px) 0}.et-scrollable[direction=horizontal] .et-scrollable-mask--start,.et-scrollable:not([direction]) .et-scrollable-mask--start{background:linear-gradient(to right,var(--mask))}.et-scrollable[direction=horizontal] .et-scrollable-mask--end,.et-scrollable:not([direction]) .et-scrollable-mask--end{background:linear-gradient(to left,var(--mask));inset-inline:calc(100% - var(--mask-size)) 100%}.et-scrollable[direction=horizontal] .et-scrollable-button--start,.et-scrollable:not([direction]) .et-scrollable-button--start{inset-block-start:calc(50% - 20px);transform:translate(-10px)}.et-scrollable[direction=horizontal] .et-scrollable-button--start .et-icon--et-chevron,.et-scrollable:not([direction]) .et-scrollable-button--start .et-icon--et-chevron{transform:rotate(-90deg)}.et-scrollable[direction=horizontal] .et-scrollable-button--end,.et-scrollable:not([direction]) .et-scrollable-button--end{inset-block-start:calc(50% - 20px);transform:translate(10px)}.et-scrollable[direction=horizontal] .et-scrollable-button--end .et-icon--et-chevron,.et-scrollable:not([direction]) .et-scrollable-button--end .et-icon--et-chevron{transform:rotate(90deg)}.et-scrollable[direction=horizontal] .et-scroll-observer-first-element,.et-scrollable[direction=horizontal] .et-scroll-observer-last-element,.et-scrollable:not([direction]) .et-scroll-observer-first-element,.et-scrollable:not([direction]) .et-scroll-observer-last-element{block-size:100%;inline-size:1px}.et-scrollable[direction=horizontal] .et-scroll-observer-first-element,.et-scrollable:not([direction]) .et-scroll-observer-first-element{margin-inline-start:3px;grid-column:1/1;grid-row:1/1}.et-scrollable[direction=horizontal] .et-scroll-observer-last-element,.et-scrollable:not([direction]) .et-scroll-observer-last-element{margin-inline-end:3px;grid-column:var(--item-count)/var(--item-count);grid-row:1/1;justify-self:end}.et-scrollable[direction=vertical] .et-scrollable-container{grid-auto-flow:row;grid-auto-rows:var(--_auto-size);overflow-x:hidden;overflow-y:auto}.et-scrollable[direction=vertical] .et-scrollable-container>:nth-child(2){grid-row:1/1;grid-column:1/1}.et-scrollable[direction=vertical] .et-scrollable-container>:nth-last-child(2){grid-row:var(--item-count)/var(--item-count);grid-column:1/1}.et-scrollable[direction=vertical] .et-scrollable-mask,.et-scrollable[direction=vertical] .et-scrollable-button{block-size:var(--mask-size);inline-size:100%}.et-scrollable[direction=vertical] .et-scrollable-mask--start,.et-scrollable[direction=vertical] .et-scrollable-button--start{inset-block-start:0;inset-inline-start:0}.et-scrollable[direction=vertical] .et-scrollable-mask--end,.et-scrollable[direction=vertical] .et-scrollable-button--end{inset-block-end:0;inset-inline-start:0}.et-scrollable[direction=vertical] .et-scrollable-mask--start{background:linear-gradient(to bottom,var(--mask))}.et-scrollable[direction=vertical] .et-scrollable-mask--end{background:linear-gradient(to top,var(--mask))}.et-scrollable[direction=vertical] .et-scrollable-button--start{inset-inline-start:calc(50% - 20px);transform:translateY(-10px)}.et-scrollable[direction=vertical] .et-scrollable-button--start .et-icon--et-chevron{transform:rotate(0)}.et-scrollable[direction=vertical] .et-scrollable-button--end{inset-inline-start:calc(50% - 20px);transform:translateY(10px)}.et-scrollable[direction=vertical] .et-scrollable-button--end .et-icon--et-chevron{transform:rotate(180deg)}.et-scrollable[direction=vertical] .et-scroll-observer-first-element,.et-scrollable[direction=vertical] .et-scroll-observer-last-element{inline-size:100%;block-size:1px}.et-scrollable[direction=vertical] .et-scroll-observer-first-element{margin-block-start:3px;grid-row:1/1;grid-column:1/1}.et-scrollable[direction=vertical] .et-scroll-observer-last-element{margin-block-end:3px;grid-row:var(--item-count)/var(--item-count);grid-column:1/1;align-self:end}.et-scrollable[direction=vertical]:has(.et-scrollable-footer){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr);gap:10px}.et-scrollable[direction=vertical] .et-scrollable-footer{flex-direction:column;margin-block-start:0}.et-scrollable[direction=vertical] .et-scrollable-progress-bar{flex-direction:column;max-block-size:100px}.et-scrollable[direction=vertical] .et-scrollable-dots-container{flex-direction:column}.et-scrollable.et-scrollable--can-scroll:not(.et-scrollable--is-at-start) .et-scrollable-buttons .et-scrollable-button--start{opacity:1;transform:translate(0);pointer-events:all}.et-scrollable.et-scrollable--can-scroll.et-scrollable--has-partial-items:not(.et-scrollable--is-at-start) .et-scrollable-masks .et-scrollable-mask--start{opacity:1;transform:translate(0)}.et-scrollable.et-scrollable--can-scroll:not(.et-scrollable--is-at-end) .et-scrollable-buttons .et-scrollable-button--end{opacity:1;transform:translate(0);pointer-events:all}.et-scrollable.et-scrollable--can-scroll.et-scrollable--has-partial-items:not(.et-scrollable--is-at-end) .et-scrollable-masks .et-scrollable-mask--end{opacity:1;transform:translate(0)}.et-scrollable .et-scroll-observer-first-element,.et-scrollable .et-scroll-observer-last-element{pointer-events:none}.et-scrollable .et-scrollable-container{display:grid;position:relative;grid-row:1/1;grid-column:1/1}.et-scrollable .et-scrollable-masks,.et-scrollable .et-scrollable-buttons{grid-row:1/1;grid-column:1/1;pointer-events:none}.et-scrollable .et-scrollable-masks .et-scrollable-mask,.et-scrollable .et-scrollable-masks .et-scrollable-button,.et-scrollable .et-scrollable-buttons .et-scrollable-mask,.et-scrollable .et-scrollable-buttons .et-scrollable-button{position:absolute;opacity:0}.et-scrollable.et-scrollable--can-animate .et-scrollable-dots-container{transition:transform .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate .et-scrollable-navigation-item:after{transition:background-color .2s linear,transform .2s linear}.et-scrollable.et-scrollable--can-animate.et-scrollable--can-scroll .et-scrollable-mask{transition:opacity .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate.et-scrollable--can-scroll .et-scrollable-button{transition:opacity .3s var(--ease-5),transform .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate.et-scrollable--darken-non-intersecting-items .et-scrollable-item{transition:opacity .3s var(--ease-5)}.et-scrollable.et-scrollable--darken-non-intersecting-items .et-scrollable-item--not-intersecting{opacity:var(--darken-non-intersecting-items-amount)}.et-scrollable .et-scrollable-buttons .et-scrollable-button{background:transparent;border:none;padding:12px;inline-size:40px;block-size:40px;border-radius:4px;cursor:pointer}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-icon--et-chevron{pointer-events:none}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-scrollable-button--start{inset-inline:0 0}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-scrollable-button--end{inset-inline:calc(100% - 40px) 0}.et-scrollable[sticky-buttons=true]{--_sticky-margin: 10%}.et-scrollable[sticky-buttons=true] .et-scrollable-button{position:sticky}.et-scrollable[sticky-buttons=true][direction=horizontal] .et-scrollable-buttons{margin-block:var(--_sticky-margin)}.et-scrollable[sticky-buttons=true][direction=vertical] .et-scrollable-buttons{margin-inline:var(--_sticky-margin)}.et-scrollable[sticky-buttons=true][direction=vertical] .et-scrollable-buttons .et-scrollable-button--end{inset-block-start:100%}.et-scrollable .et-scrollable-footer{display:flex;justify-content:center;align-items:center;gap:10px;margin-block-start:10px}.et-scrollable .et-scrollable-footer.et-scrollable-footer--with-buttons .et-scrollable-button{transform:none}.et-scrollable .et-scrollable-footer .et-scrollable-button{width:30px;height:30px}.et-scrollable .et-scrollable-navigation-item{display:flex;justify-content:center;align-items:center;border:none;padding:0;inline-size:20px;block-size:20px;border-radius:50%;cursor:pointer;background-color:transparent}.et-scrollable .et-scrollable-navigation-item.et-scrollable-navigation-item--active:after{background-color:#c6c6c6}.et-scrollable .et-scrollable-navigation-item:after{content:\"\";display:block;inline-size:50%;block-size:50%;border-radius:50%;background-color:#4b4b4b;transform:scale(0)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"0\"]:after{transform:scale(1)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"1\"]:after{transform:scale(.75)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"2\"]:after{transform:scale(.6)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"3\"]:after{transform:scale(.5)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"4\"]:after{transform:scale(.4)}.et-scrollable .et-scrollable-progress-bar{overflow:hidden;max-inline-size:100px;display:flex;align-items:center}.et-scrollable .et-scrollable-progress-bar .et-scrollable-dots-container{display:flex;flex-wrap:nowrap}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: ScrollableIgnoreChildDirective, selector: "[etScrollableIgnoreChild]", inputs: ["etScrollableIgnoreChild"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: IconDirective, selector: "[etIcon]", inputs: ["etIcon", "allowHardcodedColor"] }, { kind: "directive", type: ScrollObserverDirective, selector: "[etScrollObserver]", inputs: ["enabled"], outputs: ["enabledChange"], exportAs: ["etScrollObserver"] }, { kind: "directive", type: ScrollObserverStartDirective, selector: "[etScrollObserverStart]" }, { kind: "directive", type: ScrollObserverEndDirective, selector: "[etScrollObserverEnd]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
9613
9375
|
}
|
|
9614
9376
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ScrollableComponent, decorators: [{
|
|
9615
9377
|
type: Component,
|
|
9616
|
-
args: [{ selector: 'et-scrollable', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
9378
|
+
args: [{ selector: 'et-scrollable', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
9379
|
+
NgClass,
|
|
9380
|
+
ScrollableIgnoreChildDirective,
|
|
9381
|
+
NgTemplateOutlet,
|
|
9382
|
+
IconDirective,
|
|
9383
|
+
ScrollObserverDirective,
|
|
9384
|
+
ScrollObserverStartDirective,
|
|
9385
|
+
ScrollObserverEndDirective,
|
|
9386
|
+
], host: {
|
|
9617
9387
|
class: 'et-scrollable',
|
|
9618
|
-
}, providers: [provideIcons(CHEVRON_ICON)], template: "<div class=\"et-scrollable-wrapper\">\n <div\n #scrollable\n [attr.role]=\"scrollableRole() ?? undefined\"\n [ngClass]=\"scrollableClass()\"\n class=\"et-scrollable-container\"\n >\n <div #firstElement class=\"et-scroll-observer-first-element\" etScrollableIgnoreChild></div>\n @if (loadingTemplatePosition() === 'start' && showLoadingTemplate()) {\n <ng-container *ngTemplateOutlet=\"loadingTpl\" />\n }\n <ng-content />\n @if (loadingTemplatePosition() === 'end' && showLoadingTemplate()) {\n <ng-container *ngTemplateOutlet=\"loadingTpl\" />\n }\n\n <div #lastElement class=\"et-scroll-observer-last-element\" etScrollableIgnoreChild></div>\n </div>\n\n @if (renderMasks()) {\n <div class=\"et-scrollable-masks\">\n <div class=\"et-scrollable-mask et-scrollable-mask--start\"></div>\n <div class=\"et-scrollable-mask et-scrollable-mask--end\"></div>\n </div>\n }\n\n @if (renderButtonsInside()) {\n <div class=\"et-scrollable-buttons\">\n <ng-container *ngTemplateOutlet=\"forwardButtonTpl\" />\n <ng-container *ngTemplateOutlet=\"backwardButtonTpl\" />\n </div>\n }\n</div>\n\n@if ((renderButtonsInFooter() || (renderNavigation() && scrollableNavigation().length > 1)) && canScroll()) {\n <div\n [ngClass]=\"{\n 'et-scrollable-footer--with-navigation': renderNavigation(),\n 'et-scrollable-footer--with-buttons': renderButtonsInFooter(),\n }\"\n class=\"et-scrollable-footer\"\n aria-hidden=\"true\"\n >\n @if (renderButtonsInFooter()) {\n <ng-container *ngTemplateOutlet=\"forwardButtonTpl\" />\n }\n\n @if (renderNavigation()) {\n <div class=\"et-scrollable-progress-bar\">\n <div #navigationDotsContainer class=\"et-scrollable-dots-container\">\n @for (item of scrollableNavigation(); track i; let i = $index) {\n <button\n #navigationDot\n [class.et-scrollable-navigation-item--active]=\"item.isActive\"\n [class.et-scrollable-navigation-item--close]=\"\n scrollableNavigation()[i + 1]?.isActive || scrollableNavigation()[i - 1]?.isActive\n \"\n [class.et-scrollable-navigation-item--far]=\"\n !scrollableNavigation()[i + 1]?.isActive && !scrollableNavigation()[i - 1]?.isActive && !item.isActive\n \"\n [attr.active-offset]=\"item.activeOffset\"\n (click)=\"scrollToElementViaNavigation(i)\"\n class=\"et-scrollable-navigation-item\"\n type=\"button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n ></button>\n }\n </div>\n </div>\n }\n\n @if (renderButtonsInFooter()) {\n <ng-container *ngTemplateOutlet=\"backwardButtonTpl\" />\n }\n </div>\n}\n\n<ng-template #forwardButtonTpl>\n <button\n [disabled]=\"isAtStart()\"\n (click)=\"scrollToStartDirection()\"\n class=\"et-scrollable-button et-scrollable-button--start\"\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n >\n <i etIcon=\"et-chevron\"></i>\n </button>\n</ng-template>\n\n<ng-template #backwardButtonTpl>\n <button\n [disabled]=\"isAtEnd()\"\n (click)=\"scrollToEndDirection()\"\n class=\"et-scrollable-button et-scrollable-button--end\"\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n >\n <i etIcon=\"et-chevron\"></i>\n </button>\n</ng-template>\n\n<ng-template #loadingTpl>\n @if (loadingTemplate(); as tpl) {\n @for (\n _ of tpl.repeat();\n track index;\n let index = $index;\n let even = $even;\n let odd = $odd;\n let first = $first;\n let last = $last\n ) {\n <ng-container *ngTemplateOutlet=\"tpl.templateRef; context: { index, even, odd, first, last }\" />\n }\n }\n</ng-template>\n", styles: [":where(.et-scrollable){--mask: #121212 0, transparent 100%;--mask-size: 25px;--darken-non-intersecting-items-amount: .75;--_auto-size: min-content;display:block}.et-scrollable .et-scrollable-wrapper{display:grid;position:relative;block-size:100%;inline-size:100%}.et-scrollable[item-size=same]{--_auto-size: 1fr}.et-scrollable[item-size=half]{--_auto-size: calc((100% - var(--item-gap)) / 2)}.et-scrollable[item-size=third]{--_auto-size: calc((100% - (var(--item-gap) * 2)) / 3)}.et-scrollable[item-size=quarter]{--_auto-size: calc((100% - (var(--item-gap) * 3)) / 4)}.et-scrollable[item-size=full]{--_auto-size: 100%}.et-scrollable[render-scrollbars=false] .et-scrollable-container,.et-scrollable:not([render-scrollbars]) .et-scrollable-container{scrollbar-width:none}.et-scrollable[render-scrollbars=false] .et-scrollable-container::-webkit-scrollbar,.et-scrollable:not([render-scrollbars]) .et-scrollable-container::-webkit-scrollbar{display:none}.et-scrollable .et-scrollable-button .et-icon--et-chevron{display:block}.et-scrollable[direction=horizontal] .et-scrollable-container,.et-scrollable:not([direction]) .et-scrollable-container{grid-auto-flow:column;grid-auto-columns:var(--_auto-size);overflow-x:auto;overflow-y:hidden}.et-scrollable[direction=horizontal] .et-scrollable-container>:nth-child(2),.et-scrollable:not([direction]) .et-scrollable-container>:nth-child(2){grid-column:1/1;grid-row:1/1}.et-scrollable[direction=horizontal] .et-scrollable-container>:nth-last-child(2),.et-scrollable:not([direction]) .et-scrollable-container>:nth-last-child(2){grid-column:var(--item-count)/var(--item-count);grid-row:1/1}.et-scrollable[direction=horizontal] .et-scrollable-mask,.et-scrollable[direction=horizontal] .et-scrollable-button,.et-scrollable:not([direction]) .et-scrollable-mask,.et-scrollable:not([direction]) .et-scrollable-button{inline-size:var(--mask-size);block-size:100%}.et-scrollable[direction=horizontal] .et-scrollable-mask--start,.et-scrollable[direction=horizontal] .et-scrollable-button--start,.et-scrollable:not([direction]) .et-scrollable-mask--start,.et-scrollable:not([direction]) .et-scrollable-button--start{inset-block-start:0;inset-inline:0 0}.et-scrollable[direction=horizontal] .et-scrollable-mask--end,.et-scrollable[direction=horizontal] .et-scrollable-button--end,.et-scrollable:not([direction]) .et-scrollable-mask--end,.et-scrollable:not([direction]) .et-scrollable-button--end{inset-block-start:0;inset-inline:calc(100% - 40px) 0}.et-scrollable[direction=horizontal] .et-scrollable-mask--start,.et-scrollable:not([direction]) .et-scrollable-mask--start{background:linear-gradient(to right,var(--mask))}.et-scrollable[direction=horizontal] .et-scrollable-mask--end,.et-scrollable:not([direction]) .et-scrollable-mask--end{background:linear-gradient(to left,var(--mask));inset-inline:calc(100% - var(--mask-size)) 100%}.et-scrollable[direction=horizontal] .et-scrollable-button--start,.et-scrollable:not([direction]) .et-scrollable-button--start{inset-block-start:calc(50% - 20px);transform:translate(-10px)}.et-scrollable[direction=horizontal] .et-scrollable-button--start .et-icon--et-chevron,.et-scrollable:not([direction]) .et-scrollable-button--start .et-icon--et-chevron{transform:rotate(-90deg)}.et-scrollable[direction=horizontal] .et-scrollable-button--end,.et-scrollable:not([direction]) .et-scrollable-button--end{inset-block-start:calc(50% - 20px);transform:translate(10px)}.et-scrollable[direction=horizontal] .et-scrollable-button--end .et-icon--et-chevron,.et-scrollable:not([direction]) .et-scrollable-button--end .et-icon--et-chevron{transform:rotate(90deg)}.et-scrollable[direction=horizontal] .et-scroll-observer-first-element,.et-scrollable[direction=horizontal] .et-scroll-observer-last-element,.et-scrollable:not([direction]) .et-scroll-observer-first-element,.et-scrollable:not([direction]) .et-scroll-observer-last-element{block-size:100%;inline-size:1px}.et-scrollable[direction=horizontal] .et-scroll-observer-first-element,.et-scrollable:not([direction]) .et-scroll-observer-first-element{margin-inline-start:3px;grid-column:1/1;grid-row:1/1}.et-scrollable[direction=horizontal] .et-scroll-observer-last-element,.et-scrollable:not([direction]) .et-scroll-observer-last-element{margin-inline-end:3px;grid-column:var(--item-count)/var(--item-count);grid-row:1/1;justify-self:end}.et-scrollable[direction=vertical] .et-scrollable-container{grid-auto-flow:row;grid-auto-rows:var(--_auto-size);overflow-x:hidden;overflow-y:auto}.et-scrollable[direction=vertical] .et-scrollable-container>:nth-child(2){grid-row:1/1;grid-column:1/1}.et-scrollable[direction=vertical] .et-scrollable-container>:nth-last-child(2){grid-row:var(--item-count)/var(--item-count);grid-column:1/1}.et-scrollable[direction=vertical] .et-scrollable-mask,.et-scrollable[direction=vertical] .et-scrollable-button{block-size:var(--mask-size);inline-size:100%}.et-scrollable[direction=vertical] .et-scrollable-mask--start,.et-scrollable[direction=vertical] .et-scrollable-button--start{inset-block-start:0;inset-inline-start:0}.et-scrollable[direction=vertical] .et-scrollable-mask--end,.et-scrollable[direction=vertical] .et-scrollable-button--end{inset-block-end:0;inset-inline-start:0}.et-scrollable[direction=vertical] .et-scrollable-mask--start{background:linear-gradient(to bottom,var(--mask))}.et-scrollable[direction=vertical] .et-scrollable-mask--end{background:linear-gradient(to top,var(--mask))}.et-scrollable[direction=vertical] .et-scrollable-button--start{inset-inline-start:calc(50% - 20px);transform:translateY(-10px)}.et-scrollable[direction=vertical] .et-scrollable-button--start .et-icon--et-chevron{transform:rotate(0)}.et-scrollable[direction=vertical] .et-scrollable-button--end{inset-inline-start:calc(50% - 20px);transform:translateY(10px)}.et-scrollable[direction=vertical] .et-scrollable-button--end .et-icon--et-chevron{transform:rotate(180deg)}.et-scrollable[direction=vertical] .et-scroll-observer-first-element,.et-scrollable[direction=vertical] .et-scroll-observer-last-element{inline-size:100%;block-size:1px}.et-scrollable[direction=vertical] .et-scroll-observer-first-element{margin-block-start:3px;grid-row:1/1;grid-column:1/1}.et-scrollable[direction=vertical] .et-scroll-observer-last-element{margin-block-end:3px;grid-row:var(--item-count)/var(--item-count);grid-column:1/1;align-self:end}.et-scrollable[direction=vertical]:has(.et-scrollable-footer){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr);gap:10px}.et-scrollable[direction=vertical] .et-scrollable-footer{flex-direction:column;margin-block-start:0}.et-scrollable[direction=vertical] .et-scrollable-progress-bar{flex-direction:column;max-block-size:100px}.et-scrollable[direction=vertical] .et-scrollable-dots-container{flex-direction:column}.et-scrollable:not(.et-scrollable--is-at-start) .et-scrollable-masks .et-scrollable-mask--start,.et-scrollable:not(.et-scrollable--is-at-start) .et-scrollable-buttons .et-scrollable-button--start{opacity:1;transform:translate(0)}.et-scrollable:not(.et-scrollable--is-at-start) .et-scrollable-buttons .et-scrollable-button--start{pointer-events:all}.et-scrollable:not(.et-scrollable--is-at-end) .et-scrollable-masks .et-scrollable-mask--end,.et-scrollable:not(.et-scrollable--is-at-end) .et-scrollable-buttons .et-scrollable-button--end{opacity:1;transform:translate(0)}.et-scrollable:not(.et-scrollable--is-at-end) .et-scrollable-buttons .et-scrollable-button--end{pointer-events:all}.et-scrollable .et-scroll-observer-first-element,.et-scrollable .et-scroll-observer-last-element{pointer-events:none}.et-scrollable .et-scrollable-container{display:grid;position:relative;grid-row:1/1;grid-column:1/1}.et-scrollable .et-scrollable-masks,.et-scrollable .et-scrollable-buttons{grid-row:1/1;grid-column:1/1;pointer-events:none}.et-scrollable .et-scrollable-masks .et-scrollable-mask,.et-scrollable .et-scrollable-masks .et-scrollable-button,.et-scrollable .et-scrollable-buttons .et-scrollable-mask,.et-scrollable .et-scrollable-buttons .et-scrollable-button{position:absolute;opacity:0}.et-scrollable.et-scrollable--can-animate .et-scrollable-dots-container{transition:transform .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate .et-scrollable-navigation-item:after{transition:background-color .2s linear,transform .2s linear}.et-scrollable.et-scrollable--can-animate.et-scrollable--can-scroll .et-scrollable-mask{transition:opacity .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate.et-scrollable--can-scroll .et-scrollable-button{transition:opacity .3s var(--ease-5),transform .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate.et-scrollable--darken-non-intersecting-items .et-scrollable-item{transition:opacity .3s var(--ease-5)}.et-scrollable.et-scrollable--darken-non-intersecting-items .et-scrollable-item--not-intersecting{opacity:var(--darken-non-intersecting-items-amount)}.et-scrollable .et-scrollable-buttons .et-scrollable-button{background:transparent;border:none;padding:12px;inline-size:40px;block-size:40px;border-radius:4px;cursor:pointer}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-icon--et-chevron{pointer-events:none}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-scrollable-button--start{inset-inline:0 0}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-scrollable-button--end{inset-inline:calc(100% - 40px) 0}.et-scrollable[sticky-buttons=true]{--_sticky-margin: 10%}.et-scrollable[sticky-buttons=true] .et-scrollable-button{position:sticky}.et-scrollable[sticky-buttons=true][direction=horizontal] .et-scrollable-buttons{margin-block:var(--_sticky-margin)}.et-scrollable[sticky-buttons=true][direction=vertical] .et-scrollable-buttons{margin-inline:var(--_sticky-margin)}.et-scrollable[sticky-buttons=true][direction=vertical] .et-scrollable-buttons .et-scrollable-button--end{inset-block-start:100%}.et-scrollable .et-scrollable-footer{display:flex;justify-content:center;align-items:center;gap:10px;margin-block-start:10px}.et-scrollable .et-scrollable-footer.et-scrollable-footer--with-buttons .et-scrollable-button{transform:none}.et-scrollable .et-scrollable-footer .et-scrollable-button{width:30px;height:30px}.et-scrollable .et-scrollable-navigation-item{display:flex;justify-content:center;align-items:center;border:none;padding:0;inline-size:20px;block-size:20px;border-radius:50%;cursor:pointer;background-color:transparent}.et-scrollable .et-scrollable-navigation-item.et-scrollable-navigation-item--active:after{background-color:#c6c6c6}.et-scrollable .et-scrollable-navigation-item:after{content:\"\";display:block;inline-size:50%;block-size:50%;border-radius:50%;background-color:#4b4b4b;transform:scale(0)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"0\"]:after{transform:scale(1)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"1\"]:after{transform:scale(.75)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"2\"]:after{transform:scale(.6)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"3\"]:after{transform:scale(.5)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"4\"]:after{transform:scale(.4)}.et-scrollable .et-scrollable-progress-bar{overflow:hidden;max-inline-size:100px;display:flex;align-items:center}.et-scrollable .et-scrollable-progress-bar .et-scrollable-dots-container{display:flex;flex-wrap:nowrap}\n"] }]
|
|
9619
|
-
}], ctorParameters: () => [], propDecorators: { itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], scrollableRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollableRole", required: false }] }], scrollableClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollableClass", required: false }] }], renderNavigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "renderNavigation", required: false }] }], renderMasks: [{ type: i0.Input, args: [{ isSignal: true, alias: "renderMasks", required: false }] }], renderButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "renderButtons", required: false }] }], buttonPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonPosition", required: false }] }], renderScrollbars: [{ type: i0.Input, args: [{ isSignal: true, alias: "renderScrollbars", required: false }] }], stickyButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyButtons", required: false }] }], cursorDragScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "cursorDragScroll", required: false }] }], disableActiveElementScrolling: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableActiveElementScrolling", required: false }] }], scrollMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollMode", required: false }] }], snap: [{ type: i0.Input, args: [{ isSignal: true, alias: "snap", required: false }] }], scrollMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollMargin", required: false }] }], scrollOrigin: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollOrigin", required: false }] }], darkenNonIntersectingItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "darkenNonIntersectingItems", required: false }] }], showLoadingTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoadingTemplate", required: false }] }], loadingTemplatePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTemplatePosition", required: false }] }], scrollable: [{ type: i0.ViewChild, args: ['scrollable', { isSignal: true }] }],
|
|
9388
|
+
}, providers: [provideIcons(CHEVRON_ICON), provideBreakpointInstance(ScrollableComponent)], template: "<div class=\"et-scrollable-wrapper\">\n <div\n #scrollable\n [attr.role]=\"scrollableRole() ?? undefined\"\n [ngClass]=\"scrollableClass()\"\n class=\"et-scrollable-container\"\n etScrollObserver\n >\n <div #firstElement class=\"et-scroll-observer-first-element\" etScrollObserverStart etScrollableIgnoreChild></div>\n @if (loadingTemplatePosition() === 'start' && showLoadingTemplate()) {\n <ng-container *ngTemplateOutlet=\"loadingTpl\" />\n }\n <ng-content />\n @if (loadingTemplatePosition() === 'end' && showLoadingTemplate()) {\n <ng-container *ngTemplateOutlet=\"loadingTpl\" />\n }\n\n <div #lastElement class=\"et-scroll-observer-last-element\" etScrollObserverEnd etScrollableIgnoreChild></div>\n </div>\n\n @if (renderMasks()) {\n <div class=\"et-scrollable-masks\">\n <div class=\"et-scrollable-mask et-scrollable-mask--start\"></div>\n <div class=\"et-scrollable-mask et-scrollable-mask--end\"></div>\n </div>\n }\n\n @if (renderButtonsInside()) {\n <div class=\"et-scrollable-buttons\">\n <ng-container *ngTemplateOutlet=\"forwardButtonTpl\" />\n <ng-container *ngTemplateOutlet=\"backwardButtonTpl\" />\n </div>\n }\n</div>\n\n@if ((renderButtonsInFooter() || (renderNavigation() && scrollableNavigation().items.length > 1)) && canScroll()) {\n <div\n [ngClass]=\"{\n 'et-scrollable-footer--with-navigation': renderNavigation(),\n 'et-scrollable-footer--with-buttons': renderButtonsInFooter(),\n }\"\n class=\"et-scrollable-footer\"\n aria-hidden=\"true\"\n >\n @if (renderButtonsInFooter()) {\n <ng-container *ngTemplateOutlet=\"forwardButtonTpl\" />\n }\n\n @if (renderNavigation()) {\n <div class=\"et-scrollable-progress-bar\">\n <div #navigationDotsContainer class=\"et-scrollable-dots-container\">\n @for (item of scrollableNavigation().items; track i; let i = $index) {\n <button\n #navigationDot\n [class.et-scrollable-navigation-item--active]=\"item.isActive\"\n [class.et-scrollable-navigation-item--close]=\"\n scrollableNavigation().items[i + 1]?.isActive || scrollableNavigation().items[i - 1]?.isActive\n \"\n [class.et-scrollable-navigation-item--far]=\"\n !scrollableNavigation().items[i + 1]?.isActive &&\n !scrollableNavigation().items[i - 1]?.isActive &&\n !item.isActive\n \"\n [attr.active-offset]=\"item.activeOffset\"\n (click)=\"scrollToElementViaNavigation(i)\"\n class=\"et-scrollable-navigation-item\"\n type=\"button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n ></button>\n }\n </div>\n </div>\n }\n\n @if (renderButtonsInFooter()) {\n <ng-container *ngTemplateOutlet=\"backwardButtonTpl\" />\n }\n </div>\n}\n\n<ng-template #forwardButtonTpl>\n <button\n [disabled]=\"isAtStart()\"\n (click)=\"scrollToStartDirection()\"\n class=\"et-scrollable-button et-scrollable-button--start\"\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n >\n <i etIcon=\"et-chevron\"></i>\n </button>\n</ng-template>\n\n<ng-template #backwardButtonTpl>\n <button\n [disabled]=\"isAtEnd()\"\n (click)=\"scrollToEndDirection()\"\n class=\"et-scrollable-button et-scrollable-button--end\"\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n >\n <i etIcon=\"et-chevron\"></i>\n </button>\n</ng-template>\n\n<ng-template #loadingTpl>\n @if (loadingTemplate(); as tpl) {\n @for (\n _ of tpl.repeat();\n track index;\n let index = $index;\n let even = $even;\n let odd = $odd;\n let first = $first;\n let last = $last\n ) {\n <ng-container *ngTemplateOutlet=\"tpl.templateRef; context: { index, even, odd, first, last }\" />\n }\n }\n</ng-template>\n", styles: [":where(.et-scrollable){--mask: #121212 0, transparent 100%;--mask-size: 25px;--darken-non-intersecting-items-amount: .75;--_auto-size: min-content;display:block;position:relative}.et-scrollable .et-scrollable-wrapper{display:grid;position:relative;block-size:100%;inline-size:100%}.et-scrollable[item-size=same]{--_auto-size: 1fr}.et-scrollable[item-size=half]{--_auto-size: calc((100% - var(--item-gap)) / 2)}.et-scrollable[item-size=third]{--_auto-size: calc((100% - (var(--item-gap) * 2)) / 3)}.et-scrollable[item-size=quarter]{--_auto-size: calc((100% - (var(--item-gap) * 3)) / 4)}.et-scrollable[item-size=full]{--_auto-size: 100%}.et-scrollable[render-scrollbars=false] .et-scrollable-container,.et-scrollable:not([render-scrollbars]) .et-scrollable-container{scrollbar-width:none}.et-scrollable[render-scrollbars=false] .et-scrollable-container::-webkit-scrollbar,.et-scrollable:not([render-scrollbars]) .et-scrollable-container::-webkit-scrollbar{display:none}.et-scrollable .et-scrollable-button .et-icon--et-chevron{display:block}.et-scrollable[direction=horizontal] .et-scrollable-container,.et-scrollable:not([direction]) .et-scrollable-container{grid-auto-flow:column;grid-auto-columns:var(--_auto-size);overflow-x:auto;overflow-y:hidden}.et-scrollable[direction=horizontal] .et-scrollable-container>:nth-child(2),.et-scrollable:not([direction]) .et-scrollable-container>:nth-child(2){grid-column:1/1;grid-row:1/1}.et-scrollable[direction=horizontal] .et-scrollable-container>:nth-last-child(2),.et-scrollable:not([direction]) .et-scrollable-container>:nth-last-child(2){grid-column:var(--item-count)/var(--item-count);grid-row:1/1}.et-scrollable[direction=horizontal] .et-scrollable-mask,.et-scrollable[direction=horizontal] .et-scrollable-button,.et-scrollable:not([direction]) .et-scrollable-mask,.et-scrollable:not([direction]) .et-scrollable-button{inline-size:var(--mask-size);block-size:100%}.et-scrollable[direction=horizontal] .et-scrollable-mask--start,.et-scrollable[direction=horizontal] .et-scrollable-button--start,.et-scrollable:not([direction]) .et-scrollable-mask--start,.et-scrollable:not([direction]) .et-scrollable-button--start{inset-block-start:0;inset-inline:0 0}.et-scrollable[direction=horizontal] .et-scrollable-mask--end,.et-scrollable[direction=horizontal] .et-scrollable-button--end,.et-scrollable:not([direction]) .et-scrollable-mask--end,.et-scrollable:not([direction]) .et-scrollable-button--end{inset-block-start:0;inset-inline:calc(100% - 40px) 0}.et-scrollable[direction=horizontal] .et-scrollable-mask--start,.et-scrollable:not([direction]) .et-scrollable-mask--start{background:linear-gradient(to right,var(--mask))}.et-scrollable[direction=horizontal] .et-scrollable-mask--end,.et-scrollable:not([direction]) .et-scrollable-mask--end{background:linear-gradient(to left,var(--mask));inset-inline:calc(100% - var(--mask-size)) 100%}.et-scrollable[direction=horizontal] .et-scrollable-button--start,.et-scrollable:not([direction]) .et-scrollable-button--start{inset-block-start:calc(50% - 20px);transform:translate(-10px)}.et-scrollable[direction=horizontal] .et-scrollable-button--start .et-icon--et-chevron,.et-scrollable:not([direction]) .et-scrollable-button--start .et-icon--et-chevron{transform:rotate(-90deg)}.et-scrollable[direction=horizontal] .et-scrollable-button--end,.et-scrollable:not([direction]) .et-scrollable-button--end{inset-block-start:calc(50% - 20px);transform:translate(10px)}.et-scrollable[direction=horizontal] .et-scrollable-button--end .et-icon--et-chevron,.et-scrollable:not([direction]) .et-scrollable-button--end .et-icon--et-chevron{transform:rotate(90deg)}.et-scrollable[direction=horizontal] .et-scroll-observer-first-element,.et-scrollable[direction=horizontal] .et-scroll-observer-last-element,.et-scrollable:not([direction]) .et-scroll-observer-first-element,.et-scrollable:not([direction]) .et-scroll-observer-last-element{block-size:100%;inline-size:1px}.et-scrollable[direction=horizontal] .et-scroll-observer-first-element,.et-scrollable:not([direction]) .et-scroll-observer-first-element{margin-inline-start:3px;grid-column:1/1;grid-row:1/1}.et-scrollable[direction=horizontal] .et-scroll-observer-last-element,.et-scrollable:not([direction]) .et-scroll-observer-last-element{margin-inline-end:3px;grid-column:var(--item-count)/var(--item-count);grid-row:1/1;justify-self:end}.et-scrollable[direction=vertical] .et-scrollable-container{grid-auto-flow:row;grid-auto-rows:var(--_auto-size);overflow-x:hidden;overflow-y:auto}.et-scrollable[direction=vertical] .et-scrollable-container>:nth-child(2){grid-row:1/1;grid-column:1/1}.et-scrollable[direction=vertical] .et-scrollable-container>:nth-last-child(2){grid-row:var(--item-count)/var(--item-count);grid-column:1/1}.et-scrollable[direction=vertical] .et-scrollable-mask,.et-scrollable[direction=vertical] .et-scrollable-button{block-size:var(--mask-size);inline-size:100%}.et-scrollable[direction=vertical] .et-scrollable-mask--start,.et-scrollable[direction=vertical] .et-scrollable-button--start{inset-block-start:0;inset-inline-start:0}.et-scrollable[direction=vertical] .et-scrollable-mask--end,.et-scrollable[direction=vertical] .et-scrollable-button--end{inset-block-end:0;inset-inline-start:0}.et-scrollable[direction=vertical] .et-scrollable-mask--start{background:linear-gradient(to bottom,var(--mask))}.et-scrollable[direction=vertical] .et-scrollable-mask--end{background:linear-gradient(to top,var(--mask))}.et-scrollable[direction=vertical] .et-scrollable-button--start{inset-inline-start:calc(50% - 20px);transform:translateY(-10px)}.et-scrollable[direction=vertical] .et-scrollable-button--start .et-icon--et-chevron{transform:rotate(0)}.et-scrollable[direction=vertical] .et-scrollable-button--end{inset-inline-start:calc(50% - 20px);transform:translateY(10px)}.et-scrollable[direction=vertical] .et-scrollable-button--end .et-icon--et-chevron{transform:rotate(180deg)}.et-scrollable[direction=vertical] .et-scroll-observer-first-element,.et-scrollable[direction=vertical] .et-scroll-observer-last-element{inline-size:100%;block-size:1px}.et-scrollable[direction=vertical] .et-scroll-observer-first-element{margin-block-start:3px;grid-row:1/1;grid-column:1/1}.et-scrollable[direction=vertical] .et-scroll-observer-last-element{margin-block-end:3px;grid-row:var(--item-count)/var(--item-count);grid-column:1/1;align-self:end}.et-scrollable[direction=vertical]:has(.et-scrollable-footer){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr);gap:10px}.et-scrollable[direction=vertical] .et-scrollable-footer{flex-direction:column;margin-block-start:0}.et-scrollable[direction=vertical] .et-scrollable-progress-bar{flex-direction:column;max-block-size:100px}.et-scrollable[direction=vertical] .et-scrollable-dots-container{flex-direction:column}.et-scrollable.et-scrollable--can-scroll:not(.et-scrollable--is-at-start) .et-scrollable-buttons .et-scrollable-button--start{opacity:1;transform:translate(0);pointer-events:all}.et-scrollable.et-scrollable--can-scroll.et-scrollable--has-partial-items:not(.et-scrollable--is-at-start) .et-scrollable-masks .et-scrollable-mask--start{opacity:1;transform:translate(0)}.et-scrollable.et-scrollable--can-scroll:not(.et-scrollable--is-at-end) .et-scrollable-buttons .et-scrollable-button--end{opacity:1;transform:translate(0);pointer-events:all}.et-scrollable.et-scrollable--can-scroll.et-scrollable--has-partial-items:not(.et-scrollable--is-at-end) .et-scrollable-masks .et-scrollable-mask--end{opacity:1;transform:translate(0)}.et-scrollable .et-scroll-observer-first-element,.et-scrollable .et-scroll-observer-last-element{pointer-events:none}.et-scrollable .et-scrollable-container{display:grid;position:relative;grid-row:1/1;grid-column:1/1}.et-scrollable .et-scrollable-masks,.et-scrollable .et-scrollable-buttons{grid-row:1/1;grid-column:1/1;pointer-events:none}.et-scrollable .et-scrollable-masks .et-scrollable-mask,.et-scrollable .et-scrollable-masks .et-scrollable-button,.et-scrollable .et-scrollable-buttons .et-scrollable-mask,.et-scrollable .et-scrollable-buttons .et-scrollable-button{position:absolute;opacity:0}.et-scrollable.et-scrollable--can-animate .et-scrollable-dots-container{transition:transform .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate .et-scrollable-navigation-item:after{transition:background-color .2s linear,transform .2s linear}.et-scrollable.et-scrollable--can-animate.et-scrollable--can-scroll .et-scrollable-mask{transition:opacity .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate.et-scrollable--can-scroll .et-scrollable-button{transition:opacity .3s var(--ease-5),transform .3s var(--ease-5)}.et-scrollable.et-scrollable--can-animate.et-scrollable--darken-non-intersecting-items .et-scrollable-item{transition:opacity .3s var(--ease-5)}.et-scrollable.et-scrollable--darken-non-intersecting-items .et-scrollable-item--not-intersecting{opacity:var(--darken-non-intersecting-items-amount)}.et-scrollable .et-scrollable-buttons .et-scrollable-button{background:transparent;border:none;padding:12px;inline-size:40px;block-size:40px;border-radius:4px;cursor:pointer}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-icon--et-chevron{pointer-events:none}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-scrollable-button--start{inset-inline:0 0}.et-scrollable .et-scrollable-buttons .et-scrollable-button .et-scrollable-button--end{inset-inline:calc(100% - 40px) 0}.et-scrollable[sticky-buttons=true]{--_sticky-margin: 10%}.et-scrollable[sticky-buttons=true] .et-scrollable-button{position:sticky}.et-scrollable[sticky-buttons=true][direction=horizontal] .et-scrollable-buttons{margin-block:var(--_sticky-margin)}.et-scrollable[sticky-buttons=true][direction=vertical] .et-scrollable-buttons{margin-inline:var(--_sticky-margin)}.et-scrollable[sticky-buttons=true][direction=vertical] .et-scrollable-buttons .et-scrollable-button--end{inset-block-start:100%}.et-scrollable .et-scrollable-footer{display:flex;justify-content:center;align-items:center;gap:10px;margin-block-start:10px}.et-scrollable .et-scrollable-footer.et-scrollable-footer--with-buttons .et-scrollable-button{transform:none}.et-scrollable .et-scrollable-footer .et-scrollable-button{width:30px;height:30px}.et-scrollable .et-scrollable-navigation-item{display:flex;justify-content:center;align-items:center;border:none;padding:0;inline-size:20px;block-size:20px;border-radius:50%;cursor:pointer;background-color:transparent}.et-scrollable .et-scrollable-navigation-item.et-scrollable-navigation-item--active:after{background-color:#c6c6c6}.et-scrollable .et-scrollable-navigation-item:after{content:\"\";display:block;inline-size:50%;block-size:50%;border-radius:50%;background-color:#4b4b4b;transform:scale(0)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"0\"]:after{transform:scale(1)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"1\"]:after{transform:scale(.75)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"2\"]:after{transform:scale(.6)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"3\"]:after{transform:scale(.5)}.et-scrollable .et-scrollable-navigation-item[active-offset=\"4\"]:after{transform:scale(.4)}.et-scrollable .et-scrollable-progress-bar{overflow:hidden;max-inline-size:100px;display:flex;align-items:center}.et-scrollable .et-scrollable-progress-bar .et-scrollable-dots-container{display:flex;flex-wrap:nowrap}\n"] }]
|
|
9389
|
+
}], ctorParameters: () => [], propDecorators: { itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], scrollableRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollableRole", required: false }] }], scrollableClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollableClass", required: false }] }], renderNavigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "renderNavigation", required: false }] }], renderMasks: [{ type: i0.Input, args: [{ isSignal: true, alias: "renderMasks", required: false }] }], renderButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "renderButtons", required: false }] }], buttonPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonPosition", required: false }] }], renderScrollbars: [{ type: i0.Input, args: [{ isSignal: true, alias: "renderScrollbars", required: false }] }], stickyButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyButtons", required: false }] }], cursorDragScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "cursorDragScroll", required: false }] }], disableActiveElementScrolling: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableActiveElementScrolling", required: false }] }], scrollMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollMode", required: false }] }], snap: [{ type: i0.Input, args: [{ isSignal: true, alias: "snap", required: false }] }], scrollMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollMargin", required: false }] }], scrollOrigin: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollOrigin", required: false }] }], darkenNonIntersectingItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "darkenNonIntersectingItems", required: false }] }], showLoadingTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoadingTemplate", required: false }] }], loadingTemplatePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTemplatePosition", required: false }] }], scrollable: [{ type: i0.ViewChild, args: ['scrollable', { isSignal: true }] }], scrollObserver: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ScrollObserverDirective), { isSignal: true }] }], activeElementList: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SCROLLABLE_IS_ACTIVE_CHILD_TOKEN), { ...{ descendants: true }, isSignal: true }] }], navigationDotsContainer: [{ type: i0.ViewChild, args: ['navigationDotsContainer', { isSignal: true }] }], firstNavigationDot: [{ type: i0.ViewChild, args: ['navigationDot', { isSignal: true }] }], loadingTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SCROLLABLE_LOADING_TEMPLATE_TOKEN), { isSignal: true }] }], intersectionChange: [{ type: i0.Output, args: ["intersectionChange"] }], scrollStateChange: [{ type: i0.Output, args: ["scrollStateChange"] }] } });
|
|
9620
9390
|
|
|
9621
9391
|
const [provideFocusRegistry, injectFocusRegistry] = createRootProvider(() => {
|
|
9622
9392
|
const registry = signal({}, ...(ngDevMode ? [{ debugName: "registry" }] : []));
|
|
@@ -10784,6 +10554,7 @@ class CarouselDirective {
|
|
|
10784
10554
|
this.autoPlayTime = input(5000, { ...(ngDevMode ? { debugName: "autoPlayTime" } : {}), transform: numberAttribute });
|
|
10785
10555
|
this.pauseAutoPlayOnHover = input(true, { ...(ngDevMode ? { debugName: "pauseAutoPlayOnHover" } : {}), transform: booleanAttribute });
|
|
10786
10556
|
this.pauseAutoPlayOnFocus = input(true, { ...(ngDevMode ? { debugName: "pauseAutoPlayOnFocus" } : {}), transform: booleanAttribute });
|
|
10557
|
+
this.pauseAutoPlayOnHidden = input(true, { ...(ngDevMode ? { debugName: "pauseAutoPlayOnHidden" } : {}), transform: booleanAttribute });
|
|
10787
10558
|
this.transitionType = input('mask-slide', ...(ngDevMode ? [{ debugName: "transitionType" }] : []));
|
|
10788
10559
|
this.transitionDuration = input(450, { ...(ngDevMode ? { debugName: "transitionDuration" } : {}), transform: numberAttribute });
|
|
10789
10560
|
this.activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : []));
|
|
@@ -10793,6 +10564,8 @@ class CarouselDirective {
|
|
|
10793
10564
|
this.isAutoPlayPaused = signal(false, ...(ngDevMode ? [{ debugName: "isAutoPlayPaused" }] : []));
|
|
10794
10565
|
this.isAutoPlayPausedByInternalHover = signal(false, ...(ngDevMode ? [{ debugName: "isAutoPlayPausedByInternalHover" }] : []));
|
|
10795
10566
|
this.isAutoPlayPausedByInternalFocus = signal(false, ...(ngDevMode ? [{ debugName: "isAutoPlayPausedByInternalFocus" }] : []));
|
|
10567
|
+
this.isAutoPlayPausedByInternalVisibility = signal(false, ...(ngDevMode ? [{ debugName: "isAutoPlayPausedByInternalVisibility" }] : []));
|
|
10568
|
+
this.hostElementIntersection = signalHostElementIntersection();
|
|
10796
10569
|
this.isNavigationLocked = toSignal(toObservable(this.activeIndex).pipe(switchMap(() => merge(of(true), timer(this.transitionDuration()).pipe(map(() => false))))), {
|
|
10797
10570
|
initialValue: false,
|
|
10798
10571
|
});
|
|
@@ -10823,8 +10596,12 @@ class CarouselDirective {
|
|
|
10823
10596
|
toObservable(this.isAutoPlayPaused, { injector: this.injector }),
|
|
10824
10597
|
toObservable(this.isAutoPlayPausedByInternalHover, { injector: this.injector }),
|
|
10825
10598
|
toObservable(this.isAutoPlayPausedByInternalFocus, { injector: this.injector }),
|
|
10826
|
-
|
|
10827
|
-
|
|
10599
|
+
toObservable(this.isAutoPlayPausedByInternalVisibility, { injector: this.injector }),
|
|
10600
|
+
]).pipe(switchMap(([isPaused, internalIsPausedDueToHover, internalIsPausedDueToFocus, internalIsPausedDueToVisibility]) => {
|
|
10601
|
+
if (isPaused ||
|
|
10602
|
+
internalIsPausedDueToHover ||
|
|
10603
|
+
internalIsPausedDueToFocus ||
|
|
10604
|
+
internalIsPausedDueToVisibility)
|
|
10828
10605
|
return of(elapsed / duration);
|
|
10829
10606
|
return timer(0, 100).pipe(tap(() => (elapsed += 100)), map(() => elapsed / duration), takeWhile((progress) => progress < 1, true));
|
|
10830
10607
|
}));
|
|
@@ -10834,6 +10611,16 @@ class CarouselDirective {
|
|
|
10834
10611
|
return false;
|
|
10835
10612
|
return this.activeItemAutoPlayProgress() === 1;
|
|
10836
10613
|
}, ...(ngDevMode ? [{ debugName: "shouldPlayNextItem" }] : []));
|
|
10614
|
+
effect(() => {
|
|
10615
|
+
const entries = this.hostElementIntersection();
|
|
10616
|
+
if (!this.pauseAutoPlayOnHidden()) {
|
|
10617
|
+
this.isAutoPlayPausedByInternalVisibility.set(false);
|
|
10618
|
+
return;
|
|
10619
|
+
}
|
|
10620
|
+
if (entries.length === 0)
|
|
10621
|
+
return;
|
|
10622
|
+
this.isAutoPlayPausedByInternalVisibility.set(!(entries[0]?.isVisible ?? true));
|
|
10623
|
+
});
|
|
10837
10624
|
combineLatest([toObservable(this.activeItemAutoPlayProgress), toObservable(this.autoPlay)])
|
|
10838
10625
|
.pipe(filter(([progress, autoPlay]) => progress === 1 && autoPlay), tap(() => this.next()), takeUntilDestroyed())
|
|
10839
10626
|
.subscribe();
|
|
@@ -10899,7 +10686,7 @@ class CarouselDirective {
|
|
|
10899
10686
|
this.isAutoPlayPaused.set(false);
|
|
10900
10687
|
}
|
|
10901
10688
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CarouselDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10902
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.1", type: CarouselDirective, isStandalone: true, inputs: { loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null }, autoPlay: { classPropertyName: "autoPlay", publicName: "autoPlay", isSignal: true, isRequired: false, transformFunction: null }, autoPlayTime: { classPropertyName: "autoPlayTime", publicName: "autoPlayTime", isSignal: true, isRequired: false, transformFunction: null }, pauseAutoPlayOnHover: { classPropertyName: "pauseAutoPlayOnHover", publicName: "pauseAutoPlayOnHover", isSignal: true, isRequired: false, transformFunction: null }, pauseAutoPlayOnFocus: { classPropertyName: "pauseAutoPlayOnFocus", publicName: "pauseAutoPlayOnFocus", isSignal: true, isRequired: false, transformFunction: null }, transitionType: { classPropertyName: "transitionType", publicName: "transitionType", isSignal: true, isRequired: false, transformFunction: null }, transitionDuration: { classPropertyName: "transitionDuration", publicName: "transitionDuration", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
10689
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.1", type: CarouselDirective, isStandalone: true, inputs: { loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null }, autoPlay: { classPropertyName: "autoPlay", publicName: "autoPlay", isSignal: true, isRequired: false, transformFunction: null }, autoPlayTime: { classPropertyName: "autoPlayTime", publicName: "autoPlayTime", isSignal: true, isRequired: false, transformFunction: null }, pauseAutoPlayOnHover: { classPropertyName: "pauseAutoPlayOnHover", publicName: "pauseAutoPlayOnHover", isSignal: true, isRequired: false, transformFunction: null }, pauseAutoPlayOnFocus: { classPropertyName: "pauseAutoPlayOnFocus", publicName: "pauseAutoPlayOnFocus", isSignal: true, isRequired: false, transformFunction: null }, pauseAutoPlayOnHidden: { classPropertyName: "pauseAutoPlayOnHidden", publicName: "pauseAutoPlayOnHidden", isSignal: true, isRequired: false, transformFunction: null }, transitionType: { classPropertyName: "transitionType", publicName: "transitionType", isSignal: true, isRequired: false, transformFunction: null }, transitionDuration: { classPropertyName: "transitionDuration", publicName: "transitionDuration", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
10903
10690
|
{
|
|
10904
10691
|
provide: CAROUSEL_TOKEN,
|
|
10905
10692
|
useExisting: CarouselDirective,
|
|
@@ -10916,7 +10703,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
10916
10703
|
},
|
|
10917
10704
|
],
|
|
10918
10705
|
}]
|
|
10919
|
-
}], ctorParameters: () => [], propDecorators: { loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], autoPlay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoPlay", required: false }] }], autoPlayTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoPlayTime", required: false }] }], pauseAutoPlayOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseAutoPlayOnHover", required: false }] }], pauseAutoPlayOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseAutoPlayOnFocus", required: false }] }], transitionType: [{ type: i0.Input, args: [{ isSignal: true, alias: "transitionType", required: false }] }], transitionDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "transitionDuration", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CAROUSEL_ITEM_TOKEN), { isSignal: true }] }] } });
|
|
10706
|
+
}], ctorParameters: () => [], propDecorators: { loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], autoPlay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoPlay", required: false }] }], autoPlayTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoPlayTime", required: false }] }], pauseAutoPlayOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseAutoPlayOnHover", required: false }] }], pauseAutoPlayOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseAutoPlayOnFocus", required: false }] }], pauseAutoPlayOnHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseAutoPlayOnHidden", required: false }] }], transitionType: [{ type: i0.Input, args: [{ isSignal: true, alias: "transitionType", required: false }] }], transitionDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "transitionDuration", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CAROUSEL_ITEM_TOKEN), { isSignal: true }] }] } });
|
|
10920
10707
|
|
|
10921
10708
|
class CarouselComponent {
|
|
10922
10709
|
constructor() {
|
|
@@ -10925,7 +10712,7 @@ class CarouselComponent {
|
|
|
10925
10712
|
syncSignal(this.carouselItemsWrapper, this.carousel.carouselItemsWrapper, { skipSyncRead: true });
|
|
10926
10713
|
}
|
|
10927
10714
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10928
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.1", type: CarouselComponent, isStandalone: true, selector: "et-carousel", host: { classAttribute: "et-carousel-host" }, viewQueries: [{ propertyName: "carouselItemsWrapper", first: true, predicate: ["carouselItemsWrapper"], descendants: true, isSignal: true }], hostDirectives: [{ directive: CarouselDirective, inputs: ["loop", "loop", "autoPlay", "autoPlay", "autoPlayTime", "autoPlayTime", "pauseAutoPlayOnHover", "pauseAutoPlayOnHover", "pauseAutoPlayOnFocus", "pauseAutoPlayOnFocus", "transitionType", "transitionType", "transitionDuration", "transitionDuration"] }], ngImport: i0, template: `
|
|
10715
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.1", type: CarouselComponent, isStandalone: true, selector: "et-carousel", host: { classAttribute: "et-carousel-host" }, viewQueries: [{ propertyName: "carouselItemsWrapper", first: true, predicate: ["carouselItemsWrapper"], descendants: true, isSignal: true }], hostDirectives: [{ directive: CarouselDirective, inputs: ["loop", "loop", "autoPlay", "autoPlay", "autoPlayTime", "autoPlayTime", "pauseAutoPlayOnHover", "pauseAutoPlayOnHover", "pauseAutoPlayOnFocus", "pauseAutoPlayOnFocus", "pauseAutoPlayOnHidden", "pauseAutoPlayOnHidden", "transitionType", "transitionType", "transitionDuration", "transitionDuration"] }], ngImport: i0, template: `
|
|
10929
10716
|
<div class="et-carousel">
|
|
10930
10717
|
<div #carouselItemsWrapper class="et-carousel-items">
|
|
10931
10718
|
<ng-content select="et-carousel-item, [etCarouselItem]" />
|
|
@@ -10956,6 +10743,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
10956
10743
|
'autoPlayTime',
|
|
10957
10744
|
'pauseAutoPlayOnHover',
|
|
10958
10745
|
'pauseAutoPlayOnFocus',
|
|
10746
|
+
'pauseAutoPlayOnHidden',
|
|
10959
10747
|
'transitionType',
|
|
10960
10748
|
'transitionDuration',
|
|
10961
10749
|
],
|
|
@@ -13439,13 +13227,13 @@ const COMBOBOX_ERROR_CODES = Object.keys(COMBOBOX_ERRORS).reduce((acc, key, inde
|
|
|
13439
13227
|
acc[key] = index;
|
|
13440
13228
|
return acc;
|
|
13441
13229
|
}, {});
|
|
13442
|
-
const comboboxError = (code,
|
|
13230
|
+
const comboboxError = (code, data) => {
|
|
13443
13231
|
const message = `<et-combobox>: ${COMBOBOX_ERRORS[code]}`;
|
|
13444
|
-
throw new RuntimeError(COMBOBOX_ERROR_CODES[code], message,
|
|
13232
|
+
throw new RuntimeError(COMBOBOX_ERROR_CODES[code], message, data);
|
|
13445
13233
|
};
|
|
13446
13234
|
function assetComboboxBodyComponentSet(component) {
|
|
13447
13235
|
if (!component) {
|
|
13448
|
-
comboboxError('body_unset'
|
|
13236
|
+
comboboxError('body_unset');
|
|
13449
13237
|
}
|
|
13450
13238
|
}
|
|
13451
13239
|
|
|
@@ -13843,7 +13631,7 @@ class ComboboxDirective {
|
|
|
13843
13631
|
this._selectField = inject(SELECT_FIELD_TOKEN);
|
|
13844
13632
|
this._animatedOverlay = inject(AnimatedOverlayDirective);
|
|
13845
13633
|
this._comboboxConfig = inject(COMBOBOX_CONFIG_TOKEN, { optional: true });
|
|
13846
|
-
this.
|
|
13634
|
+
this.colorProvider = inject(COLOR_PROVIDER, { optional: true });
|
|
13847
13635
|
this._initialValue$ = new BehaviorSubject(null);
|
|
13848
13636
|
this._filterInternal$ = new BehaviorSubject(false);
|
|
13849
13637
|
this._loading$ = new BehaviorSubject(false);
|
|
@@ -13976,7 +13764,7 @@ class ComboboxDirective {
|
|
|
13976
13764
|
return;
|
|
13977
13765
|
const bodyRef = this._animatedOverlay.mount({
|
|
13978
13766
|
component: this._comboboxBodyComponent,
|
|
13979
|
-
|
|
13767
|
+
colorProvider: this.colorProvider,
|
|
13980
13768
|
});
|
|
13981
13769
|
if (!bodyRef)
|
|
13982
13770
|
return;
|
|
@@ -14258,12 +14046,12 @@ class ComboboxDirective {
|
|
|
14258
14046
|
}
|
|
14259
14047
|
if (expectedOptionType === ComboboxOptionType.Object) {
|
|
14260
14048
|
if (!isObjectArray(options)) {
|
|
14261
|
-
throw comboboxError('options_object_mismatch',
|
|
14049
|
+
throw comboboxError('options_object_mismatch', options);
|
|
14262
14050
|
}
|
|
14263
14051
|
}
|
|
14264
14052
|
else if (expectedOptionType === ComboboxOptionType.Primitive) {
|
|
14265
14053
|
if (!isPrimitiveArray(options)) {
|
|
14266
|
-
throw comboboxError('options_primitive_mismatch',
|
|
14054
|
+
throw comboboxError('options_primitive_mismatch', options);
|
|
14267
14055
|
}
|
|
14268
14056
|
}
|
|
14269
14057
|
}), catchError((e) => {
|
|
@@ -14286,12 +14074,12 @@ class ComboboxDirective {
|
|
|
14286
14074
|
: typeof initialValue !== 'object';
|
|
14287
14075
|
if (isPrimitive) {
|
|
14288
14076
|
if (!initialValueIsPrimitive) {
|
|
14289
|
-
throw comboboxError('init_val_primitive_mismatch',
|
|
14077
|
+
throw comboboxError('init_val_primitive_mismatch', { initialValue, options });
|
|
14290
14078
|
}
|
|
14291
14079
|
}
|
|
14292
14080
|
else {
|
|
14293
14081
|
if (initialValueIsPrimitive) {
|
|
14294
|
-
throw comboboxError('init_val_object_mismatch',
|
|
14082
|
+
throw comboboxError('init_val_object_mismatch', { initialValue, options });
|
|
14295
14083
|
}
|
|
14296
14084
|
}
|
|
14297
14085
|
}), catchError((e) => {
|
|
@@ -14449,7 +14237,7 @@ class ComboboxBodyComponent {
|
|
|
14449
14237
|
}
|
|
14450
14238
|
constructor() {
|
|
14451
14239
|
this.clickOutside = inject(ClickOutsideDirective);
|
|
14452
|
-
this.
|
|
14240
|
+
this.colorProvider = inject(COLOR_PROVIDER);
|
|
14453
14241
|
this.combobox = inject(COMBOBOX_TOKEN);
|
|
14454
14242
|
this.id = createComponentId('et-combobox-body');
|
|
14455
14243
|
this._containerElementRef = viewChild('containerElement', { ...(ngDevMode ? { debugName: "_containerElementRef" } : {}), read: ElementRef });
|
|
@@ -14469,8 +14257,8 @@ class ComboboxBodyComponent {
|
|
|
14469
14257
|
.pipe(takeUntilDestroyed(), tap(() => this.combobox.close()))
|
|
14470
14258
|
.subscribe();
|
|
14471
14259
|
}
|
|
14472
|
-
|
|
14473
|
-
this.
|
|
14260
|
+
setColorFromProvider(provider) {
|
|
14261
|
+
this.colorProvider.syncWithProvider(provider);
|
|
14474
14262
|
}
|
|
14475
14263
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ComboboxBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14476
14264
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ComboboxBodyComponent, isStandalone: true, selector: "et-combobox-body", host: { attributes: { "tabindex": "-1", "role": "listbox" }, properties: { "attr.id": "id" }, classAttribute: "et-combobox-body et-with-default-animation" }, providers: [
|
|
@@ -14478,7 +14266,7 @@ class ComboboxBodyComponent {
|
|
|
14478
14266
|
provide: COMBOBOX_BODY_TOKEN,
|
|
14479
14267
|
useExisting: ComboboxBodyComponent,
|
|
14480
14268
|
},
|
|
14481
|
-
], viewQueries: [{ propertyName: "_containerElementRef", first: true, predicate: ["containerElement"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "animatedLifecycle", first: true, predicate: ANIMATED_LIFECYCLE_TOKEN, descendants: true, isSignal: true }, { propertyName: "_options", predicate: ComboboxOptionComponent, descendants: true }], hostDirectives: [{ directive: i1$1.ClickOutsideDirective }, { directive: i1$1.
|
|
14269
|
+
], viewQueries: [{ propertyName: "_containerElementRef", first: true, predicate: ["containerElement"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "animatedLifecycle", first: true, predicate: ANIMATED_LIFECYCLE_TOKEN, descendants: true, isSignal: true }, { propertyName: "_options", predicate: ComboboxOptionComponent, descendants: true }], hostDirectives: [{ directive: i1$1.ClickOutsideDirective }, { directive: i1$1.ProvideColorDirective }], ngImport: i0, template: "<div #containerElement class=\"et-combobox-body-container\" etAnimatedLifecycle>\n @let options = combobox.options$ | async;\n\n @if (!options?.length && !combobox.error && !combobox.loading) {\n @if (combobox.customBodyEmptyTpl$ | async; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n } @else {\n @if (combobox.bodyEmptyComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: combobox.bodyEmptyComponentInputs() ?? undefined\" />\n } @else {\n <p class=\"et-combobox-body--empty\">{{ combobox._tempEmptyText }}</p>\n }\n }\n }\n\n @if (combobox.error && !combobox.loading) {\n @if (combobox.customBodyErrorTpl$ | async; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { error: combobox.error }\" />\n } @else {\n @if (combobox.bodyErrorComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: _customErrorComponentInputs() ?? { error: combobox.error }\" />\n } @else {\n <p class=\"et-combobox-body--error\">{{ combobox.error }}</p>\n }\n }\n }\n\n @if (combobox.loading$ | async) {\n @if (combobox.customBodyLoadingTpl$ | async; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n } @else {\n @if (combobox.bodyLoadingComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: combobox.bodyLoadingComponentInputs() ?? undefined\" />\n }\n }\n }\n\n @if (!combobox.error) {\n @for (option of options; track combobox._selectionModel.trackByOptionKey(option)) {\n <et-combobox-option [option]=\"option\" />\n }\n }\n\n @if (options?.length && combobox.showBodyMoreItemsHint) {\n @if (combobox.customBodyMoreItemsHintTpl$ | async; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\" />\n } @else {\n @if (combobox.bodyMoreItemsHintComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: combobox.bodyMoreItemsHintComponentInputs() ?? undefined\" />\n } @else {\n @if (combobox.bodyMoreItemsHintText()) {\n <p class=\"et-combobox-body--more-items-hint\">\n {{ combobox.bodyMoreItemsHintText() }}\n </p>\n }\n }\n }\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: ComboboxOptionComponent, selector: "et-combobox-option", inputs: ["option"] }, { kind: "directive", type: AnimatedLifecycleDirective, selector: "[etAnimatedLifecycle]", inputs: ["skipNextEnter"], outputs: ["stateChange", "skipNextEnterChange"], exportAs: ["etAnimatedLifecycle"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
14482
14270
|
}
|
|
14483
14271
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ComboboxBodyComponent, decorators: [{
|
|
14484
14272
|
type: Component,
|
|
@@ -14487,7 +14275,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
14487
14275
|
tabindex: '-1',
|
|
14488
14276
|
'[attr.id]': 'id',
|
|
14489
14277
|
role: 'listbox',
|
|
14490
|
-
}, imports: [NgTemplateOutlet, NgComponentOutlet, ComboboxOptionComponent, AsyncPipe, AnimatedLifecycleDirective], hostDirectives: [ClickOutsideDirective,
|
|
14278
|
+
}, imports: [NgTemplateOutlet, NgComponentOutlet, ComboboxOptionComponent, AsyncPipe, AnimatedLifecycleDirective], hostDirectives: [ClickOutsideDirective, ProvideColorDirective], providers: [
|
|
14491
14279
|
{
|
|
14492
14280
|
provide: COMBOBOX_BODY_TOKEN,
|
|
14493
14281
|
useExisting: ComboboxBodyComponent,
|
|
@@ -14833,7 +14621,7 @@ class SelectDirective {
|
|
|
14833
14621
|
this._animatedOverlay = inject(AnimatedOverlayDirective);
|
|
14834
14622
|
this._destroy$ = createDestroy();
|
|
14835
14623
|
this._selectField = inject(SELECT_FIELD_TOKEN);
|
|
14836
|
-
this.
|
|
14624
|
+
this.colorProvider = inject(COLOR_PROVIDER, { optional: true });
|
|
14837
14625
|
this.input = inject(INPUT_TOKEN);
|
|
14838
14626
|
this._selectBodyId$ = new BehaviorSubject(null);
|
|
14839
14627
|
this._isOpen$ = new BehaviorSubject(false);
|
|
@@ -14914,7 +14702,7 @@ class SelectDirective {
|
|
|
14914
14702
|
return;
|
|
14915
14703
|
const instance = this._animatedOverlay.mount({
|
|
14916
14704
|
component: this._selectBodyConfig.component,
|
|
14917
|
-
|
|
14705
|
+
colorProvider: this.colorProvider,
|
|
14918
14706
|
data: { _bodyTemplate: this._selectBodyConfig.template },
|
|
14919
14707
|
});
|
|
14920
14708
|
if (!instance)
|
|
@@ -14968,6 +14756,7 @@ class SelectDirective {
|
|
|
14968
14756
|
}
|
|
14969
14757
|
removeOptionFromSelection(option) {
|
|
14970
14758
|
this._selectionModel.removeSelectedOption(option);
|
|
14759
|
+
this.input._markAsTouched();
|
|
14971
14760
|
}
|
|
14972
14761
|
_controlTouched() {
|
|
14973
14762
|
this.input._markAsTouched();
|
|
@@ -15151,16 +14940,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
15151
14940
|
class SelectBodyComponent {
|
|
15152
14941
|
constructor() {
|
|
15153
14942
|
this.selectBody = inject(SELECT_BODY_TOKEN);
|
|
15154
|
-
this.
|
|
14943
|
+
this.colorProvider = inject(COLOR_PROVIDER);
|
|
15155
14944
|
this.animatedLifecycle = viewChild(ANIMATED_LIFECYCLE_TOKEN, ...(ngDevMode ? [{ debugName: "animatedLifecycle" }] : []));
|
|
15156
14945
|
this._containerElementRef = viewChild('containerElement', { ...(ngDevMode ? { debugName: "_containerElementRef" } : {}), read: ElementRef });
|
|
15157
14946
|
this._bodyTemplate = null;
|
|
15158
14947
|
}
|
|
15159
|
-
|
|
15160
|
-
this.
|
|
14948
|
+
setColorFromProvider(provider) {
|
|
14949
|
+
this.colorProvider.syncWithProvider(provider);
|
|
15161
14950
|
}
|
|
15162
14951
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SelectBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15163
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.1", type: SelectBodyComponent, isStandalone: true, selector: "et-select-body", host: { classAttribute: "et-select-body et-with-default-animation" }, viewQueries: [{ propertyName: "animatedLifecycle", first: true, predicate: ANIMATED_LIFECYCLE_TOKEN, descendants: true, isSignal: true }, { propertyName: "_containerElementRef", first: true, predicate: ["containerElement"], descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: SelectBodyDirective }, { directive: i1$1.
|
|
14952
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.1", type: SelectBodyComponent, isStandalone: true, selector: "et-select-body", host: { classAttribute: "et-select-body et-with-default-animation" }, viewQueries: [{ propertyName: "animatedLifecycle", first: true, predicate: ANIMATED_LIFECYCLE_TOKEN, descendants: true, isSignal: true }, { propertyName: "_containerElementRef", first: true, predicate: ["containerElement"], descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: SelectBodyDirective }, { directive: i1$1.ProvideColorDirective }], ngImport: i0, template: `
|
|
15164
14953
|
<div #containerElement class="et-select-body-container" etAnimatedLifecycle>
|
|
15165
14954
|
<ng-container [ngTemplateOutlet]="_bodyTemplate" />
|
|
15166
14955
|
</div>
|
|
@@ -15174,7 +14963,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
15174
14963
|
</div>
|
|
15175
14964
|
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
15176
14965
|
class: 'et-select-body et-with-default-animation',
|
|
15177
|
-
}, imports: [AnimatedLifecycleDirective, NgTemplateOutlet], hostDirectives: [SelectBodyDirective,
|
|
14966
|
+
}, imports: [AnimatedLifecycleDirective, NgTemplateOutlet], hostDirectives: [SelectBodyDirective, ProvideColorDirective], styles: [".et-select-body.et-with-default-animation .et-select-body-container.et-animation-enter-from,.et-select-body.et-with-default-animation .et-select-body-container.et-animation-leave-to{opacity:0;transform:scaleY(0)}.et-select-body.et-with-default-animation .et-select-body-container.et-animation-enter-active{transition:transform 125ms var(--ease-out-5),opacity 125ms var(--ease-out-5)}.et-select-body.et-with-default-animation .et-select-body-container.et-animation-leave-active{transition:transform 50ms var(--ease-in-5),opacity 50ms var(--ease-in-5)}.et-select-body.et-with-default-animation[et-floating-placement^=top] .et-select-body-container{transform-origin:bottom}.et-select-body.et-with-default-animation[et-floating-placement^=bottom] .et-select-body-container{transform-origin:top}.et-select-body{transform:var(--et-floating-translate);will-change:transform}.et-select-body-container{display:block;background-color:#3d3d3d;color:#fff;max-height:min(200px,var(--et-floating-max-height, 200px));overflow:auto}.et-select-body{width:100%;display:grid}\n"] }]
|
|
15178
14967
|
}], propDecorators: { animatedLifecycle: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ANIMATED_LIFECYCLE_TOKEN), { isSignal: true }] }], _containerElementRef: [{ type: i0.ViewChild, args: ['containerElement', { ...{ read: ElementRef }, isSignal: true }] }] } });
|
|
15179
14968
|
|
|
15180
14969
|
class SelectComponent extends DecoratedInputBase {
|
|
@@ -16355,7 +16144,7 @@ class ToggletipDirective {
|
|
|
16355
16144
|
this._destroy$ = createDestroy();
|
|
16356
16145
|
this._defaultConfig = inject(TOGGLETIP_CONFIG, { optional: true }) ?? createToggletipConfig();
|
|
16357
16146
|
this.animatedOverlay = inject(AnimatedOverlayDirective);
|
|
16358
|
-
this.
|
|
16147
|
+
this.colorProvider = inject(COLOR_PROVIDER, { optional: true });
|
|
16359
16148
|
this.document = inject(DOCUMENT);
|
|
16360
16149
|
this._toggletip = null;
|
|
16361
16150
|
this._showToggletip = false;
|
|
@@ -16398,7 +16187,7 @@ class ToggletipDirective {
|
|
|
16398
16187
|
_mountToggletip() {
|
|
16399
16188
|
this.animatedOverlay.mount({
|
|
16400
16189
|
component: ToggletipComponent,
|
|
16401
|
-
|
|
16190
|
+
colorProvider: this.colorProvider,
|
|
16402
16191
|
providers: [
|
|
16403
16192
|
{
|
|
16404
16193
|
provide: TOGGLETIP_CONFIG,
|
|
@@ -16454,13 +16243,13 @@ class ToggletipComponent {
|
|
|
16454
16243
|
this._config = inject(TOGGLETIP_CONFIG);
|
|
16455
16244
|
this.toggletipText = inject(TOGGLETIP_TEXT, { optional: true });
|
|
16456
16245
|
this.toggletipTemplate = inject(TOGGLETIP_TEMPLATE, { optional: true });
|
|
16457
|
-
this.
|
|
16246
|
+
this.colorProvider = inject(COLOR_PROVIDER);
|
|
16458
16247
|
this.injector = inject(Injector);
|
|
16459
16248
|
this._trigger = inject(TOGGLETIP_DIRECTIVE);
|
|
16460
16249
|
this.elementRef = inject(ElementRef);
|
|
16461
16250
|
}
|
|
16462
|
-
|
|
16463
|
-
this.
|
|
16251
|
+
setColorFromProvider(provider) {
|
|
16252
|
+
this.colorProvider.syncWithProvider(provider);
|
|
16464
16253
|
}
|
|
16465
16254
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ToggletipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16466
16255
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ToggletipComponent, isStandalone: true, selector: "et-toggletip", host: { attributes: { "aria-hidden": "true" }, properties: { "class.et-with-default-animation": "!_config.customAnimated", "class": "_config.containerClass" }, classAttribute: "et-toggletip" }, providers: [
|
|
@@ -16468,11 +16257,11 @@ class ToggletipComponent {
|
|
|
16468
16257
|
provide: TOGGLETIP,
|
|
16469
16258
|
useExisting: ToggletipComponent,
|
|
16470
16259
|
},
|
|
16471
|
-
], viewQueries: [{ propertyName: "animatedLifecycle", first: true, predicate: ANIMATED_LIFECYCLE_TOKEN, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.
|
|
16260
|
+
], viewQueries: [{ propertyName: "animatedLifecycle", first: true, predicate: ANIMATED_LIFECYCLE_TOKEN, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.ProvideColorDirective }], ngImport: i0, template: "<div class=\"et-toggletip-container\" etAnimatedLifecycle>\n @if (toggletipText) {\n {{ toggletipText }}\n }\n\n @if (toggletipTemplate) {\n <ng-container *ngTemplateOutlet=\"toggletipTemplate; injector: injector\" />\n }\n\n <div class=\"toggletip-arrow\" et-floating-arrow></div>\n</div>\n", styles: [":where(.et-toggletip){--background-color: hsl(0 0% 20%);--foreground-color: CanvasText;--border-radius: 4px;--padding-inline: 1.5ch;--padding-block: .75ch;--inline-max-size: 25ch;--arrow-size: 10px;--arrow-radius: 2px}.et-toggletip{transform:var(--et-floating-translate);will-change:transform}.et-toggletip[et-floating-placement^=top] .toggletip-arrow{bottom:-4px;left:0}.et-toggletip[et-floating-placement^=right] .toggletip-arrow{left:-4px;top:0}.et-toggletip[et-floating-placement^=bottom] .toggletip-arrow{top:-4px;left:0}.et-toggletip[et-floating-placement^=left] .toggletip-arrow{right:-4px;top:0}.et-toggletip-container{z-index:1;inline-size:max-content;max-inline-size:var(--inline-max-size);padding:var(--padding-block) var(--padding-inline);border-radius:var(--border-radius);background:var(--background-color);color:var(--foreground-color);will-change:transform}.et-toggletip-container:before{content:\"; Has toggletip: \";clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute}.toggletip-arrow{transform:var(--et-floating-arrow-translate);inline-size:var(--arrow-size);block-size:var(--arrow-size);position:absolute;z-index:1;will-change:transform}.toggletip-arrow:before{inline-size:var(--arrow-size);block-size:var(--arrow-size);border-radius:var(--arrow-radius);position:absolute;z-index:-1;transform:rotate(45deg);background:var(--background-color);top:0;left:0;content:\"\"}.et-toggletip.et-with-default-animation .et-toggletip-container.et-animation-enter-from,.et-toggletip.et-with-default-animation .et-toggletip-container.et-animation-leave-to{opacity:0}.et-toggletip.et-with-default-animation .et-toggletip-container.et-animation-enter-from .toggletip-arrow:before,.et-toggletip.et-with-default-animation .et-toggletip-container.et-animation-leave-to .toggletip-arrow:before{transform:rotate(45deg) scale(0)}.et-toggletip.et-with-default-animation .et-toggletip-container.et-animation-enter-active{transition:transform .2s var(--ease-out-5),opacity .2s var(--ease-out-5)}.et-toggletip.et-with-default-animation .et-toggletip-container.et-animation-enter-active .toggletip-arrow:before{transition:transform .2s var(--ease-out-5)}.et-toggletip.et-with-default-animation .et-toggletip-container.et-animation-leave-active{transition:transform .15s var(--ease-in-5),opacity .15s var(--ease-in-5)}.et-toggletip.et-with-default-animation .et-toggletip-container.et-animation-leave-active .toggletip-arrow:before{transition:transform .15s var(--ease-in-5)}.et-toggletip.et-with-default-animation[et-floating-placement^=top] .et-toggletip-container.et-animation-enter-from,.et-toggletip.et-with-default-animation[et-floating-placement^=top] .et-toggletip-container.et-animation-leave-to{transform:translateY(5px)}.et-toggletip.et-with-default-animation[et-floating-placement^=right] .et-toggletip-container.et-animation-enter-from,.et-toggletip.et-with-default-animation[et-floating-placement^=right] .et-toggletip-container.et-animation-leave-to{transform:translate(-5px)}.et-toggletip.et-with-default-animation[et-floating-placement^=bottom] .et-toggletip-container.et-animation-enter-from,.et-toggletip.et-with-default-animation[et-floating-placement^=bottom] .et-toggletip-container.et-animation-leave-to{transform:translateY(-5px)}.et-toggletip.et-with-default-animation[et-floating-placement^=left] .et-toggletip-container.et-animation-enter-from,.et-toggletip.et-with-default-animation[et-floating-placement^=left] .et-toggletip-container.et-animation-leave-to{transform:translate(5px)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: AnimatedLifecycleDirective, selector: "[etAnimatedLifecycle]", inputs: ["skipNextEnter"], outputs: ["stateChange", "skipNextEnterChange"], exportAs: ["etAnimatedLifecycle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
16472
16261
|
}
|
|
16473
16262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ToggletipComponent, decorators: [{
|
|
16474
16263
|
type: Component,
|
|
16475
|
-
args: [{ selector: 'et-toggletip', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet, AnimatedLifecycleDirective], hostDirectives: [
|
|
16264
|
+
args: [{ selector: 'et-toggletip', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet, AnimatedLifecycleDirective], hostDirectives: [ProvideColorDirective], host: {
|
|
16476
16265
|
class: 'et-toggletip',
|
|
16477
16266
|
'aria-hidden': 'true',
|
|
16478
16267
|
'[class.et-with-default-animation]': '!_config.customAnimated',
|
|
@@ -16552,7 +16341,7 @@ class TooltipDirective {
|
|
|
16552
16341
|
constructor() {
|
|
16553
16342
|
this._defaultConfig = inject(TOOLTIP_CONFIG, { optional: true }) ?? createTooltipConfig();
|
|
16554
16343
|
this.animatedOverlay = inject(AnimatedOverlayDirective);
|
|
16555
|
-
this.
|
|
16344
|
+
this.colorProvider = inject(COLOR_PROVIDER, { optional: true });
|
|
16556
16345
|
this._tooltip = null;
|
|
16557
16346
|
this._tooltipAriaDescription = null;
|
|
16558
16347
|
this._lastTooltipText = null;
|
|
@@ -16636,7 +16425,7 @@ class TooltipDirective {
|
|
|
16636
16425
|
_mountTooltip() {
|
|
16637
16426
|
this.animatedOverlay.mount({
|
|
16638
16427
|
component: TooltipComponent,
|
|
16639
|
-
|
|
16428
|
+
colorProvider: this.colorProvider,
|
|
16640
16429
|
providers: [
|
|
16641
16430
|
{
|
|
16642
16431
|
provide: TOOLTIP_CONFIG,
|
|
@@ -16697,13 +16486,13 @@ class TooltipComponent {
|
|
|
16697
16486
|
this._config = inject(TOOLTIP_CONFIG);
|
|
16698
16487
|
this.tooltipText = inject(TOOLTIP_TEXT, { optional: true });
|
|
16699
16488
|
this.tooltipTemplate = inject(TOOLTIP_TEMPLATE, { optional: true });
|
|
16700
|
-
this.
|
|
16489
|
+
this.colorProvider = inject(COLOR_PROVIDER);
|
|
16701
16490
|
this.injector = inject(Injector);
|
|
16702
16491
|
this._trigger = inject(TOOLTIP_DIRECTIVE);
|
|
16703
16492
|
this.elementRef = inject(ElementRef);
|
|
16704
16493
|
}
|
|
16705
|
-
|
|
16706
|
-
this.
|
|
16494
|
+
setColorFromProvider(provider) {
|
|
16495
|
+
this.colorProvider.syncWithProvider(provider);
|
|
16707
16496
|
}
|
|
16708
16497
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16709
16498
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: TooltipComponent, isStandalone: true, selector: "et-tooltip", host: { attributes: { "aria-hidden": "true" }, properties: { "class.et-with-default-animation": "!_config.customAnimated", "class": "_config.containerClass" }, classAttribute: "et-tooltip" }, providers: [
|
|
@@ -16711,11 +16500,11 @@ class TooltipComponent {
|
|
|
16711
16500
|
provide: TOOLTIP,
|
|
16712
16501
|
useExisting: TooltipComponent,
|
|
16713
16502
|
},
|
|
16714
|
-
], viewQueries: [{ propertyName: "animatedLifecycle", first: true, predicate: ANIMATED_LIFECYCLE_TOKEN, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.
|
|
16503
|
+
], viewQueries: [{ propertyName: "animatedLifecycle", first: true, predicate: ANIMATED_LIFECYCLE_TOKEN, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.ProvideColorDirective }], ngImport: i0, template: "<div class=\"et-tooltip-container\" etAnimatedLifecycle>\n @if (tooltipText) {\n {{ tooltipText }}\n }\n\n @if (tooltipTemplate) {\n <ng-container *ngTemplateOutlet=\"tooltipTemplate; injector: injector\" />\n }\n\n <div class=\"tooltip-arrow\" et-floating-arrow></div>\n</div>\n", styles: [":where(.et-tooltip){--background-color: hsl(0 0% 20%);--foreground-color: CanvasText;--border-radius: 4px;--padding-inline: 1.5ch;--padding-block: .75ch;--inline-max-size: 25ch;--arrow-size: 10px;--arrow-radius: 2px}.et-tooltip{pointer-events:none;-webkit-user-select:none;user-select:none;transform:var(--et-floating-translate);will-change:transform}.et-tooltip[et-floating-placement^=top] .tooltip-arrow{bottom:-4px;left:0}.et-tooltip[et-floating-placement^=right] .tooltip-arrow{left:-4px;top:0}.et-tooltip[et-floating-placement^=bottom] .tooltip-arrow{top:-4px;left:0}.et-tooltip[et-floating-placement^=left] .tooltip-arrow{right:-4px;top:0}.et-tooltip-container{z-index:1;inline-size:max-content;max-inline-size:var(--inline-max-size);padding:var(--padding-block) var(--padding-inline);border-radius:var(--border-radius);background:var(--background-color);color:var(--foreground-color);will-change:transform}.et-tooltip-container:before{content:\"; Has tooltip: \";clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute}.tooltip-arrow{inline-size:var(--arrow-size);block-size:var(--arrow-size);position:absolute;z-index:1;transform:var(--et-floating-arrow-translate);will-change:transform}.tooltip-arrow:before{inline-size:var(--arrow-size);block-size:var(--arrow-size);border-radius:var(--arrow-radius);position:absolute;z-index:-1;transform:rotate(45deg);background:var(--background-color);top:0;left:0;content:\"\"}.et-tooltip.et-with-default-animation .et-tooltip-container.et-animation-enter-from,.et-tooltip.et-with-default-animation .et-tooltip-container.et-animation-leave-to{opacity:0}.et-tooltip.et-with-default-animation .et-tooltip-container.et-animation-enter-active{transition:transform .3s var(--ease-out-5),opacity .3s var(--ease-out-5)}.et-tooltip.et-with-default-animation .et-tooltip-container.et-animation-leave-active{transition:transform .15s var(--ease-in-5),opacity .15s var(--ease-in-5)}.et-tooltip.et-with-default-animation[et-floating-placement^=top] .et-tooltip-container.et-animation-enter-from,.et-tooltip.et-with-default-animation[et-floating-placement^=top] .et-tooltip-container.et-animation-leave-to{transform:translateY(5px)}.et-tooltip.et-with-default-animation[et-floating-placement^=right] .et-tooltip-container.et-animation-enter-from,.et-tooltip.et-with-default-animation[et-floating-placement^=right] .et-tooltip-container.et-animation-leave-to{transform:translate(-5px)}.et-tooltip.et-with-default-animation[et-floating-placement^=bottom] .et-tooltip-container.et-animation-enter-from,.et-tooltip.et-with-default-animation[et-floating-placement^=bottom] .et-tooltip-container.et-animation-leave-to{transform:translateY(-5px)}.et-tooltip.et-with-default-animation[et-floating-placement^=left] .et-tooltip-container.et-animation-enter-from,.et-tooltip.et-with-default-animation[et-floating-placement^=left] .et-tooltip-container.et-animation-leave-to{transform:translate(5px)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: AnimatedLifecycleDirective, selector: "[etAnimatedLifecycle]", inputs: ["skipNextEnter"], outputs: ["stateChange", "skipNextEnterChange"], exportAs: ["etAnimatedLifecycle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
16715
16504
|
}
|
|
16716
16505
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
16717
16506
|
type: Component,
|
|
16718
|
-
args: [{ selector: 'et-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet, AnimatedLifecycleDirective], hostDirectives: [
|
|
16507
|
+
args: [{ selector: 'et-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet, AnimatedLifecycleDirective], hostDirectives: [ProvideColorDirective], host: {
|
|
16719
16508
|
class: 'et-tooltip',
|
|
16720
16509
|
'aria-hidden': 'true',
|
|
16721
16510
|
'[class.et-with-default-animation]': '!_config.customAnimated',
|
|
@@ -17042,6 +16831,9 @@ const extractFirstImageUrl = (source) => {
|
|
|
17042
16831
|
const srcString = typeof source === 'string' ? source : source?.srcset;
|
|
17043
16832
|
if (!srcString)
|
|
17044
16833
|
return null;
|
|
16834
|
+
if (srcString.trimStart().startsWith('data:')) {
|
|
16835
|
+
return srcString.trim() || null;
|
|
16836
|
+
}
|
|
17045
16837
|
const srcsetParts = srcString.split(',').map((part) => part.trim());
|
|
17046
16838
|
if (srcsetParts.length > 0) {
|
|
17047
16839
|
const firstPart = srcsetParts[0];
|
|
@@ -17102,7 +16894,7 @@ class PictureComponent {
|
|
|
17102
16894
|
this.defaultSrcFallbackUrl = computed(() => extractFirstImageUrl(this.defaultSourceWithConfig()), ...(ngDevMode ? [{ debugName: "defaultSrcFallbackUrl" }] : []));
|
|
17103
16895
|
}
|
|
17104
16896
|
_combineWithConfig(src) {
|
|
17105
|
-
if (!this._config?.baseUrl || src.srcset.startsWith('http')) {
|
|
16897
|
+
if (!this._config?.baseUrl || src.srcset.startsWith('http') || src.srcset.startsWith('data:')) {
|
|
17106
16898
|
return src;
|
|
17107
16899
|
}
|
|
17108
16900
|
const shouldAppendSlash = !this._config.baseUrl.endsWith('/') && !src.srcset.startsWith('/');
|
|
@@ -19631,69 +19423,9 @@ const TabImports = [
|
|
|
19631
19423
|
|
|
19632
19424
|
const TABS_CONFIG = new InjectionToken('TABS_CONFIG');
|
|
19633
19425
|
|
|
19634
|
-
const FLOATING_UI_PLACEMENTS = [
|
|
19635
|
-
'top',
|
|
19636
|
-
'left',
|
|
19637
|
-
'bottom',
|
|
19638
|
-
'right',
|
|
19639
|
-
'top-start',
|
|
19640
|
-
'top-end',
|
|
19641
|
-
'right-start',
|
|
19642
|
-
'right-end',
|
|
19643
|
-
'bottom-start',
|
|
19644
|
-
'bottom-end',
|
|
19645
|
-
'left-start',
|
|
19646
|
-
'left-end',
|
|
19647
|
-
];
|
|
19648
|
-
|
|
19649
|
-
/**
|
|
19650
|
-
* A utility function to enhance the ux of views containing forms.
|
|
19651
|
-
* It helps to prevent the user from accidentally losing unsaved form changes.
|
|
19652
|
-
*/
|
|
19653
|
-
const createNavigationDismissChecker = (config) => {
|
|
19654
|
-
assertInInjectionContext(createNavigationDismissChecker);
|
|
19655
|
-
const { form, compareFn, dismissCheckFn } = config;
|
|
19656
|
-
const currentFormValue = controlValueSignal(form);
|
|
19657
|
-
const hasChanges = computed(() => {
|
|
19658
|
-
const formValue = currentFormValue();
|
|
19659
|
-
if (!formValue)
|
|
19660
|
-
return false;
|
|
19661
|
-
return !(compareFn ? compareFn(formValue, defaultFormValue()) : equal(formValue, defaultFormValue()));
|
|
19662
|
-
}, ...(ngDevMode ? [{ debugName: "hasChanges" }] : []));
|
|
19663
|
-
const defaultFormValue = signal(config.defaultValue ?? form.getRawValue(), ...(ngDevMode ? [{ debugName: "defaultFormValue" }] : []));
|
|
19664
|
-
const runCheck = () => {
|
|
19665
|
-
const isDefaultFormValue = !hasChanges();
|
|
19666
|
-
if (isDefaultFormValue)
|
|
19667
|
-
return of(true);
|
|
19668
|
-
return dismissCheckFn(form.getRawValue());
|
|
19669
|
-
};
|
|
19670
|
-
const refreshDefaultFormValue = () => {
|
|
19671
|
-
defaultFormValue.set(form.getRawValue());
|
|
19672
|
-
};
|
|
19673
|
-
const restoreDefaultFormValue = () => {
|
|
19674
|
-
form.setValue(defaultFormValue());
|
|
19675
|
-
refreshDefaultFormValue();
|
|
19676
|
-
};
|
|
19677
|
-
return {
|
|
19678
|
-
runCheck,
|
|
19679
|
-
refreshDefaultFormValue,
|
|
19680
|
-
restoreDefaultFormValue,
|
|
19681
|
-
hasChanges,
|
|
19682
|
-
defaultFormValue: defaultFormValue.asReadonly(),
|
|
19683
|
-
};
|
|
19684
|
-
};
|
|
19685
|
-
|
|
19686
|
-
const injectRouterNavigationState = () => {
|
|
19687
|
-
const router = inject(Router);
|
|
19688
|
-
const navState = router.getCurrentNavigation()?.extras.state;
|
|
19689
|
-
return (navState || null);
|
|
19690
|
-
};
|
|
19691
|
-
|
|
19692
|
-
// Burst cache
|
|
19693
|
-
|
|
19694
19426
|
/**
|
|
19695
19427
|
* Generated bundle index. Do not edit.
|
|
19696
19428
|
*/
|
|
19697
19429
|
|
|
19698
|
-
export { ACCORDION_COMPONENT, ACCORDION_HINT_WRAPPER_DIRECTIVE, ACCORDION_LABEL_WRAPPER_DIRECTIVE, AccordionComponent, AccordionGroupComponent, AccordionHintDirective, AccordionHintWrapperDirective, AccordionImports, AccordionLabelDirective, AccordionLabelWrapperDirective, ActiveTabUnderlineBarManager, ActiveTabUnderlineDirective, AutosizeTextareaDirective, BRACKET_CONFIG_TOKEN, BRACKET_DEFAULT_CONFIG, BRACKET_MATCH_ID_TOKEN, BRACKET_ROUND_ID_TOKEN, BRACKET_TOKEN, Bracket, BracketComponent, BracketImports, BracketMatchComponent, BracketMatchDirective, index as BracketNew, BracketRoundDirective, BracketRoundHeaderComponent, BreadcrumbComponent, BreadcrumbImports, BreadcrumbItemDirective, BreadcrumbItemTemplateDirective, BreadcrumbOutletComponent, BreadcrumbTemplateDirective, ButtonComponent, ButtonDirective, ButtonImports, CAROUSEL_ITEM_NAV_TOKEN, CAROUSEL_ITEM_TOKEN, CAROUSEL_NEXT_BUTTON_TOKEN, CAROUSEL_PREVIOUS_BUTTON_TOKEN, CAROUSEL_TOGGLE_AUTO_PLAY_BUTTON_TOKEN, CAROUSEL_TOKEN, CHECKBOX_FIELD_TOKEN, CHECKBOX_GROUP_CONTROL_TOKEN, CHECKBOX_GROUP_TOKEN, CHECKBOX_TOKEN, CHEVRON_ICON, COLOR_INPUT_TOKEN, COMBOBOX_BODY_EMPTY_TEMPLATE_TOKEN, COMBOBOX_BODY_ERROR_TEMPLATE_TOKEN, COMBOBOX_BODY_LOADING_TEMPLATE_TOKEN, COMBOBOX_BODY_MORE_ITEMS_HINT_TEMPLATE_TOKEN, COMBOBOX_BODY_TOKEN, COMBOBOX_CONFIG_TOKEN, COMBOBOX_DEFAULT_CONFIG, COMBOBOX_OPTION_TEMPLATE_TOKEN, COMBOBOX_OPTION_TOKEN, COMBOBOX_SELECTED_OPTION_TEMPLATE_TOKEN, COMBOBOX_TOKEN, CarouselComponent, CarouselDirective, CarouselImports, CarouselItemComponent, CarouselItemDirective, CarouselItemNavComponent, CarouselItemNavDirective, CarouselNextButtonDirective, CarouselPreviousButtonDirective, CarouselToggleAutoPlayButtonDirective, CellDefDirective, CellDirective, CheckboxComponent, CheckboxDirective, CheckboxFieldComponent, CheckboxFieldDirective, CheckboxGroupComponent, CheckboxGroupControlDirective, CheckboxGroupDirective, CheckboxImports, ColorInputComponent, ColorInputDirective, ColumnDefDirective, ComboboxBodyComponent, ComboboxBodyEmptyTemplateDirective, ComboboxBodyErrorTemplateDirective, ComboboxBodyLoadingTemplateDirective, ComboboxBodyMoreItemsHintTemplateDirective, ComboboxComponent, ComboboxDirective, ComboboxImports, ComboboxOptionComponent, ComboboxOptionTemplateDirective, ComboboxSelectedOptionTemplateDirective, DATE_INPUT_FORMAT_TOKEN, DATE_INPUT_TOKEN, DATE_TIME_INPUT_FORMAT_TOKEN, DATE_TIME_INPUT_TOKEN, DEFAULT_DATE_INPUT_FORMAT, DEFAULT_DATE_TIME_INPUT_FORMAT, DEFAULT_TIME_INPUT_FORMAT, DYNAMIC_FORM_FIELD_TOKEN, DYNAMIC_FORM_GROUP_TOKEN, DateInputComponent, DateInputDirective, DateTimeInputComponent, DateTimeInputDirective, DecoratedFormFieldBase, DecoratedInputBase, DefaultValidatorErrorsService, DynamicFormFieldDirective, DynamicFormGroupDirective, EMAIL_INPUT_TOKEN, ET_OVERLAY_CONFIG_CLASS_KEYS, EXPOSE_INPUT_VARS_TOKEN, EmailInputComponent, EmailInputDirective, ErrorComponent, ExposeInputVarsDirective, FILTER_OVERLAY_CONFIG, FLOATING_UI_PLACEMENTS, FilterOverlayService, FooterCellDefDirective, FooterCellDirective, FooterRowComponent, FooterRowDefDirective, FormFieldStateService, FormGroupStateService, HeaderCellDefDirective, HeaderCellDirective, HeaderRowComponent, HeaderRowDefDirective, ICONS_TOKEN, ICON_DIRECTIVE_TOKEN, IMAGE_CONFIG_TOKEN, INPUT_PREFIX_TOKEN, INPUT_SUFFIX_TOKEN, INPUT_TOKEN, IconDirective, IconImports, IfInputEmptyDirective, IfInputFilledDirective, IfSupportsShowPickerDirective, InlineTabBodyComponent, InlineTabBodyHostDirective, InlineTabChangeEvent, InlineTabComponent, InlineTabContentDirective, InlineTabHeaderComponent, InlineTabLabelDirective, InlineTabLabelWrapperDirective, InlineTabsComponent, InputBase, InputDirective, InputFieldComponent, InputImports, InputPrefixDirective, InputStateService, InputSuffixDirective, LABEL_TOKEN, LabelComponent, LabelImports, LabelSuffixDirective, MASONRY_ITEM_TOKEN, MAX_SAFE_INTEGER, MENU, MENU_CHECKBOX_GROUP_TOKEN, MENU_CONTAINER, MENU_GROUP_TITLE_TOKEN, MENU_GROUP_TOKEN, MENU_ITEM_TOKEN, MENU_RADIO_GROUP_TOKEN, MENU_SEARCH_TEMPLATE_TOKEN, MENU_TEMPLATE, MENU_TRIGGER_TOKEN, MasonryComponent, MasonryImports, MasonryItemComponent, MenuCheckboxGroupDirective, MenuCheckboxItemComponent, MenuComponent, MenuContainerComponent, MenuGroupDirective, MenuGroupTitleDirective, MenuImports, MenuItemDirective, MenuRadioGroupDirective, MenuRadioItemComponent, MenuSearchTemplateDirective, MenuTriggerDirective, NATIVE_INPUT_REF_TOKEN, NATIVE_SELECT_INPUT_TOKEN, NATIVE_SELECT_OPTION_TOKEN, NUMBER_INPUT_TOKEN, NativeInputRefDirective, NativeSelectImports, NativeSelectInputComponent, NativeSelectInputDirective, NativeSelectOptionComponent, NativeSelectOptionDirective, NavTabLinkComponent, NavTabsComponent, NavTabsOutletComponent, NewBracketComponent, NewBracketDefaultMatchComponent, NewBracketDefaultRoundHeaderComponent, NoDataRowDirective, NumberInputComponent, NumberInputDirective, OVERLAY_BACK_OR_CLOSE_TOKEN, OVERLAY_BODY_TOKEN, OVERLAY_CLOSE_BLOCKER_TOKEN, OVERLAY_CONFIG, OVERLAY_DATA, OVERLAY_FOOTER_TOKEN, OVERLAY_HEADER_TEMPLATE_TOKEN, OVERLAY_HEADER_TOKEN, OVERLAY_MAIN_TOKEN, OVERLAY_QUERY_PARAM_INPUT_NAME, OVERLAY_ROUTER_CONFIG_TOKEN, OVERLAY_ROUTER_LINK_TOKEN, OVERLAY_ROUTER_OUTLET_DISABLED_TEMPLATE_TOKEN, OVERLAY_ROUTER_OUTLET_TOKEN, OVERLAY_SHARED_ROUTE_TEMPLATE_TOKEN, OverlayBackOrCloseDirective, OverlayBodyComponent, OverlayCloseBlockerDirective, OverlayCloseDirective, OverlayContainerComponent, OverlayFooterDirective, OverlayHandlerLinkDirective, OverlayHeaderDirective, OverlayHeaderTemplateDirective, OverlayImports, OverlayMainDirective, OverlayOriginCloneComponent, OverlayRef, OverlayRouteHeaderTemplateOutletComponent, OverlayRouterLinkDirective, OverlayRouterOutletComponent, OverlayRouterOutletDisabledTemplateDirective, OverlayRouterService, OverlaySharedRouteTemplateDirective, OverlaySharedRouteTemplateOutletComponent, OverlaySidebarComponent, OverlaySidebarPageComponent, OverlayTitleDirective, OverlayWithRoutingImports, OverlayWithSidebarImports, PASSWORD_INPUT_TOKEN, PROGRESS_SPINNER_DEFAULT_OPTIONS, PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY, PaginatedTabHeaderDirective, PaginationComponent, PaginationHeadService, PaginationImports, PaginationLinkDirective, PasswordInputComponent, PasswordInputDirective, PasswordInputToggleComponent, PictureComponent, ProgressSpinnerComponent, QUERY_ERROR_TOKEN, QueryButtonComponent, QueryButtonDirective, QueryErrorComponent, QueryErrorDirective, RADIO_FIELD_TOKEN, RADIO_GROUP_TOKEN, RADIO_TOKEN, RICH_FILTER_BUTTON_SLOT_TOKEN, RICH_FILTER_BUTTON_TOKEN, RICH_FILTER_CONTENT_TOKEN, RICH_FILTER_TOP_TOKEN, RadioComponent, RadioDirective, RadioFieldComponent, RadioFieldDirective, RadioGroupComponent, RadioGroupDirective, RadioImports, RichFilterButtonDirective, RichFilterButtonSlotDirective, RichFilterContentDirective, RichFilterHostComponent, RichFilterImports, RichFilterTopDirective, RowComponent, RowDefDirective, SCROLLABLE_IGNORE_CHILD_ATTRIBUTE, SCROLLABLE_IGNORE_CHILD_TOKEN, SCROLLABLE_IS_ACTIVE_CHILD_ATTRIBUTE, SCROLLABLE_IS_ACTIVE_CHILD_TOKEN, SCROLLABLE_LOADING_TEMPLATE_TOKEN, SCROLLABLE_PLACEHOLDER_ITEM_TEMPLATE_TOKEN, SCROLLABLE_PLACEHOLDER_OVERLAY_TEMPLATE_TOKEN, SEARCH_INPUT_TOKEN, SEGMENTED_BUTTON_FIELD_TOKEN, SEGMENTED_BUTTON_GROUP_TOKEN, SEGMENTED_BUTTON_TOKEN, SELECTION_LIST_FIELD, SELECTION_LIST_OPTION, SELECT_BODY_TOKEN, SELECT_FIELD_TOKEN, SELECT_OPTION_TOKEN, SELECT_TOKEN, SHOW_PICKER_TRIGGER_TOKEN, SIDEBAR_OVERLAY_CONFIG, SLIDER_THUMB_CONTENT_TEMPLATE_TOKEN, SLIDE_TOGGLE_TOKEN, SORT_DEFAULT_OPTIONS, SORT_HEADER_COLUMN_DEF, SORT_HEADER_INTL_PROVIDER, SORT_HEADER_INTL_PROVIDER_FACTORY, STATIC_FORM_FIELD_TOKEN, STATIC_FORM_GROUP_TOKEN, ScrollableComponent, ScrollableIgnoreChildDirective, ScrollableImports, ScrollableIsActiveChildDirective, ScrollableLoadingTemplateDirective, ScrollablePlaceholderComponent, ScrollablePlaceholderItemTemplateDirective, ScrollablePlaceholderOverlayTemplateDirective, SearchInputClearComponent, SearchInputComponent, SearchInputDirective, SegmentedButtonComponent, SegmentedButtonDirective, SegmentedButtonFieldComponent, SegmentedButtonFieldDirective, SegmentedButtonGroupComponent, SegmentedButtonGroupDirective, SegmentedButtonImports, SelectBodyComponent, SelectBodyDirective, SelectComponent, SelectDirective, SelectFieldComponent, SelectFieldDirective, SelectImports, SelectOptionComponent, SelectOptionDirective, SelectionListFieldComponent, SelectionListFieldDirective, SelectionListImports, SelectionListOptionComponent, SelectionListOptionDirective, ShowPickerTriggerDirective, SidebarOverlayService, SkeletonComponent, SkeletonImports, SkeletonItemComponent, SlideToggleComponent, SlideToggleDirective, SlideToggleFieldComponent, SlideToggleImports, SliderComponent, SliderFieldComponent, SliderImports, SliderThumbContentTemplateDirective, SortDirective, SortHeaderComponent, SortHeaderIntl, SortImports, StaticFormFieldDirective, StaticFormGroupDirective, SwipeHandlerService, TAB, TABS_CONFIG, TAB_CONTENT, TAB_GROUP, TAB_LABEL, TEL_INPUT_TOKEN, TEXTAREA_INPUT_TOKEN, TEXT_INPUT_TOKEN, TIMES_ICON, TIME_INPUT_FORMAT_TOKEN, TIME_INPUT_TOKEN, TOGGLETIP, TOGGLETIP_CONFIG, TOGGLETIP_DEFAULT_CONFIG, TOGGLETIP_DIRECTIVE, TOGGLETIP_TEMPLATE, TOGGLETIP_TEXT, TOOLTIP, TOOLTIP_CONFIG, TOOLTIP_DEFAULT_CONFIG, TOOLTIP_DIRECTIVE, TOOLTIP_TEMPLATE, TOOLTIP_TEXT, TabImports, TableBusyDirective, TableBusyOutletDirective, TableComponent, TableDataSource, TableImports, TelInputComponent, TelInputDirective, TextColumnComponent, TextInputComponent, TextInputDirective, TextareaInputComponent, TextareaInputDirective, TimeInputComponent, TimeInputDirective, ToggletipCloseDirective, ToggletipComponent, ToggletipDirective, ToggletipImports, TooltipComponent, TooltipDirective, TooltipImports, VALIDATOR_ERROR_SERVICE_TOKEN, WRITEABLE_INPUT_TOKEN, WRITEABLE_INPUT_VALUE_ACCESSOR, WriteableInputDirective, _MAT_INK_BAR_POSITIONER, _MAT_INK_BAR_POSITIONER_FACTORY, abortFullscreenAnimation, accordionAnimations, anchoredDialogOverlayStrategy, bottomSheetOverlayStrategy, cleanupFullscreenAnimation, cleanupFullscreenAnimationStyles, createBracketConfig, createComboboxConfig, createFormChangesTracker, createNavigationDismissChecker, createOverlayDismissChecker, createOverlayHandler, createOverlayHandlerWithQueryParamLifecycle, createToggletipConfig, createTooltipConfig, defaultSubmitButtonConfigFn, dialogOverlayStrategy, enableDragToDismiss, exactMatchOptions, extractFirstImageUrl, findNextRelevantHtmlElement, fullScreenDialogOverlayStrategy, getClosestOverlay, getIntersectionInfo, getOriginCoordinatesAndDimensions, injectAnchoredDialogStrategy, injectAnchoredDialogStrategyDefaults, injectBottomSheetStrategy, injectBottomSheetStrategyDefaults, injectBreadcrumbManager, injectDialogStrategy, injectDialogStrategyDefaults, injectFocusRegistry, injectFullscreenDialogStrategy, injectFullscreenDialogStrategyDefaults, injectLeftSheetStrategy, injectLeftSheetStrategyDefaults, injectOverlayManager, injectOverlayScrollBlocker, injectRightSheetStrategy, injectRightSheetStrategyDefaults, injectRouterNavigationState, injectTopSheetStrategy, injectTopSheetStrategyDefaults, isEmptyArray, isHtmlElement, isObjectArray, isPointerEvent, isPrimitiveArray, isScrollableChildActive, isScrollableChildIgnored, isTouchEvent$2 as isTouchEvent, isUpperBracketMatch, leftSheetOverlayStrategy, mergeOverlayBreakpointConfigs, normalizePictureSizes, normalizePictureSource, normalizeRoundType, orderRounds, orderRoundsByRoundNumber, paginate, provideAnchoredDialogStrategy, provideAnchoredDialogStrategyDefaults, provideBottomSheetStrategy, provideBottomSheetStrategyDefaults, provideBracketConfig, provideBreadcrumbManager, provideComboboxConfig, provideDateFormat, provideDateTimeFormat, provideDialogStrategy, provideDialogStrategyDefaults, provideFilterOverlayConfig, provideFocusRegistry, provideFullscreenDialogStrategy, provideFullscreenDialogStrategyDefaults, provideIcons, provideImageConfig, provideLeftSheetStrategy, provideLeftSheetStrategyDefaults, provideOverlay, provideOverlayManager, provideOverlayRouterConfig, provideOverlayScrollBlocker, provideRightSheetStrategy, provideRightSheetStrategyDefaults, provideSidebarOverlayConfig, provideSort, provideTimeFormat, provideToggletipConfig, provideTooltipConfig, provideTopSheetStrategy, provideTopSheetStrategyDefaults, provideValidatorErrorsService, rightSheetOverlayStrategy, signalVisibilityChangeClasses, startFullscreenEnterAnimation, startFullscreenLeaveAnimation, subsetMatchOptions, tabAnimations, topSheetOverlayStrategy, transformingBottomSheetToDialogOverlayStrategy, transformingFullScreenDialogToDialogOverlayStrategy, transformingFullScreenDialogToRightSheetOverlayStrategy };
|
|
19430
|
+
export { ACCORDION_COMPONENT, ACCORDION_HINT_WRAPPER_DIRECTIVE, ACCORDION_LABEL_WRAPPER_DIRECTIVE, AccordionComponent, AccordionGroupComponent, AccordionHintDirective, AccordionHintWrapperDirective, AccordionImports, AccordionLabelDirective, AccordionLabelWrapperDirective, ActiveTabUnderlineBarManager, ActiveTabUnderlineDirective, AutosizeTextareaDirective, BRACKET_CONFIG_TOKEN, BRACKET_DEFAULT_CONFIG, BRACKET_MATCH_ID_TOKEN, BRACKET_ROUND_ID_TOKEN, BRACKET_TOKEN, Bracket, BracketComponent, BracketImports, BracketMatchComponent, BracketMatchDirective, index as BracketNew, BracketRoundDirective, BracketRoundHeaderComponent, BreadcrumbComponent, BreadcrumbImports, BreadcrumbItemDirective, BreadcrumbItemTemplateDirective, BreadcrumbOutletComponent, BreadcrumbTemplateDirective, ButtonComponent, ButtonDirective, ButtonImports, CAROUSEL_ITEM_NAV_TOKEN, CAROUSEL_ITEM_TOKEN, CAROUSEL_NEXT_BUTTON_TOKEN, CAROUSEL_PREVIOUS_BUTTON_TOKEN, CAROUSEL_TOGGLE_AUTO_PLAY_BUTTON_TOKEN, CAROUSEL_TOKEN, CHECKBOX_FIELD_TOKEN, CHECKBOX_GROUP_CONTROL_TOKEN, CHECKBOX_GROUP_TOKEN, CHECKBOX_TOKEN, CHEVRON_ICON, COLOR_INPUT_TOKEN, COMBOBOX_BODY_EMPTY_TEMPLATE_TOKEN, COMBOBOX_BODY_ERROR_TEMPLATE_TOKEN, COMBOBOX_BODY_LOADING_TEMPLATE_TOKEN, COMBOBOX_BODY_MORE_ITEMS_HINT_TEMPLATE_TOKEN, COMBOBOX_BODY_TOKEN, COMBOBOX_CONFIG_TOKEN, COMBOBOX_DEFAULT_CONFIG, COMBOBOX_OPTION_TEMPLATE_TOKEN, COMBOBOX_OPTION_TOKEN, COMBOBOX_SELECTED_OPTION_TEMPLATE_TOKEN, COMBOBOX_TOKEN, CarouselComponent, CarouselDirective, CarouselImports, CarouselItemComponent, CarouselItemDirective, CarouselItemNavComponent, CarouselItemNavDirective, CarouselNextButtonDirective, CarouselPreviousButtonDirective, CarouselToggleAutoPlayButtonDirective, CellDefDirective, CellDirective, CheckboxComponent, CheckboxDirective, CheckboxFieldComponent, CheckboxFieldDirective, CheckboxGroupComponent, CheckboxGroupControlDirective, CheckboxGroupDirective, CheckboxImports, ColorInputComponent, ColorInputDirective, ColumnDefDirective, ComboboxBodyComponent, ComboboxBodyEmptyTemplateDirective, ComboboxBodyErrorTemplateDirective, ComboboxBodyLoadingTemplateDirective, ComboboxBodyMoreItemsHintTemplateDirective, ComboboxComponent, ComboboxDirective, ComboboxImports, ComboboxOptionComponent, ComboboxOptionTemplateDirective, ComboboxSelectedOptionTemplateDirective, DATE_INPUT_FORMAT_TOKEN, DATE_INPUT_TOKEN, DATE_TIME_INPUT_FORMAT_TOKEN, DATE_TIME_INPUT_TOKEN, DEFAULT_DATE_INPUT_FORMAT, DEFAULT_DATE_TIME_INPUT_FORMAT, DEFAULT_TIME_INPUT_FORMAT, DYNAMIC_FORM_FIELD_TOKEN, DYNAMIC_FORM_GROUP_TOKEN, DateInputComponent, DateInputDirective, DateTimeInputComponent, DateTimeInputDirective, DecoratedFormFieldBase, DecoratedInputBase, DefaultValidatorErrorsService, DynamicFormFieldDirective, DynamicFormGroupDirective, EMAIL_INPUT_TOKEN, ET_OVERLAY_CONFIG_CLASS_KEYS, EXPOSE_INPUT_VARS_TOKEN, EmailInputComponent, EmailInputDirective, ErrorComponent, ExposeInputVarsDirective, FILTER_OVERLAY_CONFIG, FLOATING_UI_PLACEMENTS, FilterOverlayService, FooterCellDefDirective, FooterCellDirective, FooterRowComponent, FooterRowDefDirective, FormFieldStateService, FormGroupStateService, HeaderCellDefDirective, HeaderCellDirective, HeaderRowComponent, HeaderRowDefDirective, ICONS_TOKEN, ICON_DIRECTIVE_TOKEN, IMAGE_CONFIG_TOKEN, INPUT_PREFIX_TOKEN, INPUT_SUFFIX_TOKEN, INPUT_TOKEN, IconDirective, IconImports, IfInputEmptyDirective, IfInputFilledDirective, IfSupportsShowPickerDirective, InlineTabBodyComponent, InlineTabBodyHostDirective, InlineTabChangeEvent, InlineTabComponent, InlineTabContentDirective, InlineTabHeaderComponent, InlineTabLabelDirective, InlineTabLabelWrapperDirective, InlineTabsComponent, InputBase, InputDirective, InputFieldComponent, InputImports, InputPrefixDirective, InputStateService, InputSuffixDirective, LABEL_TOKEN, LabelComponent, LabelImports, LabelSuffixDirective, MASONRY_ITEM_TOKEN, MAX_SAFE_INTEGER, MENU, MENU_CHECKBOX_GROUP_TOKEN, MENU_CONTAINER, MENU_GROUP_TITLE_TOKEN, MENU_GROUP_TOKEN, MENU_ITEM_TOKEN, MENU_RADIO_GROUP_TOKEN, MENU_SEARCH_TEMPLATE_TOKEN, MENU_TEMPLATE, MENU_TRIGGER_TOKEN, MasonryComponent, MasonryImports, MasonryItemComponent, MenuCheckboxGroupDirective, MenuCheckboxItemComponent, MenuComponent, MenuContainerComponent, MenuGroupDirective, MenuGroupTitleDirective, MenuImports, MenuItemDirective, MenuRadioGroupDirective, MenuRadioItemComponent, MenuSearchTemplateDirective, MenuTriggerDirective, NATIVE_INPUT_REF_TOKEN, NATIVE_SELECT_INPUT_TOKEN, NATIVE_SELECT_OPTION_TOKEN, NUMBER_INPUT_TOKEN, NativeInputRefDirective, NativeSelectImports, NativeSelectInputComponent, NativeSelectInputDirective, NativeSelectOptionComponent, NativeSelectOptionDirective, NavTabLinkComponent, NavTabsComponent, NavTabsOutletComponent, NewBracketComponent, NewBracketDefaultMatchComponent, NewBracketDefaultRoundHeaderComponent, NoDataRowDirective, NumberInputComponent, NumberInputDirective, OVERLAY_BACK_OR_CLOSE_TOKEN, OVERLAY_BODY_TOKEN, OVERLAY_CLOSE_BLOCKER_TOKEN, OVERLAY_CONFIG, OVERLAY_DATA, OVERLAY_FOOTER_TOKEN, OVERLAY_HEADER_TEMPLATE_TOKEN, OVERLAY_HEADER_TOKEN, OVERLAY_MAIN_TOKEN, OVERLAY_QUERY_PARAM_INPUT_NAME, OVERLAY_ROUTER_CONFIG_TOKEN, OVERLAY_ROUTER_LINK_TOKEN, OVERLAY_ROUTER_OUTLET_DISABLED_TEMPLATE_TOKEN, OVERLAY_ROUTER_OUTLET_TOKEN, OVERLAY_SHARED_ROUTE_TEMPLATE_TOKEN, OverlayBackOrCloseDirective, OverlayBodyComponent, OverlayCloseBlockerDirective, OverlayCloseDirective, OverlayContainerComponent, OverlayFooterDirective, OverlayHandlerLinkDirective, OverlayHeaderDirective, OverlayHeaderTemplateDirective, OverlayImports, OverlayMainDirective, OverlayOriginCloneComponent, OverlayRef, OverlayRouteHeaderTemplateOutletComponent, OverlayRouterLinkDirective, OverlayRouterOutletComponent, OverlayRouterOutletDisabledTemplateDirective, OverlayRouterService, OverlaySharedRouteTemplateDirective, OverlaySharedRouteTemplateOutletComponent, OverlaySidebarComponent, OverlaySidebarPageComponent, OverlayTitleDirective, OverlayWithRoutingImports, OverlayWithSidebarImports, PASSWORD_INPUT_TOKEN, PROGRESS_SPINNER_DEFAULT_OPTIONS, PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY, PaginatedTabHeaderDirective, PaginationComponent, PaginationHeadService, PaginationImports, PaginationLinkDirective, PasswordInputComponent, PasswordInputDirective, PasswordInputToggleComponent, PictureComponent, ProgressSpinnerComponent, QUERY_ERROR_TOKEN, QueryButtonComponent, QueryButtonDirective, QueryErrorComponent, QueryErrorDirective, RADIO_FIELD_TOKEN, RADIO_GROUP_TOKEN, RADIO_TOKEN, RICH_FILTER_BUTTON_SLOT_TOKEN, RICH_FILTER_BUTTON_TOKEN, RICH_FILTER_CONTENT_TOKEN, RICH_FILTER_TOP_TOKEN, RadioComponent, RadioDirective, RadioFieldComponent, RadioFieldDirective, RadioGroupComponent, RadioGroupDirective, RadioImports, RichFilterButtonDirective, RichFilterButtonSlotDirective, RichFilterContentDirective, RichFilterHostComponent, RichFilterImports, RichFilterTopDirective, RowComponent, RowDefDirective, SCROLLABLE_IGNORE_CHILD_ATTRIBUTE, SCROLLABLE_IGNORE_CHILD_TOKEN, SCROLLABLE_IS_ACTIVE_CHILD_ATTRIBUTE, SCROLLABLE_IS_ACTIVE_CHILD_TOKEN, SCROLLABLE_LOADING_TEMPLATE_TOKEN, SCROLLABLE_PLACEHOLDER_ITEM_TEMPLATE_TOKEN, SCROLLABLE_PLACEHOLDER_OVERLAY_TEMPLATE_TOKEN, SEARCH_INPUT_TOKEN, SEGMENTED_BUTTON_FIELD_TOKEN, SEGMENTED_BUTTON_GROUP_TOKEN, SEGMENTED_BUTTON_TOKEN, SELECTION_LIST_FIELD, SELECTION_LIST_OPTION, SELECT_BODY_TOKEN, SELECT_FIELD_TOKEN, SELECT_OPTION_TOKEN, SELECT_TOKEN, SHOW_PICKER_TRIGGER_TOKEN, SIDEBAR_OVERLAY_CONFIG, SLIDER_THUMB_CONTENT_TEMPLATE_TOKEN, SLIDE_TOGGLE_TOKEN, SORT_DEFAULT_OPTIONS, SORT_HEADER_COLUMN_DEF, SORT_HEADER_INTL_PROVIDER, SORT_HEADER_INTL_PROVIDER_FACTORY, STATIC_FORM_FIELD_TOKEN, STATIC_FORM_GROUP_TOKEN, ScrollableComponent, ScrollableIgnoreChildDirective, ScrollableImports, ScrollableIsActiveChildDirective, ScrollableLoadingTemplateDirective, ScrollablePlaceholderComponent, ScrollablePlaceholderItemTemplateDirective, ScrollablePlaceholderOverlayTemplateDirective, SearchInputClearComponent, SearchInputComponent, SearchInputDirective, SegmentedButtonComponent, SegmentedButtonDirective, SegmentedButtonFieldComponent, SegmentedButtonFieldDirective, SegmentedButtonGroupComponent, SegmentedButtonGroupDirective, SegmentedButtonImports, SelectBodyComponent, SelectBodyDirective, SelectComponent, SelectDirective, SelectFieldComponent, SelectFieldDirective, SelectImports, SelectOptionComponent, SelectOptionDirective, SelectionListFieldComponent, SelectionListFieldDirective, SelectionListImports, SelectionListOptionComponent, SelectionListOptionDirective, ShowPickerTriggerDirective, SidebarOverlayService, SkeletonComponent, SkeletonImports, SkeletonItemComponent, SlideToggleComponent, SlideToggleDirective, SlideToggleFieldComponent, SlideToggleImports, SliderComponent, SliderFieldComponent, SliderImports, SliderThumbContentTemplateDirective, SortDirective, SortHeaderComponent, SortHeaderIntl, SortImports, StaticFormFieldDirective, StaticFormGroupDirective, TAB, TABS_CONFIG, TAB_CONTENT, TAB_GROUP, TAB_LABEL, TEL_INPUT_TOKEN, TEXTAREA_INPUT_TOKEN, TEXT_INPUT_TOKEN, TIMES_ICON, TIME_INPUT_FORMAT_TOKEN, TIME_INPUT_TOKEN, TOGGLETIP, TOGGLETIP_CONFIG, TOGGLETIP_DEFAULT_CONFIG, TOGGLETIP_DIRECTIVE, TOGGLETIP_TEMPLATE, TOGGLETIP_TEXT, TOOLTIP, TOOLTIP_CONFIG, TOOLTIP_DEFAULT_CONFIG, TOOLTIP_DIRECTIVE, TOOLTIP_TEMPLATE, TOOLTIP_TEXT, TabImports, TableBusyDirective, TableBusyOutletDirective, TableComponent, TableDataSource, TableImports, TelInputComponent, TelInputDirective, TextColumnComponent, TextInputComponent, TextInputDirective, TextareaInputComponent, TextareaInputDirective, TimeInputComponent, TimeInputDirective, ToggletipCloseDirective, ToggletipComponent, ToggletipDirective, ToggletipImports, TooltipComponent, TooltipDirective, TooltipImports, VALIDATOR_ERROR_SERVICE_TOKEN, WRITEABLE_INPUT_TOKEN, WRITEABLE_INPUT_VALUE_ACCESSOR, WriteableInputDirective, _MAT_INK_BAR_POSITIONER, _MAT_INK_BAR_POSITIONER_FACTORY, abortFullscreenAnimation, accordionAnimations, anchoredDialogOverlayStrategy, bottomSheetOverlayStrategy, cleanupFullscreenAnimation, cleanupFullscreenAnimationStyles, createBracketConfig, createComboboxConfig, createFormChangesTracker, createNavigationDismissChecker, createOverlayDismissChecker, createOverlayHandler, createOverlayHandlerWithQueryParamLifecycle, createSwipeTracker, createToggletipConfig, createTooltipConfig, defaultSubmitButtonConfigFn, dialogOverlayStrategy, enableDragToDismiss, exactMatchOptions, extractFirstImageUrl, findNextRelevantHtmlElement, fullScreenDialogOverlayStrategy, getClosestOverlay, getOriginCoordinatesAndDimensions, injectAnchoredDialogStrategy, injectAnchoredDialogStrategyDefaults, injectBottomSheetStrategy, injectBottomSheetStrategyDefaults, injectBreadcrumbManager, injectDialogStrategy, injectDialogStrategyDefaults, injectFocusRegistry, injectFullscreenDialogStrategy, injectFullscreenDialogStrategyDefaults, injectLeftSheetStrategy, injectLeftSheetStrategyDefaults, injectOverlayManager, injectOverlayScrollBlocker, injectRightSheetStrategy, injectRightSheetStrategyDefaults, injectRouterNavigationState, injectTopSheetStrategy, injectTopSheetStrategyDefaults, isEmptyArray, isHtmlElement, isObjectArray, isPointerEvent, isPrimitiveArray, isScrollableChildActive, isScrollableChildIgnored, isTouchEvent$1 as isTouchEvent, isUpperBracketMatch, leftSheetOverlayStrategy, mergeOverlayBreakpointConfigs, normalizePictureSizes, normalizePictureSource, normalizeRoundType, orderRounds, orderRoundsByRoundNumber, paginate, provideAnchoredDialogStrategy, provideAnchoredDialogStrategyDefaults, provideBottomSheetStrategy, provideBottomSheetStrategyDefaults, provideBracketConfig, provideBreadcrumbManager, provideComboboxConfig, provideDateFormat, provideDateTimeFormat, provideDialogStrategy, provideDialogStrategyDefaults, provideFilterOverlayConfig, provideFocusRegistry, provideFullscreenDialogStrategy, provideFullscreenDialogStrategyDefaults, provideIcons, provideImageConfig, provideLeftSheetStrategy, provideLeftSheetStrategyDefaults, provideOverlay, provideOverlayManager, provideOverlayRouterConfig, provideOverlayScrollBlocker, provideRightSheetStrategy, provideRightSheetStrategyDefaults, provideSidebarOverlayConfig, provideSort, provideTimeFormat, provideToggletipConfig, provideTooltipConfig, provideTopSheetStrategy, provideTopSheetStrategyDefaults, provideValidatorErrorsService, rightSheetOverlayStrategy, signalVisibilityChangeClasses, startFullscreenEnterAnimation, startFullscreenLeaveAnimation, subsetMatchOptions, tabAnimations, topSheetOverlayStrategy, transformingBottomSheetToDialogOverlayStrategy, transformingFullScreenDialogToDialogOverlayStrategy, transformingFullScreenDialogToRightSheetOverlayStrategy };
|
|
19699
19431
|
//# sourceMappingURL=ethlete-cdk.mjs.map
|