@ethlete/cdk 5.0.0-next.14 → 5.0.0-next.16

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.
@@ -1,5 +1,5 @@
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, DestroyRef, isSignal, viewChild, viewChildren, provideEnvironmentInitializer, ApplicationRef, output, ContentChild, ViewChildren, EventEmitter, Output, Optional, SkipSelf, IterableDiffers, ComponentFactoryResolver, NgZone, HostAttributeToken } 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, NgZone, Injectable, ChangeDetectorRef, signal, forwardRef, ViewChild, ContentChildren, assertInInjectionContext, createComponent, EnvironmentInjector, DOCUMENT, createEnvironmentInjector, runInInjectionContext, linkedSignal, DestroyRef, isSignal, viewChild, viewChildren, provideEnvironmentInitializer, ApplicationRef, output, ContentChild, ViewChildren, EventEmitter, Output, Optional, SkipSelf, IterableDiffers, ComponentFactoryResolver, 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';
@@ -9,7 +9,7 @@ import { map, switchMap, combineLatest, pairwise, tap, BehaviorSubject, filter,
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, COLOR_PROVIDER, ProvideColorDirective, SURFACE_PROVIDER, ProvideSurfaceDirective, BOUNDARY_ELEMENT_TOKEN, ScrollObserverDirective, signalElementScrollState, ScrollObserverStartDirective, ScrollObserverEndDirective, provideBoundaryElement, applyHostListener, injectSurfaceThemes, injectSurfaceContextTracker, injectBoundaryElement, ANIMATED_LIFECYCLE_TOKEN, resolveSurfaceByElevation, setInputSignal, 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';
12
+ import { createStaticRootProvider, 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, cloneFormGroup, getFormGroupValue, injectQueryParam, injectRoute, AnimatedIfDirective, injectObserveBreakpoint, syncSignal, createDocumentElementSignal, 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';
@@ -1801,7 +1801,13 @@ const generateMatchRelationsNew = (bracketData) => {
1801
1801
  }
1802
1802
  for (const match of bracketData.matches.values()) {
1803
1803
  const relation = match.round.relation;
1804
- const { nextRoundMatchPosition, previousUpperRoundMatchPosition, previousLowerRoundMatchPosition } = generateMatchRelationPositions(relation, match);
1804
+ const positions = generateMatchRelationPositions(relation, match);
1805
+ // A round without a resolved relation (e.g. a truncated bracket where a round has no
1806
+ // successor/predecessor to wire up) keeps the placeholder relation from createNewBracket.
1807
+ // Skip it so the match renders without connector lines instead of crashing the whole bracket.
1808
+ if (!positions)
1809
+ continue;
1810
+ const { nextRoundMatchPosition, previousUpperRoundMatchPosition, previousLowerRoundMatchPosition } = positions;
1805
1811
  switch (relation.type) {
1806
1812
  case 'nothing-to-one':
1807
1813
  matchRelations.push(createNothingToOneRelation$1({
@@ -2080,22 +2086,31 @@ const generateRoundRelationsNew = (bracketData) => {
2080
2086
  }
2081
2087
  if (hasLowerRounds && firstLowerRound) {
2082
2088
  const assignedRoundIds = new Set(relations.map((r) => r.currentRound.id));
2083
- for (let i = 0; i < lowerRounds.length - 1; i++) {
2089
+ for (let i = 0; i < lowerRounds.length; i++) {
2084
2090
  const lowerRound = lowerRounds[i];
2085
2091
  if (!lowerRound || assignedRoundIds.has(lowerRound.id))
2086
2092
  continue;
2087
2093
  const prevLowerRound = i > 0 ? (lowerRounds[i - 1] ?? null) : null;
2088
- const nextLowerRound = lowerRounds[i + 1];
2089
- if (!nextLowerRound)
2090
- continue;
2091
- if (!prevLowerRound) {
2092
- relations.push(createNothingToOneRelation({ currentRound: lowerRound, nextRound: nextLowerRound }));
2094
+ const nextLowerRound = lowerRounds[i + 1] ?? null;
2095
+ if (nextLowerRound) {
2096
+ if (!prevLowerRound) {
2097
+ relations.push(createNothingToOneRelation({ currentRound: lowerRound, nextRound: nextLowerRound }));
2098
+ }
2099
+ else {
2100
+ relations.push(createOneToOneRelation({
2101
+ currentRound: lowerRound,
2102
+ previousRound: prevLowerRound,
2103
+ nextRound: nextLowerRound,
2104
+ rootRound: firstLowerRound,
2105
+ }));
2106
+ }
2093
2107
  }
2094
- else {
2095
- relations.push(createOneToOneRelation({
2108
+ else if (prevLowerRound) {
2109
+ // Truncated bracket: the last lower round has no final round to feed into, so it terminates here.
2110
+ // In a complete bracket this round is wired up by handleFinalRound and already in assignedRoundIds.
2111
+ relations.push(createOneToNothingRelation({
2096
2112
  currentRound: lowerRound,
2097
2113
  previousRound: prevLowerRound,
2098
- nextRound: nextLowerRound,
2099
2114
  rootRound: firstLowerRound,
2100
2115
  }));
2101
2116
  }
@@ -2285,10 +2300,31 @@ const logRoundRelations = (bracketData) => {
2285
2300
  console.log();
2286
2301
  };
2287
2302
 
2303
+ const SWISS_ADVANCE_WINS = 3;
2304
+ const SWISS_ELIMINATE_LOSSES = 3;
2305
+ const BRACKET_SWISS_GROUP_COLOR_TYPE = {
2306
+ /** The starting group (0-0) */
2307
+ NEUTRAL: 'neutral',
2308
+ /** The group has more wins than losses */
2309
+ POSITIVE: 'positive',
2310
+ /** The group is one loss away from elimination */
2311
+ NEGATIVE: 'negative',
2312
+ /** Everything in between */
2313
+ WARNING: 'warning',
2314
+ };
2315
+ const getSwissGroupColorType = (wins, losses) => {
2316
+ if (wins === 0 && losses === 0)
2317
+ return BRACKET_SWISS_GROUP_COLOR_TYPE.NEUTRAL;
2318
+ if (losses === SWISS_ELIMINATE_LOSSES - 1)
2319
+ return BRACKET_SWISS_GROUP_COLOR_TYPE.NEGATIVE;
2320
+ if (wins > losses)
2321
+ return BRACKET_SWISS_GROUP_COLOR_TYPE.POSITIVE;
2322
+ return BRACKET_SWISS_GROUP_COLOR_TYPE.WARNING;
2323
+ };
2288
2324
  const factorialCache = new Map();
2289
2325
  const getAvailableSwissGroupsForRound = (roundNumber, totalMatchesInRound) => {
2290
- const ADVANCE_WINS = 3;
2291
- const ELIMINATE_LOSSES = 3;
2326
+ const ADVANCE_WINS = SWISS_ADVANCE_WINS;
2327
+ const ELIMINATE_LOSSES = SWISS_ELIMINATE_LOSSES;
2292
2328
  // Cache factorial calculations
2293
2329
  const getFactorial = (n) => {
2294
2330
  if (n <= 1)
@@ -2377,6 +2413,20 @@ const generateBracketRoundSwissGroupMaps = (bracketData) => {
2377
2413
  return roundsWithSwissGroups;
2378
2414
  };
2379
2415
 
2416
+ class NewBracketDefaultContinueComponent {
2417
+ constructor() {
2418
+ this.bracketMatches = input.required(...(ngDevMode ? [{ debugName: "bracketMatches" }] : /* istanbul ignore next */ []));
2419
+ }
2420
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: NewBracketDefaultContinueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2421
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: NewBracketDefaultContinueComponent, isStandalone: true, selector: "et-new-bracket-default-continue", inputs: { bracketMatches: { classPropertyName: "bracketMatches", publicName: "bracketMatches", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "et-new-bracket-default-continue-host" }, ngImport: i0, template: ` Next stage ({{ bracketMatches().length }}) `, isInline: true, styles: [".et-new-bracket-default-continue-host{display:flex;padding:8px;border:1px dashed cyan;inline-size:100%;block-size:100%;justify-content:center;align-items:center;box-sizing:border-box;font-size:12px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
2422
+ }
2423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: NewBracketDefaultContinueComponent, decorators: [{
2424
+ type: Component,
2425
+ args: [{ selector: 'et-new-bracket-default-continue', template: ` Next stage ({{ bracketMatches().length }}) `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
2426
+ class: 'et-new-bracket-default-continue-host',
2427
+ }, styles: [".et-new-bracket-default-continue-host{display:flex;padding:8px;border:1px dashed cyan;inline-size:100%;block-size:100%;justify-content:center;align-items:center;box-sizing:border-box;font-size:12px}\n"] }]
2428
+ }], propDecorators: { bracketMatches: [{ type: i0.Input, args: [{ isSignal: true, alias: "bracketMatches", required: true }] }] } });
2429
+
2380
2430
  class NewBracketDefaultMatchComponent {
2381
2431
  constructor() {
2382
2432
  this.bracketRound = input.required(...(ngDevMode ? [{ debugName: "bracketRound" }] : /* istanbul ignore next */ []));
@@ -2420,7 +2470,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
2420
2470
  }, styles: [".et-new-bracket-default-round-header-host{display:block;padding:8px;border:1px solid green;inline-size:100%;block-size:100%;display:flex;justify-content:center;align-items:center;box-sizing:border-box}\n"] }]
2421
2471
  }], propDecorators: { bracketRound: [{ type: i0.Input, args: [{ isSignal: true, alias: "bracketRound", required: true }] }], bracketRoundSwissGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "bracketRoundSwissGroup", required: true }] }] } });
2422
2472
 
2423
- const path = (d, options) => `<path d="${d.replace(/\s+/g, ' ').trim()}" stroke="currentColor" fill="none" stroke-width="${options.width}" stroke-dasharray="${options.dashArray}" stroke-dashoffset="${options.dashOffset}" class="${options.className}" />`;
2473
+ const path = (d, options) => `<path d="${d.replace(/\s+/g, ' ').trim()}" stroke="${options.stroke ?? 'currentColor'}" fill="none" stroke-width="${options.width}" stroke-dasharray="${options.dashArray}" stroke-dashoffset="${options.dashOffset}" class="${options.className}" />`;
2424
2474
 
2425
2475
  const curvePath = (from, to, direction, options) => {
2426
2476
  const inverted = options.inverted ?? false;
@@ -2457,97 +2507,6 @@ const curvePath = (from, to, direction, options) => {
2457
2507
  return path(d, options.path);
2458
2508
  };
2459
2509
 
2460
- const linePath = (from, to, options) => {
2461
- return path(`M ${from.inline.end} ${from.block.center} L ${to.inline.start} ${to.block.center}`, options.path);
2462
- };
2463
-
2464
- const makePos = (dimensions) => ({
2465
- block: {
2466
- start: dimensions.top,
2467
- end: dimensions.top + dimensions.height,
2468
- center: dimensions.top + dimensions.height / 2,
2469
- },
2470
- inline: {
2471
- start: dimensions.left,
2472
- end: dimensions.left + dimensions.width,
2473
- center: dimensions.left + dimensions.width / 2,
2474
- },
2475
- });
2476
- const drawMan = (dimensions) => {
2477
- const svgParts = [];
2478
- for (const col of dimensions.bracketGrid.columns) {
2479
- for (const el of col.elements) {
2480
- if (el.type === 'header')
2481
- continue;
2482
- const currentMatchParticipantsShortIds = [el.match.home?.shortId, el.match.away?.shortId]
2483
- .filter((id) => !!id)
2484
- .join(' ');
2485
- const pathOptions = { ...dimensions.path, className: currentMatchParticipantsShortIds };
2486
- const currentPos = makePos(el.dimensions);
2487
- // No lines for the third place match
2488
- if (el.round.type === COMMON_BRACKET_ROUND_TYPE.THIRD_PLACE)
2489
- continue;
2490
- switch (el.match.relation.type) {
2491
- case 'nothing-to-one': {
2492
- continue;
2493
- }
2494
- case 'one-to-nothing':
2495
- case 'one-to-one': {
2496
- const prev = dimensions.bracketGrid.matchElementMap.getOrThrow(el.match.relation.previousMatch.id);
2497
- const prevPos = makePos(prev.dimensions);
2498
- // draw a straight line
2499
- svgParts.push(linePath(prevPos, currentPos, { path: pathOptions }));
2500
- break;
2501
- }
2502
- case 'two-to-nothing':
2503
- case 'two-to-one': {
2504
- const prevUpper = dimensions.bracketGrid.matchElementMap.getOrThrow(el.match.relation.previousUpperMatch.id);
2505
- const prevLower = dimensions.bracketGrid.matchElementMap.getOrThrow(el.match.relation.previousLowerMatch.id);
2506
- const prevUpperPos = makePos(prevUpper.dimensions);
2507
- const prevLowerPos = makePos(prevLower.dimensions);
2508
- const isLowerUpperMerger = el.match.relation.previousLowerRound.id !== el.match.relation.previousUpperRound.id;
2509
- const invertCurve = el.round.mirrorRoundType === BRACKET_ROUND_MIRROR_TYPE.RIGHT;
2510
- const curveOptions = {
2511
- ...dimensions.curve,
2512
- inverted: invertCurve,
2513
- path: { ...dimensions.path, className: '' },
2514
- };
2515
- if (isLowerUpperMerger) {
2516
- svgParts.push(linePath(prevUpperPos, currentPos, { path: pathOptions }));
2517
- }
2518
- else {
2519
- // draw two lines that merge into one in the middle
2520
- svgParts.push(curvePath(prevUpperPos, currentPos, 'down', {
2521
- ...curveOptions,
2522
- path: {
2523
- ...curveOptions.path,
2524
- className: el.match.relation.previousUpperMatch.winner?.shortId || '',
2525
- },
2526
- }));
2527
- }
2528
- svgParts.push(curvePath(prevLowerPos, currentPos, 'up', {
2529
- ...curveOptions,
2530
- path: {
2531
- ...curveOptions.path,
2532
- className: el.match.relation.previousLowerMatch.winner?.shortId || '',
2533
- },
2534
- }));
2535
- if (el.round.mirrorRoundType === BRACKET_ROUND_MIRROR_TYPE.RIGHT &&
2536
- el.match.relation.type === 'two-to-one' &&
2537
- el.match.relation.nextRound.mirrorRoundType === null) {
2538
- // draw a straight line for the special case of connecting the final match to the mirrored semi final match
2539
- const next = dimensions.bracketGrid.matchElementMap.getOrThrow(el.match.relation.nextMatch.id);
2540
- const nextPos = makePos(next.dimensions);
2541
- svgParts.push(linePath(nextPos, currentPos, { path: pathOptions }));
2542
- }
2543
- break;
2544
- }
2545
- }
2546
- }
2547
- }
2548
- return svgParts.join('');
2549
- };
2550
-
2551
2510
  const createBracketElementPart = (config) => {
2552
2511
  const { elementPartHeight } = config;
2553
2512
  const newElementPart = {
@@ -2609,6 +2568,13 @@ const createBracketElement = (config) => {
2609
2568
  ...newElementBase,
2610
2569
  type,
2611
2570
  };
2571
+ case 'continue':
2572
+ return {
2573
+ ...newElementBase,
2574
+ type,
2575
+ component: config.component,
2576
+ matches: config.matches,
2577
+ };
2612
2578
  default:
2613
2579
  throw new Error(`Unknown element type: ${type}`);
2614
2580
  }
@@ -2665,6 +2631,14 @@ const finalizeBracketGrid = (grid) => {
2665
2631
  elements.push(matchEl);
2666
2632
  finalizedElementMap.set(element.match.id, matchEl);
2667
2633
  }
2634
+ else if (element.type === 'continue') {
2635
+ elements.push({
2636
+ type: 'continue',
2637
+ dimensions: element.dimensions,
2638
+ component: element.component,
2639
+ matches: element.matches,
2640
+ });
2641
+ }
2668
2642
  }
2669
2643
  if (!lastSubColumn.span.isEnd) {
2670
2644
  for (let index = masterColumnIndex + 1; index < grid.grid.masterColumns.length; index++) {
@@ -2727,22 +2701,23 @@ const createBracketGrid = (config) => {
2727
2701
  }
2728
2702
  for (let secIdx = 0; secIdx < sections.length; secIdx++) {
2729
2703
  const section = sections[secIdx];
2704
+ const sectionPadding = section.padding ?? padding;
2730
2705
  let sectionPaddingTop;
2731
2706
  if (secIdx === 0) {
2732
- sectionPaddingTop = firstSectionIsHeader ? 0 : padding.top;
2707
+ sectionPaddingTop = firstSectionIsHeader ? 0 : sectionPadding.top;
2733
2708
  }
2734
2709
  else {
2735
- sectionPaddingTop = padding.top;
2710
+ sectionPaddingTop = sectionPadding.top;
2736
2711
  }
2737
2712
  section.dimensions.width = masterColumn.dimensions.width;
2738
2713
  section.dimensions.left = masterColumn.dimensions.left;
2739
2714
  section.dimensions.top = runningTop;
2740
2715
  runningTop += sectionPaddingTop;
2741
- const contentWidth = masterColumn.dimensions.width - padding.left - padding.right;
2716
+ const contentWidth = masterColumn.dimensions.width - sectionPadding.left - sectionPadding.right;
2742
2717
  const subColumns = section.subColumns;
2743
2718
  const totalSubColumns = subColumns.length;
2744
2719
  const subColumnWidth = contentWidth / totalSubColumns;
2745
- let currentSubColumnLeft = masterColumn.dimensions.left + padding.left;
2720
+ let currentSubColumnLeft = masterColumn.dimensions.left + sectionPadding.left;
2746
2721
  let maxSectionHeight = 0;
2747
2722
  for (let scIdx = 0; scIdx < totalSubColumns; scIdx++) {
2748
2723
  const subColumn = subColumns[scIdx];
@@ -2778,8 +2753,8 @@ const createBracketGrid = (config) => {
2778
2753
  maxSectionHeight = totalSubColumnHeight;
2779
2754
  currentSubColumnLeft += subColumnWidth;
2780
2755
  }
2781
- section.dimensions.height = maxSectionHeight + padding.bottom;
2782
- runningTop += maxSectionHeight + padding.bottom;
2756
+ section.dimensions.height = maxSectionHeight + sectionPadding.bottom;
2757
+ runningTop += maxSectionHeight + sectionPadding.bottom;
2783
2758
  }
2784
2759
  masterColumn.dimensions.height = runningTop;
2785
2760
  if (masterColumn.dimensions.height > maxGridHeight)
@@ -2813,7 +2788,14 @@ const createBracketGrid = (config) => {
2813
2788
  const totalSpannedWidth = calculateSpannedWidth(span, masterCols);
2814
2789
  const spanStartLeft = calculateSpanStartLeft(span, masterCols);
2815
2790
  const width = config.spanElementWidth;
2816
- spanDimensions.set(spanKey, { width, left: spanStartLeft + (totalSpannedWidth - width) * 0.5 });
2791
+ // Winner bracket rounds span two lower bracket columns. Left-align them within that
2792
+ // span (factor 0) instead of centering (factor 0.5) so each winner round n sits above
2793
+ // the lower bracket round its losers drop into (round 2n-2) — the round whose matches
2794
+ // merge into the next one. That makes the participant's drop target unambiguous. Every
2795
+ // other spanning round (e.g. lower rounds split across sub-columns) stays centered.
2796
+ const round = element.type === 'header' || element.type === 'match' ? element.round : null;
2797
+ const alignFactor = round?.type === DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.UPPER_BRACKET ? 0 : 0.5;
2798
+ spanDimensions.set(spanKey, { width, left: spanStartLeft + (totalSpannedWidth - width) * alignFactor });
2817
2799
  }
2818
2800
  const storedDimensions = spanDimensions.get(spanKey);
2819
2801
  if (storedDimensions) {
@@ -2981,7 +2963,7 @@ const createBracketMasterColumn = (config) => {
2981
2963
  };
2982
2964
 
2983
2965
  const createBracketMasterColumnSection = (config) => {
2984
- const { type } = config;
2966
+ const { type, padding } = config;
2985
2967
  const subColumns = [];
2986
2968
  const newMasterColumnSection = {
2987
2969
  dimensions: {
@@ -2992,6 +2974,7 @@ const createBracketMasterColumnSection = (config) => {
2992
2974
  },
2993
2975
  subColumns,
2994
2976
  type,
2977
+ padding,
2995
2978
  };
2996
2979
  const pushSubColumn = (...newSubColumns) => {
2997
2980
  subColumns.push(...newSubColumns);
@@ -3203,6 +3186,63 @@ const calculateUpperRoundIndex = (subColumnIndex, upperToLowerRatio, splitFactor
3203
3186
  return Math.floor(adjustedColumnIndex / upperToLowerRatio) + 1;
3204
3187
  };
3205
3188
 
3189
+ const isBracketContinueMatch = (match) => match.round.type !== COMMON_BRACKET_ROUND_TYPE.THIRD_PLACE &&
3190
+ (match.relation.type === 'one-to-nothing' || match.relation.type === 'two-to-nothing');
3191
+ const getBracketContinueMatches = (bracketData) => Array.from(bracketData.matches.values()).filter((match) => isBracketContinueMatch(match));
3192
+ const createBracketContinueMasterColumn = (config) => {
3193
+ const { existingMasterColumns, columnWidth, elementHeight, headerOffset, component, matches } = config;
3194
+ const lastMasterColumn = existingMasterColumns[existingMasterColumns.length - 1];
3195
+ if (!lastMasterColumn) {
3196
+ throw new Error('No last master column found in existing master columns');
3197
+ }
3198
+ // Dimensions are not calculated yet at this point, but all part heights are static, so the
3199
+ // total column height is the sum of the tallest sub column of every section.
3200
+ const totalHeight = lastMasterColumn.sections.reduce((height, section) => {
3201
+ const sectionHeight = Math.max(0, ...section.subColumns.map((subColumn) => subColumn.elements.reduce((subColumnHeight, element) => subColumnHeight + element.parts.reduce((sum, part) => sum + part.dimensions.height, 0), 0)));
3202
+ return height + sectionHeight;
3203
+ }, 0);
3204
+ const { masterColumn, pushSection } = createBracketMasterColumn({
3205
+ columnWidth,
3206
+ padding: {
3207
+ bottom: 0,
3208
+ left: 0,
3209
+ right: 0,
3210
+ top: 0,
3211
+ },
3212
+ });
3213
+ const { masterColumnSection, pushSubColumn } = createBracketMasterColumnSection({
3214
+ type: 'round',
3215
+ });
3216
+ const { subColumn, pushElement } = createBracketSubColumn({
3217
+ span: {
3218
+ isStart: true,
3219
+ isEnd: true,
3220
+ },
3221
+ });
3222
+ if (headerOffset > 0) {
3223
+ const { element: headerGapElement } = createBracketElement({
3224
+ area: '.',
3225
+ type: 'colGap',
3226
+ elementHeight: headerOffset,
3227
+ partHeights: [headerOffset],
3228
+ });
3229
+ pushElement(headerGapElement);
3230
+ }
3231
+ const containerHeight = Math.max(elementHeight, totalHeight - headerOffset);
3232
+ const { element: continueElement } = createBracketElement({
3233
+ area: 'continue',
3234
+ type: 'continue',
3235
+ elementHeight,
3236
+ partHeights: [containerHeight],
3237
+ component,
3238
+ matches,
3239
+ });
3240
+ pushElement(continueElement);
3241
+ pushSubColumn(subColumn);
3242
+ pushSection(masterColumnSection);
3243
+ return masterColumn;
3244
+ };
3245
+
3206
3246
  const createBracketGapMasterColumn = (config) => {
3207
3247
  const { existingMasterColumns, columnGap } = config;
3208
3248
  const lastMasterColumn = existingMasterColumns[existingMasterColumns.length - 1];
@@ -3358,14 +3398,26 @@ const createRoundBracketSubColumnRelativeToFirstRound = (config) => {
3358
3398
 
3359
3399
  const createDoubleEliminationGrid = (bracketData, options, components) => {
3360
3400
  const grid = createBracketGrid({ spanElementWidth: options.columnWidth });
3361
- const upperBracketRounds = Array.from(bracketData.roundsByType.getOrThrow(DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.UPPER_BRACKET).values());
3401
+ const presentUpperBracketRounds = Array.from(bracketData.roundsByType.getOrThrow(DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.UPPER_BRACKET).values());
3362
3402
  const lowerBracketRounds = Array.from(bracketData.roundsByType.getOrThrow(DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.LOWER_BRACKET).values());
3403
+ // A complete winner bracket has (lowerRounds / 2) + 1 rounds. If fewer are present, the winner
3404
+ // bracket starts later than round 1 — e.g. a small double elimination where lower-round 1 is
3405
+ // seeded directly from a group phase and has no winner round feeding it. Pad the front of the
3406
+ // winner rounds with nulls so the column mapping keeps treating the winner bracket as complete:
3407
+ // the missing early rounds become empty slots above the lower rounds they never fed, and every
3408
+ // present winner round lines up above its real drop-in lower round.
3409
+ const fullUpperRoundCount = Math.floor(lowerBracketRounds.length / 2) + 1;
3410
+ const frontMissingUpperRounds = Math.max(0, fullUpperRoundCount - presentUpperBracketRounds.length);
3411
+ const upperBracketRounds = [
3412
+ ...Array.from({ length: frontMissingUpperRounds }, () => null),
3413
+ ...presentUpperBracketRounds,
3414
+ ];
3363
3415
  const remainingRounds = Array.from(bracketData.rounds.values()).filter((r) => r.type !== DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.UPPER_BRACKET &&
3364
3416
  r.type !== DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.LOWER_BRACKET &&
3365
3417
  r.type !== COMMON_BRACKET_ROUND_TYPE.THIRD_PLACE);
3366
3418
  const thirdPlaceRound = bracketData.roundsByType.get(COMMON_BRACKET_ROUND_TYPE.THIRD_PLACE)?.first() ?? null;
3367
3419
  const hasReverseFinal = !!bracketData.roundsByType.get(DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.REVERSE_FINAL)?.first();
3368
- const firstUpperRound = upperBracketRounds[0];
3420
+ const firstUpperRound = presentUpperBracketRounds[0];
3369
3421
  const firstLowerRound = lowerBracketRounds[0];
3370
3422
  if (!firstUpperRound || !firstLowerRound) {
3371
3423
  throw new Error('No upper or lower rounds found in bracket data');
@@ -3408,10 +3460,11 @@ const createDoubleEliminationGrid = (bracketData, options, components) => {
3408
3460
  const nextUpperRoundIndex = calculateUpperRoundIndex(nextSubColumnIndex, upperToLowerRatio, columnSplitFactor);
3409
3461
  const previousLowerRoundIndex = previousSubColumnIndex >= 0 ? calculateLowerRoundIndex(previousSubColumnIndex, columnSplitFactor) : -1;
3410
3462
  const nextLowerRoundIndex = calculateLowerRoundIndex(nextSubColumnIndex, columnSplitFactor);
3411
- const upperRound = upperBracketRounds[currentUpperRoundIndex];
3412
- if (!upperRound) {
3463
+ if (currentUpperRoundIndex < 0 || currentUpperRoundIndex >= upperBracketRounds.length) {
3413
3464
  throw new Error('Upper round not found for subColumnIndex: ' + subColumnIndex);
3414
3465
  }
3466
+ // May be null for a leading winner slot that does not exist (front-truncated winner bracket).
3467
+ const upperRound = upperBracketRounds[currentUpperRoundIndex];
3415
3468
  // For upper bracket spans - check if this round is different from the previous occurrence
3416
3469
  const isUpperSpanStart = isFirstSubColumnInMasterColumn
3417
3470
  ? lowerRoundIndex === 0 || lastRoundLastSubColumnUpperIndex !== currentUpperRoundIndex
@@ -3431,18 +3484,34 @@ const createDoubleEliminationGrid = (bracketData, options, components) => {
3431
3484
  calculateLowerRoundIndex((lowerRoundIndex + 1) * columnSplitFactor, columnSplitFactor) !==
3432
3485
  currentLowerRoundIndex
3433
3486
  : nextLowerRoundIndex !== currentLowerRoundIndex;
3434
- const upperSubColumn = createRoundBracketSubColumnRelativeToFirstRound({
3435
- firstRound: firstUpperRound,
3436
- round: upperRound,
3437
- options,
3438
- hasReverseFinal,
3439
- span: {
3440
- isStart: isUpperSpanStart,
3441
- isEnd: isUpperSpanEnd,
3442
- },
3443
- components,
3444
- });
3445
- pushUpperSubColumn(upperSubColumn);
3487
+ const upperSpan = { isStart: isUpperSpanStart, isEnd: isUpperSpanEnd };
3488
+ if (upperRound) {
3489
+ pushUpperSubColumn(createRoundBracketSubColumnRelativeToFirstRound({
3490
+ firstRound: firstUpperRound,
3491
+ round: upperRound,
3492
+ options,
3493
+ hasReverseFinal,
3494
+ span: upperSpan,
3495
+ components,
3496
+ }));
3497
+ }
3498
+ else {
3499
+ // Empty leading winner slot: reserve the same vertical space a real winner round (rendered
3500
+ // relative to the first present round) would occupy, so the lower bracket rows below stay
3501
+ // aligned, but render nothing in it.
3502
+ const emptyUpperHeight = (options.roundHeaderHeight > 0 ? options.roundHeaderHeight + options.roundHeaderGap : 0) +
3503
+ firstUpperRound.matchCount * options.matchHeight +
3504
+ Math.max(0, firstUpperRound.matchCount - 1) * options.rowGap;
3505
+ const { subColumn: emptyUpperSubColumn, pushElement: pushEmptyUpperElement } = createBracketSubColumn({ span: upperSpan });
3506
+ const { element: emptyUpperElement } = createBracketElement({
3507
+ area: '.',
3508
+ type: 'colGap',
3509
+ elementHeight: emptyUpperHeight,
3510
+ partHeights: [emptyUpperHeight],
3511
+ });
3512
+ pushEmptyUpperElement(emptyUpperElement);
3513
+ pushUpperSubColumn(emptyUpperSubColumn);
3514
+ }
3446
3515
  const upperLowerGapSubColumn = createBracketSubColumn({
3447
3516
  span: {
3448
3517
  isStart: true,
@@ -3476,7 +3545,11 @@ const createDoubleEliminationGrid = (bracketData, options, components) => {
3476
3545
  }
3477
3546
  pushSection(upperSection, upperLowerGapSection, lowerSection);
3478
3547
  grid.pushMasterColumn(masterColumn);
3479
- if (remainingRounds.length) {
3548
+ // Always separate consecutive lower rounds with a gap column. The trailing gap after the
3549
+ // last lower round is only needed to connect to the finals section (remainingRounds); in a
3550
+ // truncated bracket without a final we must still gap the intermediate rounds, otherwise the
3551
+ // rounds sit flush against each other and their connector lines collapse to zero width.
3552
+ if (!isLastLowerRound || remainingRounds.length) {
3480
3553
  grid.pushMasterColumn(createBracketGapMasterColumn({
3481
3554
  existingMasterColumns: grid.grid.masterColumns,
3482
3555
  columnGap: options.columnGap,
@@ -3583,6 +3656,23 @@ const createDoubleEliminationGrid = (bracketData, options, components) => {
3583
3656
  }));
3584
3657
  }
3585
3658
  }
3659
+ if (options.continueElement && components.continue) {
3660
+ const continueMatches = getBracketContinueMatches(bracketData);
3661
+ if (continueMatches.length) {
3662
+ grid.pushMasterColumn(createBracketGapMasterColumn({
3663
+ existingMasterColumns: grid.grid.masterColumns,
3664
+ columnGap: options.columnGap,
3665
+ }));
3666
+ grid.pushMasterColumn(createBracketContinueMasterColumn({
3667
+ existingMasterColumns: grid.grid.masterColumns,
3668
+ columnWidth: options.continueElement.columnWidth,
3669
+ elementHeight: options.continueElement.elementHeight,
3670
+ headerOffset: options.roundHeaderHeight > 0 ? options.roundHeaderHeight + options.roundHeaderGap : 0,
3671
+ component: components.continue,
3672
+ matches: continueMatches,
3673
+ }));
3674
+ }
3675
+ }
3586
3676
  grid.setupElementSpans();
3587
3677
  grid.calculateDimensions();
3588
3678
  const finalizedGrid = finalizeBracketGrid(grid);
@@ -3635,6 +3725,23 @@ const createSingleEliminationGrid = (bracketData, options, components) => {
3635
3725
  }));
3636
3726
  }
3637
3727
  }
3728
+ if (options.continueElement && components.continue) {
3729
+ const continueMatches = getBracketContinueMatches(bracketData);
3730
+ if (continueMatches.length) {
3731
+ grid.pushMasterColumn(createBracketGapMasterColumn({
3732
+ existingMasterColumns: grid.grid.masterColumns,
3733
+ columnGap: options.columnGap,
3734
+ }));
3735
+ grid.pushMasterColumn(createBracketContinueMasterColumn({
3736
+ existingMasterColumns: grid.grid.masterColumns,
3737
+ columnWidth: options.continueElement.columnWidth,
3738
+ elementHeight: options.continueElement.elementHeight,
3739
+ headerOffset: options.roundHeaderHeight > 0 ? options.roundHeaderHeight + options.roundHeaderGap : 0,
3740
+ component: components.continue,
3741
+ matches: continueMatches,
3742
+ }));
3743
+ }
3744
+ }
3638
3745
  grid.calculateDimensions();
3639
3746
  const finalizedGrid = finalizeBracketGrid(grid);
3640
3747
  return {
@@ -3644,47 +3751,84 @@ const createSingleEliminationGrid = (bracketData, options, components) => {
3644
3751
  };
3645
3752
  };
3646
3753
 
3647
- // TODO
3648
- // The longest master col gets the original gaps (roundRowGap, rowGap)
3649
- // For the master cols before it, the gaps are computed so that the total height is the same as the longest master col
3650
- // For the master cols after it, original gaps are used again resulting in a top alignment.
3651
- // We push one more gap element at the end of the column to fill the remaining space if any
3652
- //
3653
- // Since we want to draw a line around each group of matches, we need to adjust the column width to account for the border width and the gap between the border and the match elements
3654
- // This can be done using the swissGroupPadding option
3754
+ const getSwissGroupBoxPadding = (options) => options.swissGroupPadding + options.swissGroupBorderWidth;
3755
+ const calculateSwissColumnMetrics = (groupMap, options) => {
3756
+ const includeHeaders = options.roundHeaderHeight > 0;
3757
+ const boxPadding = getSwissGroupBoxPadding(options);
3758
+ let naturalHeight = 0;
3759
+ let stretchableGapCount = 0;
3760
+ for (const [groupIndex, group] of Array.from(groupMap.groups.values()).entries()) {
3761
+ if (groupIndex !== 0) {
3762
+ // The gap section between two groups
3763
+ naturalHeight += options.rowRoundGap;
3764
+ stretchableGapCount++;
3765
+ }
3766
+ // The round header gap is not stretchable: the first match should always sit directly
3767
+ // below it, no matter how much a column gets stretched.
3768
+ if (includeHeaders) {
3769
+ naturalHeight += options.roundHeaderHeight + options.roundHeaderGap;
3770
+ }
3771
+ const matchGapCount = Math.max(0, group.matches.size - 1);
3772
+ naturalHeight += boxPadding * 2 + group.matches.size * options.matchHeight + matchGapCount * options.rowGap;
3773
+ stretchableGapCount += matchGapCount;
3774
+ }
3775
+ return { naturalHeight, stretchableGapCount };
3776
+ };
3777
+ // The naturally tallest master column (the round with the most groups) keeps the original
3778
+ // gaps (rowGap, rowRoundGap, roundHeaderGap) and defines the total bracket height.
3779
+ // The master cols before it are stretched to that height by distributing the missing
3780
+ // height evenly across all of their gap elements.
3781
+ // The master cols after it keep the original gaps, resulting in a top alignment. They get
3782
+ // one more gap element at the end of the column to fill the remaining space if any.
3655
3783
  const createSwissGrid = (bracketData, options, components) => {
3656
3784
  const swissGroupMaps = generateBracketRoundSwissGroupMaps(bracketData);
3657
3785
  if (!swissGroupMaps)
3658
3786
  throw new Error('Unable to generate Swiss groups for the provided bracket data');
3659
3787
  const grid = createBracketGrid({ spanElementWidth: options.columnWidth });
3660
- for (const [groupMapIndex, groupMap] of Array.from(swissGroupMaps.values()).entries()) {
3788
+ const groupMaps = Array.from(swissGroupMaps.values());
3789
+ const columnMetrics = groupMaps.map((groupMap) => calculateSwissColumnMetrics(groupMap, options));
3790
+ const totalHeight = Math.max(...columnMetrics.map((metrics) => metrics.naturalHeight));
3791
+ const longestColumnIndex = columnMetrics.findIndex((metrics) => metrics.naturalHeight === totalHeight);
3792
+ for (const [groupMapIndex, groupMap] of groupMaps.entries()) {
3661
3793
  const isLastGroupMap = groupMapIndex === swissGroupMaps.size - 1;
3794
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3795
+ const metrics = columnMetrics[groupMapIndex];
3796
+ const heightToFill = totalHeight - metrics.naturalHeight;
3797
+ const isStretched = groupMapIndex < longestColumnIndex && metrics.stretchableGapCount > 0;
3798
+ const gapStretch = isStretched ? heightToFill / metrics.stretchableGapCount : 0;
3799
+ const rowGap = options.rowGap + gapStretch;
3800
+ const rowRoundGap = options.rowRoundGap + gapStretch;
3801
+ // The border and group padding are part of the column width (the match elements
3802
+ // shrink by them), so the column footprint stays at columnWidth and the group borders
3803
+ // drawn around the matches don't overflow the bracket container. The padding lives on
3804
+ // the match list sections, the header and gap sections stay unpadded and span the
3805
+ // whole column width.
3806
+ const boxPadding = getSwissGroupBoxPadding(options);
3662
3807
  const { masterColumn, pushSection } = createBracketMasterColumn({
3663
3808
  columnWidth: options.columnWidth,
3664
3809
  padding: {
3665
- bottom: options.swissGroupPadding,
3666
- left: options.swissGroupPadding,
3667
- right: options.swissGroupPadding,
3668
- top: options.swissGroupPadding,
3810
+ bottom: 0,
3811
+ left: 0,
3812
+ right: 0,
3813
+ top: 0,
3669
3814
  },
3670
3815
  });
3671
3816
  for (const [groupIndex, group] of Array.from(groupMap.groups.values()).entries()) {
3672
3817
  const isLastGroup = groupIndex === groupMap.groups.size - 1;
3673
- const { masterColumnSection, pushSubColumn } = createBracketMasterColumnSection({
3674
- type: 'round',
3675
- });
3676
- const { subColumn, pushElement } = createBracketSubColumn({
3677
- span: {
3678
- isStart: true,
3679
- isEnd: true,
3680
- },
3681
- });
3682
- const elementsToCreate = [];
3683
3818
  if (options.roundHeaderHeight > 0) {
3684
3819
  const firstMatchRound = group.matches.first()?.round;
3685
3820
  if (!firstMatchRound)
3686
3821
  throw new Error('No rounds found in Swiss group');
3687
- elementsToCreate.push({
3822
+ const headerColumnSection = createBracketMasterColumnSection({
3823
+ type: 'round',
3824
+ });
3825
+ const headerSubColumn = createBracketSubColumn({
3826
+ span: {
3827
+ isStart: true,
3828
+ isEnd: true,
3829
+ },
3830
+ });
3831
+ const headerElement = createBracketElement({
3688
3832
  type: 'header',
3689
3833
  area: `h${group.id}`,
3690
3834
  partHeights: [options.roundHeaderHeight],
@@ -3692,13 +3836,33 @@ const createSwissGrid = (bracketData, options, components) => {
3692
3836
  component: components.roundHeader,
3693
3837
  round: firstMatchRound,
3694
3838
  roundSwissGroup: group,
3695
- }, {
3839
+ });
3840
+ const headerGapElement = createBracketElement({
3696
3841
  type: 'roundHeaderGap',
3697
3842
  area: '.',
3698
3843
  partHeights: [options.roundHeaderGap],
3699
3844
  elementHeight: options.roundHeaderGap,
3700
3845
  });
3846
+ headerSubColumn.pushElement(headerElement.element, headerGapElement.element);
3847
+ headerColumnSection.pushSubColumn(headerSubColumn.subColumn);
3848
+ pushSection(headerColumnSection.masterColumnSection);
3701
3849
  }
3850
+ const { masterColumnSection, pushSubColumn } = createBracketMasterColumnSection({
3851
+ type: 'round',
3852
+ padding: {
3853
+ bottom: boxPadding,
3854
+ left: boxPadding,
3855
+ right: boxPadding,
3856
+ top: boxPadding,
3857
+ },
3858
+ });
3859
+ const { subColumn, pushElement } = createBracketSubColumn({
3860
+ span: {
3861
+ isStart: true,
3862
+ isEnd: true,
3863
+ },
3864
+ });
3865
+ const elementsToCreate = [];
3702
3866
  for (const [matchIndex, match] of Array.from(group.matches.values()).entries()) {
3703
3867
  const isLastMatch = matchIndex === group.matches.size - 1;
3704
3868
  elementsToCreate.push({
@@ -3715,8 +3879,8 @@ const createSwissGrid = (bracketData, options, components) => {
3715
3879
  elementsToCreate.push({
3716
3880
  type: 'matchGap',
3717
3881
  area: '.',
3718
- partHeights: [options.rowGap],
3719
- elementHeight: options.rowGap,
3882
+ partHeights: [rowGap],
3883
+ elementHeight: rowGap,
3720
3884
  });
3721
3885
  }
3722
3886
  }
@@ -3739,14 +3903,37 @@ const createSwissGrid = (bracketData, options, components) => {
3739
3903
  const groupGapElement = createBracketElement({
3740
3904
  area: '.',
3741
3905
  type: 'roundGap',
3742
- elementHeight: options.rowRoundGap,
3743
- partHeights: [options.rowRoundGap],
3906
+ elementHeight: rowRoundGap,
3907
+ partHeights: [rowRoundGap],
3744
3908
  });
3745
3909
  groupGapSubColumn.pushElement(groupGapElement.element);
3746
3910
  groupGapColumnSection.pushSubColumn(groupGapSubColumn.subColumn);
3747
3911
  pushSection(groupGapColumnSection.masterColumnSection);
3748
3912
  }
3749
3913
  }
3914
+ // Top aligned columns end above the total height, so we fill the remaining space with
3915
+ // one last gap element.
3916
+ const fillerHeight = isStretched ? 0 : heightToFill;
3917
+ if (fillerHeight > 0) {
3918
+ const fillerColumnSection = createBracketMasterColumnSection({
3919
+ type: 'gap',
3920
+ });
3921
+ const fillerSubColumn = createBracketSubColumn({
3922
+ span: {
3923
+ isStart: true,
3924
+ isEnd: true,
3925
+ },
3926
+ });
3927
+ const fillerElement = createBracketElement({
3928
+ area: '.',
3929
+ type: 'colGap',
3930
+ elementHeight: fillerHeight,
3931
+ partHeights: [fillerHeight],
3932
+ });
3933
+ fillerSubColumn.pushElement(fillerElement.element);
3934
+ fillerColumnSection.pushSubColumn(fillerSubColumn.subColumn);
3935
+ pushSection(fillerColumnSection.masterColumnSection);
3936
+ }
3750
3937
  grid.pushMasterColumn(masterColumn);
3751
3938
  if (!isLastGroupMap) {
3752
3939
  grid.pushMasterColumn(createBracketGapMasterColumn({
@@ -3757,7 +3944,6 @@ const createSwissGrid = (bracketData, options, components) => {
3757
3944
  }
3758
3945
  grid.calculateDimensions();
3759
3946
  const finalizedGrid = finalizeBracketGrid(grid);
3760
- console.log(grid);
3761
3947
  return {
3762
3948
  raw: grid,
3763
3949
  columns: finalizedGrid.columns,
@@ -3765,50 +3951,367 @@ const createSwissGrid = (bracketData, options, components) => {
3765
3951
  };
3766
3952
  };
3767
3953
 
3768
- const createJourneyHighlight = (bracketData) => {
3769
- let styles = '';
3770
- for (const participant of bracketData.participants.values()) {
3771
- styles += `
3772
- .et-new-bracket-host:has(.${participant.shortId}:hover) {
3773
- path, .et-bracket-new-element--match {
3774
- opacity: 0.5;
3954
+ const linePath = (from, to, options) => {
3955
+ return path(`M ${from.inline.end} ${from.block.center} L ${to.inline.start} ${to.block.center}`, options.path);
3956
+ };
3957
+
3958
+ const makePos = (dimensions) => ({
3959
+ block: {
3960
+ start: dimensions.top,
3961
+ end: dimensions.top + dimensions.height,
3962
+ center: dimensions.top + dimensions.height / 2,
3963
+ },
3964
+ inline: {
3965
+ start: dimensions.left,
3966
+ end: dimensions.left + dimensions.width,
3967
+ center: dimensions.left + dimensions.width / 2,
3968
+ },
3969
+ });
3970
+ const drawMan = (dimensions) => {
3971
+ const svgParts = [];
3972
+ const continueElement = dimensions.bracketGrid.columns
3973
+ .flatMap((col) => col.elements)
3974
+ .find((el) => el.type === 'continue');
3975
+ const continuePos = continueElement ? makePos(continueElement.dimensions) : null;
3976
+ const continueSources = [];
3977
+ for (const col of dimensions.bracketGrid.columns) {
3978
+ for (const el of col.elements) {
3979
+ if (el.type !== 'match')
3980
+ continue;
3981
+ const currentMatchParticipantsShortIds = [el.match.home?.shortId, el.match.away?.shortId]
3982
+ .filter((id) => !!id)
3983
+ .join(' ');
3984
+ const pathOptions = { ...dimensions.path, className: currentMatchParticipantsShortIds };
3985
+ const currentPos = makePos(el.dimensions);
3986
+ // No lines for the third place match
3987
+ if (el.round.type === COMMON_BRACKET_ROUND_TYPE.THIRD_PLACE)
3988
+ continue;
3989
+ if (continuePos && isBracketContinueMatch(el.match)) {
3990
+ continueSources.push({ pos: currentPos, className: el.match.winner?.shortId || '' });
3991
+ }
3992
+ switch (el.match.relation.type) {
3993
+ case 'nothing-to-one': {
3994
+ continue;
3995
+ }
3996
+ case 'one-to-nothing':
3997
+ case 'one-to-one': {
3998
+ const prev = dimensions.bracketGrid.matchElementMap.getOrThrow(el.match.relation.previousMatch.id);
3999
+ const prevPos = makePos(prev.dimensions);
4000
+ // draw a straight line
4001
+ svgParts.push(linePath(prevPos, currentPos, { path: pathOptions }));
4002
+ break;
4003
+ }
4004
+ case 'two-to-nothing':
4005
+ case 'two-to-one': {
4006
+ const prevUpper = dimensions.bracketGrid.matchElementMap.getOrThrow(el.match.relation.previousUpperMatch.id);
4007
+ const prevLower = dimensions.bracketGrid.matchElementMap.getOrThrow(el.match.relation.previousLowerMatch.id);
4008
+ const prevUpperPos = makePos(prevUpper.dimensions);
4009
+ const prevLowerPos = makePos(prevLower.dimensions);
4010
+ const isLowerUpperMerger = el.match.relation.previousLowerRound.id !== el.match.relation.previousUpperRound.id;
4011
+ const invertCurve = el.round.mirrorRoundType === BRACKET_ROUND_MIRROR_TYPE.RIGHT;
4012
+ const curveOptions = {
4013
+ ...dimensions.curve,
4014
+ inverted: invertCurve,
4015
+ path: { ...dimensions.path, className: '' },
4016
+ };
4017
+ if (isLowerUpperMerger) {
4018
+ svgParts.push(linePath(prevUpperPos, currentPos, { path: pathOptions }));
4019
+ }
4020
+ else {
4021
+ // draw two lines that merge into one in the middle
4022
+ svgParts.push(curvePath(prevUpperPos, currentPos, 'down', {
4023
+ ...curveOptions,
4024
+ path: {
4025
+ ...curveOptions.path,
4026
+ className: el.match.relation.previousUpperMatch.winner?.shortId || '',
4027
+ },
4028
+ }));
4029
+ }
4030
+ svgParts.push(curvePath(prevLowerPos, currentPos, 'up', {
4031
+ ...curveOptions,
4032
+ path: {
4033
+ ...curveOptions.path,
4034
+ className: el.match.relation.previousLowerMatch.winner?.shortId || '',
4035
+ },
4036
+ }));
4037
+ if (el.round.mirrorRoundType === BRACKET_ROUND_MIRROR_TYPE.RIGHT &&
4038
+ el.match.relation.type === 'two-to-one' &&
4039
+ el.match.relation.nextRound.mirrorRoundType === null) {
4040
+ // draw a straight line for the special case of connecting the final match to the mirrored semi final match
4041
+ const next = dimensions.bracketGrid.matchElementMap.getOrThrow(el.match.relation.nextMatch.id);
4042
+ const nextPos = makePos(next.dimensions);
4043
+ svgParts.push(linePath(nextPos, currentPos, { path: pathOptions }));
4044
+ }
4045
+ break;
4046
+ }
4047
+ }
4048
+ }
4049
+ }
4050
+ if (continuePos && continueSources.length) {
4051
+ const continuePathOptions = dimensions.continuePath ?? dimensions.path;
4052
+ const sharedPathOptions = { ...continuePathOptions, className: '' };
4053
+ const curveAmount = dimensions.curve.lineStartingCurveAmount;
4054
+ const trunkInline = continuePos.inline.start - dimensions.columnGap / 2;
4055
+ const continueBlockCenter = continuePos.block.center;
4056
+ const sourceBlocks = continueSources.map((source) => source.pos.block.center);
4057
+ const firstSourceBlock = Math.min(...sourceBlocks);
4058
+ const lastSourceBlock = Math.max(...sourceBlocks);
4059
+ const trunkBlocks = [continueBlockCenter];
4060
+ for (const source of continueSources) {
4061
+ const sourceBlockCenter = source.pos.block.center;
4062
+ const blockDistance = continueBlockCenter - sourceBlockCenter;
4063
+ const sourcePathOptions = { ...continuePathOptions, className: source.className };
4064
+ const isTrunkCorner = (sourceBlockCenter === firstSourceBlock && blockDistance > 0.5) ||
4065
+ (sourceBlockCenter === lastSourceBlock && blockDistance < -0.5);
4066
+ if (!isTrunkCorner) {
4067
+ svgParts.push(path(`M ${source.pos.inline.end} ${sourceBlockCenter} H ${trunkInline}`, sourcePathOptions));
4068
+ trunkBlocks.push(sourceBlockCenter);
3775
4069
  }
4070
+ else {
4071
+ const curve = Math.min(curveAmount, Math.abs(blockDistance));
4072
+ const curveEndBlock = sourceBlockCenter + curve * Math.sign(blockDistance);
4073
+ svgParts.push(path(`M ${source.pos.inline.end} ${sourceBlockCenter}
4074
+ H ${trunkInline - curve}
4075
+ Q ${trunkInline} ${sourceBlockCenter}, ${trunkInline} ${curveEndBlock}`, sourcePathOptions));
4076
+ trunkBlocks.push(curveEndBlock);
4077
+ }
4078
+ }
4079
+ const trunkBlockStart = Math.min(...trunkBlocks);
4080
+ const trunkBlockEnd = Math.max(...trunkBlocks);
4081
+ if (trunkBlockEnd - trunkBlockStart > 0.5) {
4082
+ svgParts.push(path(`M ${trunkInline} ${trunkBlockStart} V ${trunkBlockEnd}`, sharedPathOptions));
4083
+ }
4084
+ svgParts.push(path(`M ${trunkInline} ${continueBlockCenter} H ${continuePos.inline.start}`, sharedPathOptions));
4085
+ }
4086
+ return svgParts.join('');
4087
+ };
3776
4088
 
3777
- .${participant.shortId} {
3778
- opacity: 1 !important;
4089
+ // Every finalized column of a swiss grid is one group section. The connection lines run
4090
+ // from group to group instead of match to match: the winners of group (w-l) move to group
4091
+ // (w+1-l) inside the next round, the losers move to group (w-l+1).
4092
+ const collectSwissRoundGeometries = (bracketGrid) => {
4093
+ const rounds = new Map();
4094
+ for (const column of bracketGrid.columns) {
4095
+ const matchElements = column.elements.filter((element) => element.type === 'match');
4096
+ const group = matchElements[0]?.roundSwissGroup;
4097
+ const round = matchElements[0]?.round;
4098
+ if (!group || !round)
4099
+ continue;
4100
+ const [wins, losses] = group.id.split('-').map(Number);
4101
+ if (wins === undefined || losses === undefined || isNaN(wins) || isNaN(losses)) {
4102
+ throw new Error(`Unable to parse wins and losses from Swiss group id: ${group.id}`);
4103
+ }
4104
+ const matchesTop = Math.min(...matchElements.map((element) => element.dimensions.top));
4105
+ const matchesBottom = Math.max(...matchElements.map((element) => element.dimensions.top + element.dimensions.height));
4106
+ const winnerShortIds = [];
4107
+ const loserShortIds = [];
4108
+ for (const element of matchElements) {
4109
+ if (!element.match.winner)
4110
+ continue;
4111
+ const winner = element.match.winner;
4112
+ const loser = element.match.home?.id === winner.id ? element.match.away : element.match.home;
4113
+ winnerShortIds.push(winner.shortId);
4114
+ if (loser)
4115
+ loserShortIds.push(loser.shortId);
4116
+ }
4117
+ // The lines attach to the group border, which wraps the matches plus the group
4118
+ // padding and therefore matches the section bounds horizontally.
4119
+ const position = {
4120
+ block: {
4121
+ start: matchesTop,
4122
+ end: matchesBottom,
4123
+ center: (matchesTop + matchesBottom) / 2,
4124
+ },
4125
+ inline: {
4126
+ start: column.dimensions.left,
4127
+ end: column.dimensions.left + column.dimensions.width,
4128
+ center: column.dimensions.left + column.dimensions.width / 2,
4129
+ },
4130
+ };
4131
+ let roundGeometry = rounds.get(round.id);
4132
+ if (!roundGeometry) {
4133
+ roundGeometry = { groups: new Map() };
4134
+ rounds.set(round.id, roundGeometry);
4135
+ }
4136
+ roundGeometry.groups.set(group.id, {
4137
+ id: group.id,
4138
+ wins,
4139
+ losses,
4140
+ colorType: getSwissGroupColorType(wins, losses),
4141
+ position,
4142
+ winnerShortIds,
4143
+ loserShortIds,
4144
+ });
4145
+ }
4146
+ // The finalized columns are ordered left to right, so first appearance equals round order
4147
+ return Array.from(rounds.values());
4148
+ };
4149
+ const groupBorderRect = (group, border, color) => {
4150
+ // The group box wraps the matches plus the group padding plus the border itself. The
4151
+ // rect is inset by half the stroke width so the stroke renders fully inside the group
4152
+ // bounds instead of getting cut off at the edges of the bracket container.
4153
+ const boxPadding = border.padding + border.width;
4154
+ const strokeInset = border.width / 2;
4155
+ const x = group.position.inline.start + strokeInset;
4156
+ const y = group.position.block.start - boxPadding + strokeInset;
4157
+ const width = group.position.inline.end - group.position.inline.start - border.width;
4158
+ const height = group.position.block.end - group.position.block.start + boxPadding * 2 - border.width;
4159
+ return `<rect x="${x}" y="${y}" width="${width}" height="${height}" rx="${border.radius}" stroke="${color ?? 'currentColor'}" fill="none" stroke-width="${border.width}" class="et-bracket-new-swiss-group-border et-bracket-new-swiss-group-border--${group.id} et-bracket-new-swiss-group-border--${group.colorType}" />`;
4160
+ };
4161
+ // A horizontal gradient for the connection lines: they leave the source group in its
4162
+ // color, fade to the neutral color towards their vertical jog in the middle and fade into
4163
+ // the target group color on the second half. The connection lines always run from left to
4164
+ // right, so user space coordinates can be used (they also work for straight lines, where
4165
+ // the bounding box has no height).
4166
+ const lineGradientDef = (id, fromX, toX, from, neutral, to) => `<linearGradient id="${id}" gradientUnits="userSpaceOnUse" x1="${fromX}" y1="0" x2="${toX}" y2="0"><stop offset="0%" stop-color="${from}" /><stop offset="50%" stop-color="${neutral}" /><stop offset="100%" stop-color="${to}" /></linearGradient>`;
4167
+ const drawSwissMan = (dimensions) => {
4168
+ const svgParts = [];
4169
+ const gradientDefs = [];
4170
+ const roundGeometries = collectSwissRoundGeometries(dimensions.bracketGrid);
4171
+ const colors = dimensions.colors;
4172
+ for (const roundGeometry of roundGeometries) {
4173
+ for (const group of roundGeometry.groups.values()) {
4174
+ svgParts.push(groupBorderRect(group, dimensions.groupBorder, colors?.[group.colorType]));
4175
+ }
4176
+ }
4177
+ const curveOptions = {
4178
+ lineStartingCurveAmount: dimensions.curve.lineStartingCurveAmount,
4179
+ lineEndingCurveAmount: dimensions.curve.lineStartingCurveAmount,
4180
+ };
4181
+ let edgeIndex = 0;
4182
+ for (const [roundIndex, roundGeometry] of roundGeometries.entries()) {
4183
+ const nextRoundGeometry = roundGeometries[roundIndex + 1];
4184
+ if (!nextRoundGeometry)
4185
+ break;
4186
+ for (const group of roundGeometry.groups.values()) {
4187
+ const targets = [
4188
+ { geometry: nextRoundGeometry.groups.get(`${group.wins + 1}-${group.losses}`), shortIds: group.winnerShortIds },
4189
+ { geometry: nextRoundGeometry.groups.get(`${group.wins}-${group.losses + 1}`), shortIds: group.loserShortIds },
4190
+ ];
4191
+ for (const { geometry: target, shortIds } of targets) {
4192
+ if (!target)
4193
+ continue;
4194
+ const neutralColor = colors?.neutral;
4195
+ const fromColor = colors?.[group.colorType] ?? neutralColor;
4196
+ const toColor = colors?.[target.colorType] ?? neutralColor;
4197
+ let stroke = neutralColor;
4198
+ if (neutralColor && (fromColor !== neutralColor || toColor !== neutralColor)) {
4199
+ const gradientId = `${dimensions.idPrefix}-swiss-line-${edgeIndex}`;
4200
+ const fromX = group.position.inline.end;
4201
+ const toX = target.position.inline.start;
4202
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4203
+ gradientDefs.push(lineGradientDef(gradientId, fromX, toX, fromColor, neutralColor, toColor));
4204
+ stroke = `url(#${gradientId})`;
4205
+ }
4206
+ const pathOptions = { ...dimensions.path, className: shortIds.join(' '), stroke };
4207
+ const blockDelta = target.position.block.center - group.position.block.center;
4208
+ if (Math.abs(blockDelta) < 0.5) {
4209
+ svgParts.push(linePath(group.position, target.position, { path: pathOptions }));
4210
+ }
4211
+ else {
4212
+ svgParts.push(curvePath(group.position, target.position, blockDelta > 0 ? 'down' : 'up', {
4213
+ ...curveOptions,
4214
+ path: pathOptions,
4215
+ }));
4216
+ }
4217
+ edgeIndex++;
3779
4218
  }
3780
- }
3781
- `;
4219
+ }
3782
4220
  }
3783
- return styles.replace(/\s+/g, ' ').trim();
4221
+ const defs = gradientDefs.length ? `<defs>${gradientDefs.join('')}</defs>` : '';
4222
+ return defs + svgParts.join('');
3784
4223
  };
3785
4224
 
4225
+ const PARTICIPANT_SHORT_ID_PATTERN = /^p\d+$/;
4226
+ const JOURNEY_HOVER_HOST_CLASS = 'et-new-bracket-host--journey-hover';
4227
+ const JOURNEY_ACTIVE_ELEMENT_CLASS = 'et-bracket-new-journey-active';
4228
+ const getParticipantShortIds = (element) => element ? Array.from(element.classList).filter((cls) => PARTICIPANT_SHORT_ID_PATTERN.test(cls)) : [];
4229
+ const setupJourneyHighlight = (host, renderer) => {
4230
+ let activeElements = [];
4231
+ let activeShortIds = [];
4232
+ const clear = () => {
4233
+ if (!activeElements.length)
4234
+ return;
4235
+ for (const el of activeElements) {
4236
+ renderer.removeClass(el, JOURNEY_ACTIVE_ELEMENT_CLASS);
4237
+ }
4238
+ renderer.removeClass(host, JOURNEY_HOVER_HOST_CLASS);
4239
+ activeElements = [];
4240
+ activeShortIds = [];
4241
+ };
4242
+ const activate = (shortIds) => {
4243
+ const isSame = shortIds.length === activeShortIds.length && shortIds.every((id, index) => id === activeShortIds[index]);
4244
+ if (isSame)
4245
+ return;
4246
+ clear();
4247
+ const elements = [];
4248
+ for (const shortId of shortIds) {
4249
+ elements.push(...Array.from(host.querySelectorAll(`.${shortId}`)));
4250
+ }
4251
+ for (const el of elements) {
4252
+ renderer.addClass(el, JOURNEY_ACTIVE_ELEMENT_CLASS);
4253
+ }
4254
+ renderer.addClass(host, JOURNEY_HOVER_HOST_CLASS);
4255
+ activeElements = elements;
4256
+ activeShortIds = shortIds;
4257
+ };
4258
+ const onMouseOver = (event) => {
4259
+ const target = event.target;
4260
+ const container = target?.closest('.et-bracket-new-element--match, path') ?? null;
4261
+ const shortIds = getParticipantShortIds(container);
4262
+ if (shortIds.length) {
4263
+ activate(shortIds);
4264
+ }
4265
+ else {
4266
+ clear();
4267
+ }
4268
+ };
4269
+ const onMouseLeave = () => clear();
4270
+ const removeMouseOverListener = renderer.listen(host, 'mouseover', onMouseOver);
4271
+ const removeMouseLeaveListener = renderer.listen(host, 'mouseleave', onMouseLeave);
4272
+ return () => {
4273
+ removeMouseOverListener();
4274
+ removeMouseLeaveListener();
4275
+ clear();
4276
+ };
4277
+ };
4278
+
4279
+ const [provideNewBracketConfig, injectNewBracketConfig] = createStaticRootProvider({}, { name: 'NewBracketConfig' });
4280
+
3786
4281
  class NewBracketComponent {
3787
4282
  constructor() {
3788
4283
  this.domSanitizer = inject(DomSanitizer);
3789
4284
  this.elementId = createComponentId('et-new-bracket');
4285
+ this.config = injectNewBracketConfig();
3790
4286
  this.source = input.required(...(ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []));
3791
- this.columnWidth = input(250, { ...(ngDevMode ? { debugName: "columnWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3792
- this.matchHeight = input(75, { ...(ngDevMode ? { debugName: "matchHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3793
- this.finalMatchHeight = input(75, { ...(ngDevMode ? { debugName: "finalMatchHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3794
- this.finalColumnWidth = input(300, { ...(ngDevMode ? { debugName: "finalColumnWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3795
- this.roundHeaderHeight = input(50, { ...(ngDevMode ? { debugName: "roundHeaderHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3796
- this.roundHeaderGap = input(20, { ...(ngDevMode ? { debugName: "roundHeaderGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3797
- this.columnGap = input(60, { ...(ngDevMode ? { debugName: "columnGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3798
- this.rowGap = input(30, { ...(ngDevMode ? { debugName: "rowGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3799
- this.rowRoundGap = input(20, { ...(ngDevMode ? { debugName: "rowRoundGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3800
- this.lineStartingCurveAmount = input(10, { ...(ngDevMode ? { debugName: "lineStartingCurveAmount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3801
- this.lineEndingCurveAmount = input(0, { ...(ngDevMode ? { debugName: "lineEndingCurveAmount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3802
- this.lineWidth = input(2, { ...(ngDevMode ? { debugName: "lineWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3803
- this.lineDashArray = input(0, { ...(ngDevMode ? { debugName: "lineDashArray" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3804
- this.lineDashOffset = input(0, { ...(ngDevMode ? { debugName: "lineDashOffset" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3805
- this.disableJourneyHighlight = input(false, { ...(ngDevMode ? { debugName: "disableJourneyHighlight" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3806
- this.swissGroupPadding = input(10, { ...(ngDevMode ? { debugName: "swissGroupPadding" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3807
- this.layout = input(BRACKET_DATA_LAYOUT.LEFT_TO_RIGHT, ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
3808
- this.hideRoundHeaders = input(false, { ...(ngDevMode ? { debugName: "hideRoundHeaders" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4287
+ this.columnWidth = input(this.config.columnWidth ?? 250, { ...(ngDevMode ? { debugName: "columnWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4288
+ this.matchHeight = input(this.config.matchHeight ?? 75, { ...(ngDevMode ? { debugName: "matchHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4289
+ this.finalMatchHeight = input(this.config.finalMatchHeight ?? 75, { ...(ngDevMode ? { debugName: "finalMatchHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4290
+ this.finalColumnWidth = input(this.config.finalColumnWidth ?? 300, { ...(ngDevMode ? { debugName: "finalColumnWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4291
+ this.roundHeaderHeight = input(this.config.roundHeaderHeight ?? 50, { ...(ngDevMode ? { debugName: "roundHeaderHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4292
+ this.roundHeaderGap = input(this.config.roundHeaderGap ?? 20, { ...(ngDevMode ? { debugName: "roundHeaderGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4293
+ this.columnGap = input(this.config.columnGap ?? 60, { ...(ngDevMode ? { debugName: "columnGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4294
+ this.rowGap = input(this.config.rowGap ?? 30, { ...(ngDevMode ? { debugName: "rowGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4295
+ this.rowRoundGap = input(this.config.rowRoundGap ?? 20, { ...(ngDevMode ? { debugName: "rowRoundGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4296
+ this.lineStartingCurveAmount = input(this.config.lineStartingCurveAmount ?? 10, { ...(ngDevMode ? { debugName: "lineStartingCurveAmount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4297
+ this.lineEndingCurveAmount = input(this.config.lineEndingCurveAmount ?? 0, { ...(ngDevMode ? { debugName: "lineEndingCurveAmount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4298
+ this.lineWidth = input(this.config.lineWidth ?? 2, { ...(ngDevMode ? { debugName: "lineWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4299
+ this.lineDashArray = input(this.config.lineDashArray ?? 0, { ...(ngDevMode ? { debugName: "lineDashArray" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4300
+ this.lineDashOffset = input(this.config.lineDashOffset ?? 0, { ...(ngDevMode ? { debugName: "lineDashOffset" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4301
+ this.disableJourneyHighlight = input(this.config.disableJourneyHighlight ?? false, { ...(ngDevMode ? { debugName: "disableJourneyHighlight" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4302
+ this.swissGroupPadding = input(this.config.swissGroupPadding ?? 10, { ...(ngDevMode ? { debugName: "swissGroupPadding" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4303
+ this.swissGroupBorderRadius = input(this.config.swissGroupBorderRadius ?? 12, { ...(ngDevMode ? { debugName: "swissGroupBorderRadius" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4304
+ this.swissColors = input(this.config.swiss?.colors, ...(ngDevMode ? [{ debugName: "swissColors" }] : /* istanbul ignore next */ []));
4305
+ this.layout = input(this.config.layout ?? BRACKET_DATA_LAYOUT.LEFT_TO_RIGHT, ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
4306
+ this.hideRoundHeaders = input(this.config.hideRoundHeaders ?? false, { ...(ngDevMode ? { debugName: "hideRoundHeaders" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4307
+ this.showContinueElement = input(this.config.showContinueElement ?? false, { ...(ngDevMode ? { debugName: "showContinueElement" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4308
+ this.continueColumnWidth = input(this.config.continueColumnWidth ?? 250, { ...(ngDevMode ? { debugName: "continueColumnWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4309
+ this.continueElementHeight = input(this.config.continueElementHeight ?? 75, { ...(ngDevMode ? { debugName: "continueElementHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
4310
+ this.continueLineDashArray = input(this.config.continueLineDashArray ?? 6, { ...(ngDevMode ? { debugName: "continueLineDashArray" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3809
4311
  this.roundHeaderComponent = input(...(ngDevMode ? [undefined, { debugName: "roundHeaderComponent" }] : /* istanbul ignore next */ []));
3810
4312
  this.matchComponent = input(...(ngDevMode ? [undefined, { debugName: "matchComponent" }] : /* istanbul ignore next */ []));
3811
4313
  this.finalMatchComponent = input(...(ngDevMode ? [undefined, { debugName: "finalMatchComponent" }] : /* istanbul ignore next */ []));
4314
+ this.continueComponent = input(...(ngDevMode ? [undefined, { debugName: "continueComponent" }] : /* istanbul ignore next */ []));
3812
4315
  this.bracketData = computed(() => createNewBracket(this.source(), { layout: this.layout() }), ...(ngDevMode ? [{ debugName: "bracketData" }] : /* istanbul ignore next */ []));
3813
4316
  this.swissGroups = computed(() => generateBracketRoundSwissGroupMaps(this.bracketData()), ...(ngDevMode ? [{ debugName: "swissGroups" }] : /* istanbul ignore next */ []));
3814
4317
  this.bracketGrid = computed(() => {
@@ -3826,11 +4329,26 @@ class NewBracketComponent {
3826
4329
  finalColumnWidth: this.finalColumnWidth(),
3827
4330
  roundHeaderGap: this.hideRoundHeaders() ? 0 : this.roundHeaderGap(),
3828
4331
  swissGroupPadding: this.swissGroupPadding(),
4332
+ swissGroupBorderWidth: this.lineWidth(),
4333
+ continueElement: this.showContinueElement() && this.layout() === BRACKET_DATA_LAYOUT.LEFT_TO_RIGHT
4334
+ ? {
4335
+ columnWidth: this.continueColumnWidth(),
4336
+ elementHeight: this.continueElementHeight(),
4337
+ }
4338
+ : null,
3829
4339
  };
4340
+ const swissConfig = bracketData.mode === TOURNAMENT_MODE.SWISS_WITH_ELIMINATION ? this.config.swiss : undefined;
3830
4341
  const components = {
3831
- match: this.matchComponent() ?? NewBracketDefaultMatchComponent,
3832
- finalMatch: this.finalMatchComponent() ?? NewBracketDefaultMatchComponent,
3833
- roundHeader: this.roundHeaderComponent() ?? NewBracketDefaultRoundHeaderComponent,
4342
+ match: this.matchComponent() ??
4343
+ swissConfig?.matchComponent ??
4344
+ this.config.matchComponent ??
4345
+ NewBracketDefaultMatchComponent,
4346
+ finalMatch: this.finalMatchComponent() ?? this.config.finalMatchComponent ?? NewBracketDefaultMatchComponent,
4347
+ roundHeader: this.roundHeaderComponent() ??
4348
+ swissConfig?.roundHeaderComponent ??
4349
+ this.config.roundHeaderComponent ??
4350
+ NewBracketDefaultRoundHeaderComponent,
4351
+ continue: this.continueComponent() ?? this.config.continueComponent ?? NewBracketDefaultContinueComponent,
3834
4352
  };
3835
4353
  switch (bracketData.mode) {
3836
4354
  case TOURNAMENT_MODE.DOUBLE_ELIMINATION:
@@ -3843,8 +4361,28 @@ class NewBracketComponent {
3843
4361
  }, ...(ngDevMode ? [{ debugName: "bracketGrid" }] : /* istanbul ignore next */ []));
3844
4362
  this.drawManData = computed(() => {
3845
4363
  const bracketGrid = this.bracketGrid();
3846
- if (!bracketGrid || this.bracketData().mode === TOURNAMENT_MODE.SWISS_WITH_ELIMINATION)
4364
+ if (!bracketGrid)
3847
4365
  return '';
4366
+ if (this.bracketData().mode === TOURNAMENT_MODE.SWISS_WITH_ELIMINATION) {
4367
+ return drawSwissMan({
4368
+ bracketGrid,
4369
+ curve: {
4370
+ lineStartingCurveAmount: this.lineStartingCurveAmount(),
4371
+ },
4372
+ path: {
4373
+ dashArray: this.lineDashArray(),
4374
+ dashOffset: this.lineDashOffset(),
4375
+ width: this.lineWidth(),
4376
+ },
4377
+ groupBorder: {
4378
+ padding: this.swissGroupPadding(),
4379
+ radius: this.swissGroupBorderRadius(),
4380
+ width: this.lineWidth(),
4381
+ },
4382
+ colors: this.swissColors(),
4383
+ idPrefix: this.elementId,
4384
+ });
4385
+ }
3848
4386
  return drawMan({
3849
4387
  columnGap: this.columnGap(),
3850
4388
  upperLowerGap: this.rowRoundGap(),
@@ -3862,64 +4400,54 @@ class NewBracketComponent {
3862
4400
  dashOffset: this.lineDashOffset(),
3863
4401
  width: this.lineWidth(),
3864
4402
  },
4403
+ continuePath: {
4404
+ dashArray: this.continueLineDashArray(),
4405
+ dashOffset: this.lineDashOffset(),
4406
+ width: this.lineWidth(),
4407
+ },
3865
4408
  });
3866
4409
  }, ...(ngDevMode ? [{ debugName: "drawManData" }] : /* istanbul ignore next */ []));
3867
4410
  this.svgContent = computed(() => this.domSanitizer.bypassSecurityTrustHtml(this.drawManData()), ...(ngDevMode ? [{ debugName: "svgContent" }] : /* istanbul ignore next */ []));
3868
- this.journeyHighlight = computed(() => this.disableJourneyHighlight() ? null : createJourneyHighlight(this.bracketData()), ...(ngDevMode ? [{ debugName: "journeyHighlight" }] : /* istanbul ignore next */ []));
3869
4411
  this.setupJourneyHighlight();
3870
4412
  }
3871
4413
  setupJourneyHighlight() {
3872
4414
  const renderer = injectRenderer();
3873
- const doc = inject(DOCUMENT);
3874
- const styleId = `et-new-bracket-journey-highlight--${this.elementId}`;
3875
- let oldStyleEl = null;
4415
+ const ngZone = inject(NgZone);
4416
+ const host = inject((ElementRef)).nativeElement;
3876
4417
  effect(() => {
3877
- const newHighlightStyle = this.journeyHighlight();
3878
- const head = doc.head;
3879
- if (oldStyleEl) {
3880
- renderer.removeChild(head, oldStyleEl);
3881
- }
3882
- if (newHighlightStyle) {
3883
- const el = renderer.createElement('style');
3884
- renderer.setAttribute(el, 'id', styleId);
3885
- renderer.appendChild(el, renderer.createText(newHighlightStyle));
3886
- renderer.appendChild(head, el);
3887
- oldStyleEl = el;
3888
- }
3889
- else {
3890
- oldStyleEl = null;
3891
- }
3892
- return () => {
3893
- if (oldStyleEl) {
3894
- renderer.removeChild(head, oldStyleEl);
3895
- oldStyleEl = null;
3896
- }
3897
- };
4418
+ if (this.disableJourneyHighlight())
4419
+ return;
4420
+ const teardown = ngZone.runOutsideAngular(() => setupJourneyHighlight(host, renderer));
4421
+ return () => teardown();
3898
4422
  });
3899
4423
  }
3900
4424
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: NewBracketComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3901
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: NewBracketComponent, isStandalone: true, selector: "et-new-bracket", inputs: { source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: true, transformFunction: null }, columnWidth: { classPropertyName: "columnWidth", publicName: "columnWidth", isSignal: true, isRequired: false, transformFunction: null }, matchHeight: { classPropertyName: "matchHeight", publicName: "matchHeight", isSignal: true, isRequired: false, transformFunction: null }, finalMatchHeight: { classPropertyName: "finalMatchHeight", publicName: "finalMatchHeight", isSignal: true, isRequired: false, transformFunction: null }, finalColumnWidth: { classPropertyName: "finalColumnWidth", publicName: "finalColumnWidth", isSignal: true, isRequired: false, transformFunction: null }, roundHeaderHeight: { classPropertyName: "roundHeaderHeight", publicName: "roundHeaderHeight", isSignal: true, isRequired: false, transformFunction: null }, roundHeaderGap: { classPropertyName: "roundHeaderGap", publicName: "roundHeaderGap", isSignal: true, isRequired: false, transformFunction: null }, columnGap: { classPropertyName: "columnGap", publicName: "columnGap", isSignal: true, isRequired: false, transformFunction: null }, rowGap: { classPropertyName: "rowGap", publicName: "rowGap", isSignal: true, isRequired: false, transformFunction: null }, rowRoundGap: { classPropertyName: "rowRoundGap", publicName: "rowRoundGap", isSignal: true, isRequired: false, transformFunction: null }, lineStartingCurveAmount: { classPropertyName: "lineStartingCurveAmount", publicName: "lineStartingCurveAmount", isSignal: true, isRequired: false, transformFunction: null }, lineEndingCurveAmount: { classPropertyName: "lineEndingCurveAmount", publicName: "lineEndingCurveAmount", isSignal: true, isRequired: false, transformFunction: null }, lineWidth: { classPropertyName: "lineWidth", publicName: "lineWidth", isSignal: true, isRequired: false, transformFunction: null }, lineDashArray: { classPropertyName: "lineDashArray", publicName: "lineDashArray", isSignal: true, isRequired: false, transformFunction: null }, lineDashOffset: { classPropertyName: "lineDashOffset", publicName: "lineDashOffset", isSignal: true, isRequired: false, transformFunction: null }, disableJourneyHighlight: { classPropertyName: "disableJourneyHighlight", publicName: "disableJourneyHighlight", isSignal: true, isRequired: false, transformFunction: null }, swissGroupPadding: { classPropertyName: "swissGroupPadding", publicName: "swissGroupPadding", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, hideRoundHeaders: { classPropertyName: "hideRoundHeaders", publicName: "hideRoundHeaders", isSignal: true, isRequired: false, transformFunction: null }, roundHeaderComponent: { classPropertyName: "roundHeaderComponent", publicName: "roundHeaderComponent", isSignal: true, isRequired: false, transformFunction: null }, matchComponent: { classPropertyName: "matchComponent", publicName: "matchComponent", isSignal: true, isRequired: false, transformFunction: null }, finalMatchComponent: { classPropertyName: "finalMatchComponent", publicName: "finalMatchComponent", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "et-new-bracket-host" }, ngImport: i0, template: "@if (bracketGrid(); as grid) {\n <section\n [style.width.px]=\"grid.raw.grid.dimensions.width\"\n [style.height.px]=\"grid.raw.grid.dimensions.height\"\n class=\"et-bracket-new et-bracket-new--{{ bracketData().mode }}\"\n >\n <svg [innerHTML]=\"svgContent()\" class=\"et-bracket-new-svg\" xmlns=\"http://www.w3.org/2000/svg\" />\n\n @for (round of grid.columns; track $index) {\n <ul\n [style.width.px]=\"round.dimensions.width\"\n [style.height.px]=\"round.dimensions.height\"\n [style.top.px]=\"round.dimensions.top\"\n [style.left.px]=\"round.dimensions.left\"\n class=\"et-bracket-new-round\"\n >\n @for (element of round.elements; track $index) {\n @let inputs =\n element.type === 'header'\n ? { bracketRound: element.round, bracketRoundSwissGroup: element.roundSwissGroup }\n : {\n bracketRound: element.round,\n bracketMatch: element.match,\n bracketRoundSwissGroup: element.roundSwissGroup,\n };\n\n @let highlightClass = element.type === 'header' ? '' : element.classes;\n\n <li\n [style.width.px]=\"element.dimensions.width\"\n [style.height.px]=\"element.dimensions.height\"\n [style.top.px]=\"element.dimensions.top - round.dimensions.top\"\n [style.left.px]=\"element.dimensions.left - round.dimensions.left\"\n class=\"et-bracket-new-element et-bracket-new-element--{{ element.type }} {{ highlightClass }}\"\n >\n <ng-container *ngComponentOutlet=\"element.component; inputs: inputs\" />\n </li>\n }\n </ul>\n }\n </section>\n}\n", styles: [".et-bracket-new{position:relative;--bracket-line-color: red}.et-bracket-new-round{position:absolute;list-style:none;margin:0;padding:0}.et-bracket-new-element{position:absolute;list-style:none;margin:0;padding:0;transition:opacity .2s}.et-bracket-new-svg{inline-size:100%;block-size:100%;position:absolute}.et-bracket-new-svg path{color:var(--bracket-line-color);transition:opacity .2s}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
4425
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: NewBracketComponent, isStandalone: true, selector: "et-new-bracket", inputs: { source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: true, transformFunction: null }, columnWidth: { classPropertyName: "columnWidth", publicName: "columnWidth", isSignal: true, isRequired: false, transformFunction: null }, matchHeight: { classPropertyName: "matchHeight", publicName: "matchHeight", isSignal: true, isRequired: false, transformFunction: null }, finalMatchHeight: { classPropertyName: "finalMatchHeight", publicName: "finalMatchHeight", isSignal: true, isRequired: false, transformFunction: null }, finalColumnWidth: { classPropertyName: "finalColumnWidth", publicName: "finalColumnWidth", isSignal: true, isRequired: false, transformFunction: null }, roundHeaderHeight: { classPropertyName: "roundHeaderHeight", publicName: "roundHeaderHeight", isSignal: true, isRequired: false, transformFunction: null }, roundHeaderGap: { classPropertyName: "roundHeaderGap", publicName: "roundHeaderGap", isSignal: true, isRequired: false, transformFunction: null }, columnGap: { classPropertyName: "columnGap", publicName: "columnGap", isSignal: true, isRequired: false, transformFunction: null }, rowGap: { classPropertyName: "rowGap", publicName: "rowGap", isSignal: true, isRequired: false, transformFunction: null }, rowRoundGap: { classPropertyName: "rowRoundGap", publicName: "rowRoundGap", isSignal: true, isRequired: false, transformFunction: null }, lineStartingCurveAmount: { classPropertyName: "lineStartingCurveAmount", publicName: "lineStartingCurveAmount", isSignal: true, isRequired: false, transformFunction: null }, lineEndingCurveAmount: { classPropertyName: "lineEndingCurveAmount", publicName: "lineEndingCurveAmount", isSignal: true, isRequired: false, transformFunction: null }, lineWidth: { classPropertyName: "lineWidth", publicName: "lineWidth", isSignal: true, isRequired: false, transformFunction: null }, lineDashArray: { classPropertyName: "lineDashArray", publicName: "lineDashArray", isSignal: true, isRequired: false, transformFunction: null }, lineDashOffset: { classPropertyName: "lineDashOffset", publicName: "lineDashOffset", isSignal: true, isRequired: false, transformFunction: null }, disableJourneyHighlight: { classPropertyName: "disableJourneyHighlight", publicName: "disableJourneyHighlight", isSignal: true, isRequired: false, transformFunction: null }, swissGroupPadding: { classPropertyName: "swissGroupPadding", publicName: "swissGroupPadding", isSignal: true, isRequired: false, transformFunction: null }, swissGroupBorderRadius: { classPropertyName: "swissGroupBorderRadius", publicName: "swissGroupBorderRadius", isSignal: true, isRequired: false, transformFunction: null }, swissColors: { classPropertyName: "swissColors", publicName: "swissColors", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, hideRoundHeaders: { classPropertyName: "hideRoundHeaders", publicName: "hideRoundHeaders", isSignal: true, isRequired: false, transformFunction: null }, showContinueElement: { classPropertyName: "showContinueElement", publicName: "showContinueElement", isSignal: true, isRequired: false, transformFunction: null }, continueColumnWidth: { classPropertyName: "continueColumnWidth", publicName: "continueColumnWidth", isSignal: true, isRequired: false, transformFunction: null }, continueElementHeight: { classPropertyName: "continueElementHeight", publicName: "continueElementHeight", isSignal: true, isRequired: false, transformFunction: null }, continueLineDashArray: { classPropertyName: "continueLineDashArray", publicName: "continueLineDashArray", isSignal: true, isRequired: false, transformFunction: null }, roundHeaderComponent: { classPropertyName: "roundHeaderComponent", publicName: "roundHeaderComponent", isSignal: true, isRequired: false, transformFunction: null }, matchComponent: { classPropertyName: "matchComponent", publicName: "matchComponent", isSignal: true, isRequired: false, transformFunction: null }, finalMatchComponent: { classPropertyName: "finalMatchComponent", publicName: "finalMatchComponent", isSignal: true, isRequired: false, transformFunction: null }, continueComponent: { classPropertyName: "continueComponent", publicName: "continueComponent", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "et-new-bracket-host" }, ngImport: i0, template: "@if (bracketGrid(); as grid) {\n <section\n [style.width.px]=\"grid.raw.grid.dimensions.width\"\n [style.height.px]=\"grid.raw.grid.dimensions.height\"\n class=\"et-bracket-new et-bracket-new--{{ bracketData().mode }}\"\n >\n <svg [innerHTML]=\"svgContent()\" class=\"et-bracket-new-svg\" xmlns=\"http://www.w3.org/2000/svg\" />\n\n @for (round of grid.columns; track $index) {\n <ul\n [style.width.px]=\"round.dimensions.width\"\n [style.height.px]=\"round.dimensions.height\"\n [style.top.px]=\"round.dimensions.top\"\n [style.left.px]=\"round.dimensions.left\"\n class=\"et-bracket-new-round\"\n >\n @for (element of round.elements; track $index) {\n @let inputs =\n element.type === 'header'\n ? { bracketRound: element.round, bracketRoundSwissGroup: element.roundSwissGroup }\n : element.type === 'continue'\n ? { bracketMatches: element.matches }\n : {\n bracketRound: element.round,\n bracketMatch: element.match,\n bracketRoundSwissGroup: element.roundSwissGroup,\n };\n\n @let highlightClass = element.type === 'match' ? element.classes : '';\n\n <li\n [style.width.px]=\"element.dimensions.width\"\n [style.height.px]=\"element.dimensions.height\"\n [style.top.px]=\"element.dimensions.top - round.dimensions.top\"\n [style.left.px]=\"element.dimensions.left - round.dimensions.left\"\n class=\"et-bracket-new-element et-bracket-new-element--{{ element.type }} {{ highlightClass }}\"\n >\n <ng-container *ngComponentOutlet=\"$any(element.component); inputs: inputs\" />\n </li>\n }\n </ul>\n }\n </section>\n}\n", styles: [".et-bracket-new{position:relative;--bracket-line-color: red}.et-bracket-new-round{position:absolute;list-style:none;margin:0;padding:0}.et-bracket-new-element{position:absolute;list-style:none;margin:0;padding:0;transition:opacity .2s}.et-bracket-new-svg{inline-size:100%;block-size:100%;position:absolute}.et-bracket-new-svg path{color:var(--bracket-line-color);transition:opacity .2s}.et-bracket-new-svg .et-bracket-new-swiss-group-border{color:var(--bracket-swiss-group-border-color, var(--bracket-line-color))}.et-new-bracket-host--journey-hover path,.et-new-bracket-host--journey-hover .et-bracket-new-element--match{opacity:.5}.et-new-bracket-host--journey-hover .et-bracket-new-journey-active{opacity:1!important}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
3902
4426
  }
3903
4427
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: NewBracketComponent, decorators: [{
3904
4428
  type: Component,
3905
4429
  args: [{ selector: 'et-new-bracket', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
3906
4430
  class: 'et-new-bracket-host',
3907
- }, imports: [NgComponentOutlet], template: "@if (bracketGrid(); as grid) {\n <section\n [style.width.px]=\"grid.raw.grid.dimensions.width\"\n [style.height.px]=\"grid.raw.grid.dimensions.height\"\n class=\"et-bracket-new et-bracket-new--{{ bracketData().mode }}\"\n >\n <svg [innerHTML]=\"svgContent()\" class=\"et-bracket-new-svg\" xmlns=\"http://www.w3.org/2000/svg\" />\n\n @for (round of grid.columns; track $index) {\n <ul\n [style.width.px]=\"round.dimensions.width\"\n [style.height.px]=\"round.dimensions.height\"\n [style.top.px]=\"round.dimensions.top\"\n [style.left.px]=\"round.dimensions.left\"\n class=\"et-bracket-new-round\"\n >\n @for (element of round.elements; track $index) {\n @let inputs =\n element.type === 'header'\n ? { bracketRound: element.round, bracketRoundSwissGroup: element.roundSwissGroup }\n : {\n bracketRound: element.round,\n bracketMatch: element.match,\n bracketRoundSwissGroup: element.roundSwissGroup,\n };\n\n @let highlightClass = element.type === 'header' ? '' : element.classes;\n\n <li\n [style.width.px]=\"element.dimensions.width\"\n [style.height.px]=\"element.dimensions.height\"\n [style.top.px]=\"element.dimensions.top - round.dimensions.top\"\n [style.left.px]=\"element.dimensions.left - round.dimensions.left\"\n class=\"et-bracket-new-element et-bracket-new-element--{{ element.type }} {{ highlightClass }}\"\n >\n <ng-container *ngComponentOutlet=\"element.component; inputs: inputs\" />\n </li>\n }\n </ul>\n }\n </section>\n}\n", styles: [".et-bracket-new{position:relative;--bracket-line-color: red}.et-bracket-new-round{position:absolute;list-style:none;margin:0;padding:0}.et-bracket-new-element{position:absolute;list-style:none;margin:0;padding:0;transition:opacity .2s}.et-bracket-new-svg{inline-size:100%;block-size:100%;position:absolute}.et-bracket-new-svg path{color:var(--bracket-line-color);transition:opacity .2s}\n"] }]
3908
- }], ctorParameters: () => [], propDecorators: { source: [{ type: i0.Input, args: [{ isSignal: true, alias: "source", required: true }] }], columnWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnWidth", required: false }] }], matchHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "matchHeight", required: false }] }], finalMatchHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "finalMatchHeight", required: false }] }], finalColumnWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "finalColumnWidth", required: false }] }], roundHeaderHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "roundHeaderHeight", required: false }] }], roundHeaderGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "roundHeaderGap", required: false }] }], columnGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnGap", required: false }] }], rowGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowGap", required: false }] }], rowRoundGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowRoundGap", required: false }] }], lineStartingCurveAmount: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineStartingCurveAmount", required: false }] }], lineEndingCurveAmount: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineEndingCurveAmount", required: false }] }], lineWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineWidth", required: false }] }], lineDashArray: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineDashArray", required: false }] }], lineDashOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineDashOffset", required: false }] }], disableJourneyHighlight: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableJourneyHighlight", required: false }] }], swissGroupPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "swissGroupPadding", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], hideRoundHeaders: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideRoundHeaders", required: false }] }], roundHeaderComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "roundHeaderComponent", required: false }] }], matchComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "matchComponent", required: false }] }], finalMatchComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "finalMatchComponent", required: false }] }] } });
4431
+ }, imports: [NgComponentOutlet], template: "@if (bracketGrid(); as grid) {\n <section\n [style.width.px]=\"grid.raw.grid.dimensions.width\"\n [style.height.px]=\"grid.raw.grid.dimensions.height\"\n class=\"et-bracket-new et-bracket-new--{{ bracketData().mode }}\"\n >\n <svg [innerHTML]=\"svgContent()\" class=\"et-bracket-new-svg\" xmlns=\"http://www.w3.org/2000/svg\" />\n\n @for (round of grid.columns; track $index) {\n <ul\n [style.width.px]=\"round.dimensions.width\"\n [style.height.px]=\"round.dimensions.height\"\n [style.top.px]=\"round.dimensions.top\"\n [style.left.px]=\"round.dimensions.left\"\n class=\"et-bracket-new-round\"\n >\n @for (element of round.elements; track $index) {\n @let inputs =\n element.type === 'header'\n ? { bracketRound: element.round, bracketRoundSwissGroup: element.roundSwissGroup }\n : element.type === 'continue'\n ? { bracketMatches: element.matches }\n : {\n bracketRound: element.round,\n bracketMatch: element.match,\n bracketRoundSwissGroup: element.roundSwissGroup,\n };\n\n @let highlightClass = element.type === 'match' ? element.classes : '';\n\n <li\n [style.width.px]=\"element.dimensions.width\"\n [style.height.px]=\"element.dimensions.height\"\n [style.top.px]=\"element.dimensions.top - round.dimensions.top\"\n [style.left.px]=\"element.dimensions.left - round.dimensions.left\"\n class=\"et-bracket-new-element et-bracket-new-element--{{ element.type }} {{ highlightClass }}\"\n >\n <ng-container *ngComponentOutlet=\"$any(element.component); inputs: inputs\" />\n </li>\n }\n </ul>\n }\n </section>\n}\n", styles: [".et-bracket-new{position:relative;--bracket-line-color: red}.et-bracket-new-round{position:absolute;list-style:none;margin:0;padding:0}.et-bracket-new-element{position:absolute;list-style:none;margin:0;padding:0;transition:opacity .2s}.et-bracket-new-svg{inline-size:100%;block-size:100%;position:absolute}.et-bracket-new-svg path{color:var(--bracket-line-color);transition:opacity .2s}.et-bracket-new-svg .et-bracket-new-swiss-group-border{color:var(--bracket-swiss-group-border-color, var(--bracket-line-color))}.et-new-bracket-host--journey-hover path,.et-new-bracket-host--journey-hover .et-bracket-new-element--match{opacity:.5}.et-new-bracket-host--journey-hover .et-bracket-new-journey-active{opacity:1!important}\n"] }]
4432
+ }], ctorParameters: () => [], propDecorators: { source: [{ type: i0.Input, args: [{ isSignal: true, alias: "source", required: true }] }], columnWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnWidth", required: false }] }], matchHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "matchHeight", required: false }] }], finalMatchHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "finalMatchHeight", required: false }] }], finalColumnWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "finalColumnWidth", required: false }] }], roundHeaderHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "roundHeaderHeight", required: false }] }], roundHeaderGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "roundHeaderGap", required: false }] }], columnGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnGap", required: false }] }], rowGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowGap", required: false }] }], rowRoundGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowRoundGap", required: false }] }], lineStartingCurveAmount: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineStartingCurveAmount", required: false }] }], lineEndingCurveAmount: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineEndingCurveAmount", required: false }] }], lineWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineWidth", required: false }] }], lineDashArray: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineDashArray", required: false }] }], lineDashOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineDashOffset", required: false }] }], disableJourneyHighlight: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableJourneyHighlight", required: false }] }], swissGroupPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "swissGroupPadding", required: false }] }], swissGroupBorderRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "swissGroupBorderRadius", required: false }] }], swissColors: [{ type: i0.Input, args: [{ isSignal: true, alias: "swissColors", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], hideRoundHeaders: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideRoundHeaders", required: false }] }], showContinueElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "showContinueElement", required: false }] }], continueColumnWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "continueColumnWidth", required: false }] }], continueElementHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "continueElementHeight", required: false }] }], continueLineDashArray: [{ type: i0.Input, args: [{ isSignal: true, alias: "continueLineDashArray", required: false }] }], roundHeaderComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "roundHeaderComponent", required: false }] }], matchComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "matchComponent", required: false }] }], finalMatchComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "finalMatchComponent", required: false }] }], continueComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "continueComponent", required: false }] }] } });
3909
4433
 
3910
4434
  var index = /*#__PURE__*/Object.freeze({
3911
4435
  __proto__: null,
3912
4436
  BRACKET_DATA_LAYOUT: BRACKET_DATA_LAYOUT,
3913
4437
  BRACKET_ROUND_MIRROR_TYPE: BRACKET_ROUND_MIRROR_TYPE,
4438
+ BRACKET_SWISS_GROUP_COLOR_TYPE: BRACKET_SWISS_GROUP_COLOR_TYPE,
3914
4439
  BracketMap: BracketMap,
3915
4440
  COMMON_BRACKET_ROUND_TYPE: COMMON_BRACKET_ROUND_TYPE,
3916
4441
  DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE: DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE,
3917
4442
  GROUP_BRACKET_ROUND_TYPE: GROUP_BRACKET_ROUND_TYPE,
3918
4443
  NewBracketComponent: NewBracketComponent,
4444
+ NewBracketDefaultContinueComponent: NewBracketDefaultContinueComponent,
3919
4445
  NewBracketDefaultMatchComponent: NewBracketDefaultMatchComponent,
3920
4446
  NewBracketDefaultRoundHeaderComponent: NewBracketDefaultRoundHeaderComponent,
3921
4447
  SINGLE_ELIMINATION_BRACKET_ROUND_TYPE: SINGLE_ELIMINATION_BRACKET_ROUND_TYPE,
4448
+ SWISS_ADVANCE_WINS: SWISS_ADVANCE_WINS,
3922
4449
  SWISS_BRACKET_ROUND_TYPE: SWISS_BRACKET_ROUND_TYPE,
4450
+ SWISS_ELIMINATE_LOSSES: SWISS_ELIMINATE_LOSSES,
3923
4451
  TOURNAMENT_MODE: TOURNAMENT_MODE,
3924
4452
  canRenderLayoutInTournamentMode: canRenderLayoutInTournamentMode,
3925
4453
  createMatchesMapBase: createMatchesMapBase,
@@ -3940,7 +4468,10 @@ var index = /*#__PURE__*/Object.freeze({
3940
4468
  generateTournamentModeFormEthleteRounds: generateTournamentModeFormEthleteRounds,
3941
4469
  generateTournamentModeFormGgData: generateTournamentModeFormGgData,
3942
4470
  getAvailableSwissGroupsForRound: getAvailableSwissGroupsForRound,
3943
- logRoundRelations: logRoundRelations
4471
+ getSwissGroupColorType: getSwissGroupColorType,
4472
+ injectNewBracketConfig: injectNewBracketConfig,
4473
+ logRoundRelations: logRoundRelations,
4474
+ provideNewBracketConfig: provideNewBracketConfig
3944
4475
  });
3945
4476
 
3946
4477
  const VALIDATOR_ERROR_SERVICE_TOKEN = new InjectionToken('VALIDATOR_ERROR_SERVICE');
@@ -19462,5 +19993,5 @@ const TABS_CONFIG = new InjectionToken('TABS_CONFIG');
19462
19993
  * Generated bundle index. Do not edit.
19463
19994
  */
19464
19995
 
19465
- 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 };
19996
+ 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, injectNewBracketConfig, 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, provideNewBracketConfig, provideOverlay, provideOverlayManager, provideOverlayRouterConfig, provideOverlayScrollBlocker, provideRightSheetStrategy, provideRightSheetStrategyDefaults, provideSidebarOverlayConfig, provideSort, provideTimeFormat, provideToggletipConfig, provideTooltipConfig, provideTopSheetStrategy, provideTopSheetStrategyDefaults, provideValidatorErrorsService, rightSheetOverlayStrategy, signalVisibilityChangeClasses, startFullscreenEnterAnimation, startFullscreenLeaveAnimation, subsetMatchOptions, tabAnimations, topSheetOverlayStrategy, transformingBottomSheetToDialogOverlayStrategy, transformingFullScreenDialogToDialogOverlayStrategy, transformingFullScreenDialogToRightSheetOverlayStrategy };
19466
19997
  //# sourceMappingURL=ethlete-cdk.mjs.map