@ethlete/cdk 5.0.0-next.14 → 5.0.0-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/fesm2022/ethlete-cdk.mjs +428 -96
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ethlete-cdk.d.ts +86 -5
package/fesm2022/ethlete-cdk.mjs
CHANGED
|
@@ -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,
|
|
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
|
|
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
|
|
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 (
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
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
|
-
|
|
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 =
|
|
2291
|
-
const ELIMINATE_LOSSES =
|
|
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)
|
|
@@ -2420,7 +2456,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
2420
2456
|
}, 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
2457
|
}], propDecorators: { bracketRound: [{ type: i0.Input, args: [{ isSignal: true, alias: "bracketRound", required: true }] }], bracketRoundSwissGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "bracketRoundSwissGroup", required: true }] }] } });
|
|
2422
2458
|
|
|
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}" />`;
|
|
2459
|
+
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
2460
|
|
|
2425
2461
|
const curvePath = (from, to, direction, options) => {
|
|
2426
2462
|
const inverted = options.inverted ?? false;
|
|
@@ -2548,6 +2584,142 @@ const drawMan = (dimensions) => {
|
|
|
2548
2584
|
return svgParts.join('');
|
|
2549
2585
|
};
|
|
2550
2586
|
|
|
2587
|
+
// Every finalized column of a swiss grid is one group section. The connection lines run
|
|
2588
|
+
// from group to group instead of match to match: the winners of group (w-l) move to group
|
|
2589
|
+
// (w+1-l) inside the next round, the losers move to group (w-l+1).
|
|
2590
|
+
const collectSwissRoundGeometries = (bracketGrid) => {
|
|
2591
|
+
const rounds = new Map();
|
|
2592
|
+
for (const column of bracketGrid.columns) {
|
|
2593
|
+
const matchElements = column.elements.filter((element) => element.type === 'match');
|
|
2594
|
+
const group = matchElements[0]?.roundSwissGroup;
|
|
2595
|
+
const round = matchElements[0]?.round;
|
|
2596
|
+
if (!group || !round)
|
|
2597
|
+
continue;
|
|
2598
|
+
const [wins, losses] = group.id.split('-').map(Number);
|
|
2599
|
+
if (wins === undefined || losses === undefined || isNaN(wins) || isNaN(losses)) {
|
|
2600
|
+
throw new Error(`Unable to parse wins and losses from Swiss group id: ${group.id}`);
|
|
2601
|
+
}
|
|
2602
|
+
const matchesTop = Math.min(...matchElements.map((element) => element.dimensions.top));
|
|
2603
|
+
const matchesBottom = Math.max(...matchElements.map((element) => element.dimensions.top + element.dimensions.height));
|
|
2604
|
+
const winnerShortIds = [];
|
|
2605
|
+
const loserShortIds = [];
|
|
2606
|
+
for (const element of matchElements) {
|
|
2607
|
+
if (!element.match.winner)
|
|
2608
|
+
continue;
|
|
2609
|
+
const winner = element.match.winner;
|
|
2610
|
+
const loser = element.match.home?.id === winner.id ? element.match.away : element.match.home;
|
|
2611
|
+
winnerShortIds.push(winner.shortId);
|
|
2612
|
+
if (loser)
|
|
2613
|
+
loserShortIds.push(loser.shortId);
|
|
2614
|
+
}
|
|
2615
|
+
// The lines attach to the group border, which wraps the matches plus the group
|
|
2616
|
+
// padding and therefore matches the section bounds horizontally.
|
|
2617
|
+
const position = {
|
|
2618
|
+
block: {
|
|
2619
|
+
start: matchesTop,
|
|
2620
|
+
end: matchesBottom,
|
|
2621
|
+
center: (matchesTop + matchesBottom) / 2,
|
|
2622
|
+
},
|
|
2623
|
+
inline: {
|
|
2624
|
+
start: column.dimensions.left,
|
|
2625
|
+
end: column.dimensions.left + column.dimensions.width,
|
|
2626
|
+
center: column.dimensions.left + column.dimensions.width / 2,
|
|
2627
|
+
},
|
|
2628
|
+
};
|
|
2629
|
+
let roundGeometry = rounds.get(round.id);
|
|
2630
|
+
if (!roundGeometry) {
|
|
2631
|
+
roundGeometry = { groups: new Map() };
|
|
2632
|
+
rounds.set(round.id, roundGeometry);
|
|
2633
|
+
}
|
|
2634
|
+
roundGeometry.groups.set(group.id, {
|
|
2635
|
+
id: group.id,
|
|
2636
|
+
wins,
|
|
2637
|
+
losses,
|
|
2638
|
+
colorType: getSwissGroupColorType(wins, losses),
|
|
2639
|
+
position,
|
|
2640
|
+
winnerShortIds,
|
|
2641
|
+
loserShortIds,
|
|
2642
|
+
});
|
|
2643
|
+
}
|
|
2644
|
+
// The finalized columns are ordered left to right, so first appearance equals round order
|
|
2645
|
+
return Array.from(rounds.values());
|
|
2646
|
+
};
|
|
2647
|
+
const groupBorderRect = (group, border, color) => {
|
|
2648
|
+
// The group box wraps the matches plus the group padding plus the border itself. The
|
|
2649
|
+
// rect is inset by half the stroke width so the stroke renders fully inside the group
|
|
2650
|
+
// bounds instead of getting cut off at the edges of the bracket container.
|
|
2651
|
+
const boxPadding = border.padding + border.width;
|
|
2652
|
+
const strokeInset = border.width / 2;
|
|
2653
|
+
const x = group.position.inline.start + strokeInset;
|
|
2654
|
+
const y = group.position.block.start - boxPadding + strokeInset;
|
|
2655
|
+
const width = group.position.inline.end - group.position.inline.start - border.width;
|
|
2656
|
+
const height = group.position.block.end - group.position.block.start + boxPadding * 2 - border.width;
|
|
2657
|
+
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}" />`;
|
|
2658
|
+
};
|
|
2659
|
+
// A horizontal gradient for the connection lines: they leave the source group in its
|
|
2660
|
+
// color, fade to the neutral color towards their vertical jog in the middle and fade into
|
|
2661
|
+
// the target group color on the second half. The connection lines always run from left to
|
|
2662
|
+
// right, so user space coordinates can be used (they also work for straight lines, where
|
|
2663
|
+
// the bounding box has no height).
|
|
2664
|
+
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>`;
|
|
2665
|
+
const drawSwissMan = (dimensions) => {
|
|
2666
|
+
const svgParts = [];
|
|
2667
|
+
const gradientDefs = [];
|
|
2668
|
+
const roundGeometries = collectSwissRoundGeometries(dimensions.bracketGrid);
|
|
2669
|
+
const colors = dimensions.colors;
|
|
2670
|
+
for (const roundGeometry of roundGeometries) {
|
|
2671
|
+
for (const group of roundGeometry.groups.values()) {
|
|
2672
|
+
svgParts.push(groupBorderRect(group, dimensions.groupBorder, colors?.[group.colorType]));
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
const curveOptions = {
|
|
2676
|
+
lineStartingCurveAmount: dimensions.curve.lineStartingCurveAmount,
|
|
2677
|
+
lineEndingCurveAmount: dimensions.curve.lineStartingCurveAmount,
|
|
2678
|
+
};
|
|
2679
|
+
let edgeIndex = 0;
|
|
2680
|
+
for (const [roundIndex, roundGeometry] of roundGeometries.entries()) {
|
|
2681
|
+
const nextRoundGeometry = roundGeometries[roundIndex + 1];
|
|
2682
|
+
if (!nextRoundGeometry)
|
|
2683
|
+
break;
|
|
2684
|
+
for (const group of roundGeometry.groups.values()) {
|
|
2685
|
+
const targets = [
|
|
2686
|
+
{ geometry: nextRoundGeometry.groups.get(`${group.wins + 1}-${group.losses}`), shortIds: group.winnerShortIds },
|
|
2687
|
+
{ geometry: nextRoundGeometry.groups.get(`${group.wins}-${group.losses + 1}`), shortIds: group.loserShortIds },
|
|
2688
|
+
];
|
|
2689
|
+
for (const { geometry: target, shortIds } of targets) {
|
|
2690
|
+
if (!target)
|
|
2691
|
+
continue;
|
|
2692
|
+
const neutralColor = colors?.neutral;
|
|
2693
|
+
const fromColor = colors?.[group.colorType] ?? neutralColor;
|
|
2694
|
+
const toColor = colors?.[target.colorType] ?? neutralColor;
|
|
2695
|
+
let stroke = neutralColor;
|
|
2696
|
+
if (neutralColor && (fromColor !== neutralColor || toColor !== neutralColor)) {
|
|
2697
|
+
const gradientId = `${dimensions.idPrefix}-swiss-line-${edgeIndex}`;
|
|
2698
|
+
const fromX = group.position.inline.end;
|
|
2699
|
+
const toX = target.position.inline.start;
|
|
2700
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
2701
|
+
gradientDefs.push(lineGradientDef(gradientId, fromX, toX, fromColor, neutralColor, toColor));
|
|
2702
|
+
stroke = `url(#${gradientId})`;
|
|
2703
|
+
}
|
|
2704
|
+
const pathOptions = { ...dimensions.path, className: shortIds.join(' '), stroke };
|
|
2705
|
+
const blockDelta = target.position.block.center - group.position.block.center;
|
|
2706
|
+
if (Math.abs(blockDelta) < 0.5) {
|
|
2707
|
+
svgParts.push(linePath(group.position, target.position, { path: pathOptions }));
|
|
2708
|
+
}
|
|
2709
|
+
else {
|
|
2710
|
+
svgParts.push(curvePath(group.position, target.position, blockDelta > 0 ? 'down' : 'up', {
|
|
2711
|
+
...curveOptions,
|
|
2712
|
+
path: pathOptions,
|
|
2713
|
+
}));
|
|
2714
|
+
}
|
|
2715
|
+
edgeIndex++;
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
const defs = gradientDefs.length ? `<defs>${gradientDefs.join('')}</defs>` : '';
|
|
2720
|
+
return defs + svgParts.join('');
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2551
2723
|
const createBracketElementPart = (config) => {
|
|
2552
2724
|
const { elementPartHeight } = config;
|
|
2553
2725
|
const newElementPart = {
|
|
@@ -2727,22 +2899,23 @@ const createBracketGrid = (config) => {
|
|
|
2727
2899
|
}
|
|
2728
2900
|
for (let secIdx = 0; secIdx < sections.length; secIdx++) {
|
|
2729
2901
|
const section = sections[secIdx];
|
|
2902
|
+
const sectionPadding = section.padding ?? padding;
|
|
2730
2903
|
let sectionPaddingTop;
|
|
2731
2904
|
if (secIdx === 0) {
|
|
2732
|
-
sectionPaddingTop = firstSectionIsHeader ? 0 :
|
|
2905
|
+
sectionPaddingTop = firstSectionIsHeader ? 0 : sectionPadding.top;
|
|
2733
2906
|
}
|
|
2734
2907
|
else {
|
|
2735
|
-
sectionPaddingTop =
|
|
2908
|
+
sectionPaddingTop = sectionPadding.top;
|
|
2736
2909
|
}
|
|
2737
2910
|
section.dimensions.width = masterColumn.dimensions.width;
|
|
2738
2911
|
section.dimensions.left = masterColumn.dimensions.left;
|
|
2739
2912
|
section.dimensions.top = runningTop;
|
|
2740
2913
|
runningTop += sectionPaddingTop;
|
|
2741
|
-
const contentWidth = masterColumn.dimensions.width -
|
|
2914
|
+
const contentWidth = masterColumn.dimensions.width - sectionPadding.left - sectionPadding.right;
|
|
2742
2915
|
const subColumns = section.subColumns;
|
|
2743
2916
|
const totalSubColumns = subColumns.length;
|
|
2744
2917
|
const subColumnWidth = contentWidth / totalSubColumns;
|
|
2745
|
-
let currentSubColumnLeft = masterColumn.dimensions.left +
|
|
2918
|
+
let currentSubColumnLeft = masterColumn.dimensions.left + sectionPadding.left;
|
|
2746
2919
|
let maxSectionHeight = 0;
|
|
2747
2920
|
for (let scIdx = 0; scIdx < totalSubColumns; scIdx++) {
|
|
2748
2921
|
const subColumn = subColumns[scIdx];
|
|
@@ -2778,8 +2951,8 @@ const createBracketGrid = (config) => {
|
|
|
2778
2951
|
maxSectionHeight = totalSubColumnHeight;
|
|
2779
2952
|
currentSubColumnLeft += subColumnWidth;
|
|
2780
2953
|
}
|
|
2781
|
-
section.dimensions.height = maxSectionHeight +
|
|
2782
|
-
runningTop += maxSectionHeight +
|
|
2954
|
+
section.dimensions.height = maxSectionHeight + sectionPadding.bottom;
|
|
2955
|
+
runningTop += maxSectionHeight + sectionPadding.bottom;
|
|
2783
2956
|
}
|
|
2784
2957
|
masterColumn.dimensions.height = runningTop;
|
|
2785
2958
|
if (masterColumn.dimensions.height > maxGridHeight)
|
|
@@ -2813,7 +2986,14 @@ const createBracketGrid = (config) => {
|
|
|
2813
2986
|
const totalSpannedWidth = calculateSpannedWidth(span, masterCols);
|
|
2814
2987
|
const spanStartLeft = calculateSpanStartLeft(span, masterCols);
|
|
2815
2988
|
const width = config.spanElementWidth;
|
|
2816
|
-
|
|
2989
|
+
// Winner bracket rounds span two lower bracket columns. Left-align them within that
|
|
2990
|
+
// span (factor 0) instead of centering (factor 0.5) so each winner round n sits above
|
|
2991
|
+
// the lower bracket round its losers drop into (round 2n-2) — the round whose matches
|
|
2992
|
+
// merge into the next one. That makes the participant's drop target unambiguous. Every
|
|
2993
|
+
// other spanning round (e.g. lower rounds split across sub-columns) stays centered.
|
|
2994
|
+
const round = element.type === 'header' || element.type === 'match' ? element.round : null;
|
|
2995
|
+
const alignFactor = round?.type === DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.UPPER_BRACKET ? 0 : 0.5;
|
|
2996
|
+
spanDimensions.set(spanKey, { width, left: spanStartLeft + (totalSpannedWidth - width) * alignFactor });
|
|
2817
2997
|
}
|
|
2818
2998
|
const storedDimensions = spanDimensions.get(spanKey);
|
|
2819
2999
|
if (storedDimensions) {
|
|
@@ -2981,7 +3161,7 @@ const createBracketMasterColumn = (config) => {
|
|
|
2981
3161
|
};
|
|
2982
3162
|
|
|
2983
3163
|
const createBracketMasterColumnSection = (config) => {
|
|
2984
|
-
const { type } = config;
|
|
3164
|
+
const { type, padding } = config;
|
|
2985
3165
|
const subColumns = [];
|
|
2986
3166
|
const newMasterColumnSection = {
|
|
2987
3167
|
dimensions: {
|
|
@@ -2992,6 +3172,7 @@ const createBracketMasterColumnSection = (config) => {
|
|
|
2992
3172
|
},
|
|
2993
3173
|
subColumns,
|
|
2994
3174
|
type,
|
|
3175
|
+
padding,
|
|
2995
3176
|
};
|
|
2996
3177
|
const pushSubColumn = (...newSubColumns) => {
|
|
2997
3178
|
subColumns.push(...newSubColumns);
|
|
@@ -3358,14 +3539,26 @@ const createRoundBracketSubColumnRelativeToFirstRound = (config) => {
|
|
|
3358
3539
|
|
|
3359
3540
|
const createDoubleEliminationGrid = (bracketData, options, components) => {
|
|
3360
3541
|
const grid = createBracketGrid({ spanElementWidth: options.columnWidth });
|
|
3361
|
-
const
|
|
3542
|
+
const presentUpperBracketRounds = Array.from(bracketData.roundsByType.getOrThrow(DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.UPPER_BRACKET).values());
|
|
3362
3543
|
const lowerBracketRounds = Array.from(bracketData.roundsByType.getOrThrow(DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.LOWER_BRACKET).values());
|
|
3544
|
+
// A complete winner bracket has (lowerRounds / 2) + 1 rounds. If fewer are present, the winner
|
|
3545
|
+
// bracket starts later than round 1 — e.g. a small double elimination where lower-round 1 is
|
|
3546
|
+
// seeded directly from a group phase and has no winner round feeding it. Pad the front of the
|
|
3547
|
+
// winner rounds with nulls so the column mapping keeps treating the winner bracket as complete:
|
|
3548
|
+
// the missing early rounds become empty slots above the lower rounds they never fed, and every
|
|
3549
|
+
// present winner round lines up above its real drop-in lower round.
|
|
3550
|
+
const fullUpperRoundCount = Math.floor(lowerBracketRounds.length / 2) + 1;
|
|
3551
|
+
const frontMissingUpperRounds = Math.max(0, fullUpperRoundCount - presentUpperBracketRounds.length);
|
|
3552
|
+
const upperBracketRounds = [
|
|
3553
|
+
...Array.from({ length: frontMissingUpperRounds }, () => null),
|
|
3554
|
+
...presentUpperBracketRounds,
|
|
3555
|
+
];
|
|
3363
3556
|
const remainingRounds = Array.from(bracketData.rounds.values()).filter((r) => r.type !== DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.UPPER_BRACKET &&
|
|
3364
3557
|
r.type !== DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.LOWER_BRACKET &&
|
|
3365
3558
|
r.type !== COMMON_BRACKET_ROUND_TYPE.THIRD_PLACE);
|
|
3366
3559
|
const thirdPlaceRound = bracketData.roundsByType.get(COMMON_BRACKET_ROUND_TYPE.THIRD_PLACE)?.first() ?? null;
|
|
3367
3560
|
const hasReverseFinal = !!bracketData.roundsByType.get(DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE.REVERSE_FINAL)?.first();
|
|
3368
|
-
const firstUpperRound =
|
|
3561
|
+
const firstUpperRound = presentUpperBracketRounds[0];
|
|
3369
3562
|
const firstLowerRound = lowerBracketRounds[0];
|
|
3370
3563
|
if (!firstUpperRound || !firstLowerRound) {
|
|
3371
3564
|
throw new Error('No upper or lower rounds found in bracket data');
|
|
@@ -3408,10 +3601,11 @@ const createDoubleEliminationGrid = (bracketData, options, components) => {
|
|
|
3408
3601
|
const nextUpperRoundIndex = calculateUpperRoundIndex(nextSubColumnIndex, upperToLowerRatio, columnSplitFactor);
|
|
3409
3602
|
const previousLowerRoundIndex = previousSubColumnIndex >= 0 ? calculateLowerRoundIndex(previousSubColumnIndex, columnSplitFactor) : -1;
|
|
3410
3603
|
const nextLowerRoundIndex = calculateLowerRoundIndex(nextSubColumnIndex, columnSplitFactor);
|
|
3411
|
-
|
|
3412
|
-
if (!upperRound) {
|
|
3604
|
+
if (currentUpperRoundIndex < 0 || currentUpperRoundIndex >= upperBracketRounds.length) {
|
|
3413
3605
|
throw new Error('Upper round not found for subColumnIndex: ' + subColumnIndex);
|
|
3414
3606
|
}
|
|
3607
|
+
// May be null for a leading winner slot that does not exist (front-truncated winner bracket).
|
|
3608
|
+
const upperRound = upperBracketRounds[currentUpperRoundIndex];
|
|
3415
3609
|
// For upper bracket spans - check if this round is different from the previous occurrence
|
|
3416
3610
|
const isUpperSpanStart = isFirstSubColumnInMasterColumn
|
|
3417
3611
|
? lowerRoundIndex === 0 || lastRoundLastSubColumnUpperIndex !== currentUpperRoundIndex
|
|
@@ -3431,18 +3625,34 @@ const createDoubleEliminationGrid = (bracketData, options, components) => {
|
|
|
3431
3625
|
calculateLowerRoundIndex((lowerRoundIndex + 1) * columnSplitFactor, columnSplitFactor) !==
|
|
3432
3626
|
currentLowerRoundIndex
|
|
3433
3627
|
: nextLowerRoundIndex !== currentLowerRoundIndex;
|
|
3434
|
-
const
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
}
|
|
3445
|
-
|
|
3628
|
+
const upperSpan = { isStart: isUpperSpanStart, isEnd: isUpperSpanEnd };
|
|
3629
|
+
if (upperRound) {
|
|
3630
|
+
pushUpperSubColumn(createRoundBracketSubColumnRelativeToFirstRound({
|
|
3631
|
+
firstRound: firstUpperRound,
|
|
3632
|
+
round: upperRound,
|
|
3633
|
+
options,
|
|
3634
|
+
hasReverseFinal,
|
|
3635
|
+
span: upperSpan,
|
|
3636
|
+
components,
|
|
3637
|
+
}));
|
|
3638
|
+
}
|
|
3639
|
+
else {
|
|
3640
|
+
// Empty leading winner slot: reserve the same vertical space a real winner round (rendered
|
|
3641
|
+
// relative to the first present round) would occupy, so the lower bracket rows below stay
|
|
3642
|
+
// aligned, but render nothing in it.
|
|
3643
|
+
const emptyUpperHeight = (options.roundHeaderHeight > 0 ? options.roundHeaderHeight + options.roundHeaderGap : 0) +
|
|
3644
|
+
firstUpperRound.matchCount * options.matchHeight +
|
|
3645
|
+
Math.max(0, firstUpperRound.matchCount - 1) * options.rowGap;
|
|
3646
|
+
const { subColumn: emptyUpperSubColumn, pushElement: pushEmptyUpperElement } = createBracketSubColumn({ span: upperSpan });
|
|
3647
|
+
const { element: emptyUpperElement } = createBracketElement({
|
|
3648
|
+
area: '.',
|
|
3649
|
+
type: 'colGap',
|
|
3650
|
+
elementHeight: emptyUpperHeight,
|
|
3651
|
+
partHeights: [emptyUpperHeight],
|
|
3652
|
+
});
|
|
3653
|
+
pushEmptyUpperElement(emptyUpperElement);
|
|
3654
|
+
pushUpperSubColumn(emptyUpperSubColumn);
|
|
3655
|
+
}
|
|
3446
3656
|
const upperLowerGapSubColumn = createBracketSubColumn({
|
|
3447
3657
|
span: {
|
|
3448
3658
|
isStart: true,
|
|
@@ -3476,7 +3686,11 @@ const createDoubleEliminationGrid = (bracketData, options, components) => {
|
|
|
3476
3686
|
}
|
|
3477
3687
|
pushSection(upperSection, upperLowerGapSection, lowerSection);
|
|
3478
3688
|
grid.pushMasterColumn(masterColumn);
|
|
3479
|
-
|
|
3689
|
+
// Always separate consecutive lower rounds with a gap column. The trailing gap after the
|
|
3690
|
+
// last lower round is only needed to connect to the finals section (remainingRounds); in a
|
|
3691
|
+
// truncated bracket without a final we must still gap the intermediate rounds, otherwise the
|
|
3692
|
+
// rounds sit flush against each other and their connector lines collapse to zero width.
|
|
3693
|
+
if (!isLastLowerRound || remainingRounds.length) {
|
|
3480
3694
|
grid.pushMasterColumn(createBracketGapMasterColumn({
|
|
3481
3695
|
existingMasterColumns: grid.grid.masterColumns,
|
|
3482
3696
|
columnGap: options.columnGap,
|
|
@@ -3644,47 +3858,84 @@ const createSingleEliminationGrid = (bracketData, options, components) => {
|
|
|
3644
3858
|
};
|
|
3645
3859
|
};
|
|
3646
3860
|
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3861
|
+
const getSwissGroupBoxPadding = (options) => options.swissGroupPadding + options.swissGroupBorderWidth;
|
|
3862
|
+
const calculateSwissColumnMetrics = (groupMap, options) => {
|
|
3863
|
+
const includeHeaders = options.roundHeaderHeight > 0;
|
|
3864
|
+
const boxPadding = getSwissGroupBoxPadding(options);
|
|
3865
|
+
let naturalHeight = 0;
|
|
3866
|
+
let stretchableGapCount = 0;
|
|
3867
|
+
for (const [groupIndex, group] of Array.from(groupMap.groups.values()).entries()) {
|
|
3868
|
+
if (groupIndex !== 0) {
|
|
3869
|
+
// The gap section between two groups
|
|
3870
|
+
naturalHeight += options.rowRoundGap;
|
|
3871
|
+
stretchableGapCount++;
|
|
3872
|
+
}
|
|
3873
|
+
// The round header gap is not stretchable: the first match should always sit directly
|
|
3874
|
+
// below it, no matter how much a column gets stretched.
|
|
3875
|
+
if (includeHeaders) {
|
|
3876
|
+
naturalHeight += options.roundHeaderHeight + options.roundHeaderGap;
|
|
3877
|
+
}
|
|
3878
|
+
const matchGapCount = Math.max(0, group.matches.size - 1);
|
|
3879
|
+
naturalHeight += boxPadding * 2 + group.matches.size * options.matchHeight + matchGapCount * options.rowGap;
|
|
3880
|
+
stretchableGapCount += matchGapCount;
|
|
3881
|
+
}
|
|
3882
|
+
return { naturalHeight, stretchableGapCount };
|
|
3883
|
+
};
|
|
3884
|
+
// The naturally tallest master column (the round with the most groups) keeps the original
|
|
3885
|
+
// gaps (rowGap, rowRoundGap, roundHeaderGap) and defines the total bracket height.
|
|
3886
|
+
// The master cols before it are stretched to that height by distributing the missing
|
|
3887
|
+
// height evenly across all of their gap elements.
|
|
3888
|
+
// The master cols after it keep the original gaps, resulting in a top alignment. They get
|
|
3889
|
+
// one more gap element at the end of the column to fill the remaining space if any.
|
|
3655
3890
|
const createSwissGrid = (bracketData, options, components) => {
|
|
3656
3891
|
const swissGroupMaps = generateBracketRoundSwissGroupMaps(bracketData);
|
|
3657
3892
|
if (!swissGroupMaps)
|
|
3658
3893
|
throw new Error('Unable to generate Swiss groups for the provided bracket data');
|
|
3659
3894
|
const grid = createBracketGrid({ spanElementWidth: options.columnWidth });
|
|
3660
|
-
|
|
3895
|
+
const groupMaps = Array.from(swissGroupMaps.values());
|
|
3896
|
+
const columnMetrics = groupMaps.map((groupMap) => calculateSwissColumnMetrics(groupMap, options));
|
|
3897
|
+
const totalHeight = Math.max(...columnMetrics.map((metrics) => metrics.naturalHeight));
|
|
3898
|
+
const longestColumnIndex = columnMetrics.findIndex((metrics) => metrics.naturalHeight === totalHeight);
|
|
3899
|
+
for (const [groupMapIndex, groupMap] of groupMaps.entries()) {
|
|
3661
3900
|
const isLastGroupMap = groupMapIndex === swissGroupMaps.size - 1;
|
|
3901
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3902
|
+
const metrics = columnMetrics[groupMapIndex];
|
|
3903
|
+
const heightToFill = totalHeight - metrics.naturalHeight;
|
|
3904
|
+
const isStretched = groupMapIndex < longestColumnIndex && metrics.stretchableGapCount > 0;
|
|
3905
|
+
const gapStretch = isStretched ? heightToFill / metrics.stretchableGapCount : 0;
|
|
3906
|
+
const rowGap = options.rowGap + gapStretch;
|
|
3907
|
+
const rowRoundGap = options.rowRoundGap + gapStretch;
|
|
3908
|
+
// The border and group padding are part of the column width (the match elements
|
|
3909
|
+
// shrink by them), so the column footprint stays at columnWidth and the group borders
|
|
3910
|
+
// drawn around the matches don't overflow the bracket container. The padding lives on
|
|
3911
|
+
// the match list sections, the header and gap sections stay unpadded and span the
|
|
3912
|
+
// whole column width.
|
|
3913
|
+
const boxPadding = getSwissGroupBoxPadding(options);
|
|
3662
3914
|
const { masterColumn, pushSection } = createBracketMasterColumn({
|
|
3663
3915
|
columnWidth: options.columnWidth,
|
|
3664
3916
|
padding: {
|
|
3665
|
-
bottom:
|
|
3666
|
-
left:
|
|
3667
|
-
right:
|
|
3668
|
-
top:
|
|
3917
|
+
bottom: 0,
|
|
3918
|
+
left: 0,
|
|
3919
|
+
right: 0,
|
|
3920
|
+
top: 0,
|
|
3669
3921
|
},
|
|
3670
3922
|
});
|
|
3671
3923
|
for (const [groupIndex, group] of Array.from(groupMap.groups.values()).entries()) {
|
|
3672
3924
|
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
3925
|
if (options.roundHeaderHeight > 0) {
|
|
3684
3926
|
const firstMatchRound = group.matches.first()?.round;
|
|
3685
3927
|
if (!firstMatchRound)
|
|
3686
3928
|
throw new Error('No rounds found in Swiss group');
|
|
3687
|
-
|
|
3929
|
+
const headerColumnSection = createBracketMasterColumnSection({
|
|
3930
|
+
type: 'round',
|
|
3931
|
+
});
|
|
3932
|
+
const headerSubColumn = createBracketSubColumn({
|
|
3933
|
+
span: {
|
|
3934
|
+
isStart: true,
|
|
3935
|
+
isEnd: true,
|
|
3936
|
+
},
|
|
3937
|
+
});
|
|
3938
|
+
const headerElement = createBracketElement({
|
|
3688
3939
|
type: 'header',
|
|
3689
3940
|
area: `h${group.id}`,
|
|
3690
3941
|
partHeights: [options.roundHeaderHeight],
|
|
@@ -3692,13 +3943,33 @@ const createSwissGrid = (bracketData, options, components) => {
|
|
|
3692
3943
|
component: components.roundHeader,
|
|
3693
3944
|
round: firstMatchRound,
|
|
3694
3945
|
roundSwissGroup: group,
|
|
3695
|
-
}
|
|
3946
|
+
});
|
|
3947
|
+
const headerGapElement = createBracketElement({
|
|
3696
3948
|
type: 'roundHeaderGap',
|
|
3697
3949
|
area: '.',
|
|
3698
3950
|
partHeights: [options.roundHeaderGap],
|
|
3699
3951
|
elementHeight: options.roundHeaderGap,
|
|
3700
3952
|
});
|
|
3953
|
+
headerSubColumn.pushElement(headerElement.element, headerGapElement.element);
|
|
3954
|
+
headerColumnSection.pushSubColumn(headerSubColumn.subColumn);
|
|
3955
|
+
pushSection(headerColumnSection.masterColumnSection);
|
|
3701
3956
|
}
|
|
3957
|
+
const { masterColumnSection, pushSubColumn } = createBracketMasterColumnSection({
|
|
3958
|
+
type: 'round',
|
|
3959
|
+
padding: {
|
|
3960
|
+
bottom: boxPadding,
|
|
3961
|
+
left: boxPadding,
|
|
3962
|
+
right: boxPadding,
|
|
3963
|
+
top: boxPadding,
|
|
3964
|
+
},
|
|
3965
|
+
});
|
|
3966
|
+
const { subColumn, pushElement } = createBracketSubColumn({
|
|
3967
|
+
span: {
|
|
3968
|
+
isStart: true,
|
|
3969
|
+
isEnd: true,
|
|
3970
|
+
},
|
|
3971
|
+
});
|
|
3972
|
+
const elementsToCreate = [];
|
|
3702
3973
|
for (const [matchIndex, match] of Array.from(group.matches.values()).entries()) {
|
|
3703
3974
|
const isLastMatch = matchIndex === group.matches.size - 1;
|
|
3704
3975
|
elementsToCreate.push({
|
|
@@ -3715,8 +3986,8 @@ const createSwissGrid = (bracketData, options, components) => {
|
|
|
3715
3986
|
elementsToCreate.push({
|
|
3716
3987
|
type: 'matchGap',
|
|
3717
3988
|
area: '.',
|
|
3718
|
-
partHeights: [
|
|
3719
|
-
elementHeight:
|
|
3989
|
+
partHeights: [rowGap],
|
|
3990
|
+
elementHeight: rowGap,
|
|
3720
3991
|
});
|
|
3721
3992
|
}
|
|
3722
3993
|
}
|
|
@@ -3739,14 +4010,37 @@ const createSwissGrid = (bracketData, options, components) => {
|
|
|
3739
4010
|
const groupGapElement = createBracketElement({
|
|
3740
4011
|
area: '.',
|
|
3741
4012
|
type: 'roundGap',
|
|
3742
|
-
elementHeight:
|
|
3743
|
-
partHeights: [
|
|
4013
|
+
elementHeight: rowRoundGap,
|
|
4014
|
+
partHeights: [rowRoundGap],
|
|
3744
4015
|
});
|
|
3745
4016
|
groupGapSubColumn.pushElement(groupGapElement.element);
|
|
3746
4017
|
groupGapColumnSection.pushSubColumn(groupGapSubColumn.subColumn);
|
|
3747
4018
|
pushSection(groupGapColumnSection.masterColumnSection);
|
|
3748
4019
|
}
|
|
3749
4020
|
}
|
|
4021
|
+
// Top aligned columns end above the total height, so we fill the remaining space with
|
|
4022
|
+
// one last gap element.
|
|
4023
|
+
const fillerHeight = isStretched ? 0 : heightToFill;
|
|
4024
|
+
if (fillerHeight > 0) {
|
|
4025
|
+
const fillerColumnSection = createBracketMasterColumnSection({
|
|
4026
|
+
type: 'gap',
|
|
4027
|
+
});
|
|
4028
|
+
const fillerSubColumn = createBracketSubColumn({
|
|
4029
|
+
span: {
|
|
4030
|
+
isStart: true,
|
|
4031
|
+
isEnd: true,
|
|
4032
|
+
},
|
|
4033
|
+
});
|
|
4034
|
+
const fillerElement = createBracketElement({
|
|
4035
|
+
area: '.',
|
|
4036
|
+
type: 'colGap',
|
|
4037
|
+
elementHeight: fillerHeight,
|
|
4038
|
+
partHeights: [fillerHeight],
|
|
4039
|
+
});
|
|
4040
|
+
fillerSubColumn.pushElement(fillerElement.element);
|
|
4041
|
+
fillerColumnSection.pushSubColumn(fillerSubColumn.subColumn);
|
|
4042
|
+
pushSection(fillerColumnSection.masterColumnSection);
|
|
4043
|
+
}
|
|
3750
4044
|
grid.pushMasterColumn(masterColumn);
|
|
3751
4045
|
if (!isLastGroupMap) {
|
|
3752
4046
|
grid.pushMasterColumn(createBracketGapMasterColumn({
|
|
@@ -3757,7 +4051,6 @@ const createSwissGrid = (bracketData, options, components) => {
|
|
|
3757
4051
|
}
|
|
3758
4052
|
grid.calculateDimensions();
|
|
3759
4053
|
const finalizedGrid = finalizeBracketGrid(grid);
|
|
3760
|
-
console.log(grid);
|
|
3761
4054
|
return {
|
|
3762
4055
|
raw: grid,
|
|
3763
4056
|
columns: finalizedGrid.columns,
|
|
@@ -3783,29 +4076,34 @@ const createJourneyHighlight = (bracketData) => {
|
|
|
3783
4076
|
return styles.replace(/\s+/g, ' ').trim();
|
|
3784
4077
|
};
|
|
3785
4078
|
|
|
4079
|
+
const [provideNewBracketConfig, injectNewBracketConfig] = createStaticRootProvider({}, { name: 'NewBracketConfig' });
|
|
4080
|
+
|
|
3786
4081
|
class NewBracketComponent {
|
|
3787
4082
|
constructor() {
|
|
3788
4083
|
this.domSanitizer = inject(DomSanitizer);
|
|
3789
4084
|
this.elementId = createComponentId('et-new-bracket');
|
|
4085
|
+
this.config = injectNewBracketConfig();
|
|
3790
4086
|
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.
|
|
3808
|
-
this.
|
|
4087
|
+
this.columnWidth = input(this.config.columnWidth ?? 250, { ...(ngDevMode ? { debugName: "columnWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4088
|
+
this.matchHeight = input(this.config.matchHeight ?? 75, { ...(ngDevMode ? { debugName: "matchHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4089
|
+
this.finalMatchHeight = input(this.config.finalMatchHeight ?? 75, { ...(ngDevMode ? { debugName: "finalMatchHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4090
|
+
this.finalColumnWidth = input(this.config.finalColumnWidth ?? 300, { ...(ngDevMode ? { debugName: "finalColumnWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4091
|
+
this.roundHeaderHeight = input(this.config.roundHeaderHeight ?? 50, { ...(ngDevMode ? { debugName: "roundHeaderHeight" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4092
|
+
this.roundHeaderGap = input(this.config.roundHeaderGap ?? 20, { ...(ngDevMode ? { debugName: "roundHeaderGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4093
|
+
this.columnGap = input(this.config.columnGap ?? 60, { ...(ngDevMode ? { debugName: "columnGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4094
|
+
this.rowGap = input(this.config.rowGap ?? 30, { ...(ngDevMode ? { debugName: "rowGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4095
|
+
this.rowRoundGap = input(this.config.rowRoundGap ?? 20, { ...(ngDevMode ? { debugName: "rowRoundGap" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4096
|
+
this.lineStartingCurveAmount = input(this.config.lineStartingCurveAmount ?? 10, { ...(ngDevMode ? { debugName: "lineStartingCurveAmount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4097
|
+
this.lineEndingCurveAmount = input(this.config.lineEndingCurveAmount ?? 0, { ...(ngDevMode ? { debugName: "lineEndingCurveAmount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4098
|
+
this.lineWidth = input(this.config.lineWidth ?? 2, { ...(ngDevMode ? { debugName: "lineWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4099
|
+
this.lineDashArray = input(this.config.lineDashArray ?? 0, { ...(ngDevMode ? { debugName: "lineDashArray" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4100
|
+
this.lineDashOffset = input(this.config.lineDashOffset ?? 0, { ...(ngDevMode ? { debugName: "lineDashOffset" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4101
|
+
this.disableJourneyHighlight = input(this.config.disableJourneyHighlight ?? false, { ...(ngDevMode ? { debugName: "disableJourneyHighlight" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
4102
|
+
this.swissGroupPadding = input(this.config.swissGroupPadding ?? 10, { ...(ngDevMode ? { debugName: "swissGroupPadding" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4103
|
+
this.swissGroupBorderRadius = input(this.config.swissGroupBorderRadius ?? 12, { ...(ngDevMode ? { debugName: "swissGroupBorderRadius" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
4104
|
+
this.swissColors = input(this.config.swiss?.colors, ...(ngDevMode ? [{ debugName: "swissColors" }] : /* istanbul ignore next */ []));
|
|
4105
|
+
this.layout = input(this.config.layout ?? BRACKET_DATA_LAYOUT.LEFT_TO_RIGHT, ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
4106
|
+
this.hideRoundHeaders = input(this.config.hideRoundHeaders ?? false, { ...(ngDevMode ? { debugName: "hideRoundHeaders" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
3809
4107
|
this.roundHeaderComponent = input(...(ngDevMode ? [undefined, { debugName: "roundHeaderComponent" }] : /* istanbul ignore next */ []));
|
|
3810
4108
|
this.matchComponent = input(...(ngDevMode ? [undefined, { debugName: "matchComponent" }] : /* istanbul ignore next */ []));
|
|
3811
4109
|
this.finalMatchComponent = input(...(ngDevMode ? [undefined, { debugName: "finalMatchComponent" }] : /* istanbul ignore next */ []));
|
|
@@ -3826,11 +4124,19 @@ class NewBracketComponent {
|
|
|
3826
4124
|
finalColumnWidth: this.finalColumnWidth(),
|
|
3827
4125
|
roundHeaderGap: this.hideRoundHeaders() ? 0 : this.roundHeaderGap(),
|
|
3828
4126
|
swissGroupPadding: this.swissGroupPadding(),
|
|
4127
|
+
swissGroupBorderWidth: this.lineWidth(),
|
|
3829
4128
|
};
|
|
4129
|
+
const swissConfig = bracketData.mode === TOURNAMENT_MODE.SWISS_WITH_ELIMINATION ? this.config.swiss : undefined;
|
|
3830
4130
|
const components = {
|
|
3831
|
-
match: this.matchComponent() ??
|
|
3832
|
-
|
|
3833
|
-
|
|
4131
|
+
match: this.matchComponent() ??
|
|
4132
|
+
swissConfig?.matchComponent ??
|
|
4133
|
+
this.config.matchComponent ??
|
|
4134
|
+
NewBracketDefaultMatchComponent,
|
|
4135
|
+
finalMatch: this.finalMatchComponent() ?? this.config.finalMatchComponent ?? NewBracketDefaultMatchComponent,
|
|
4136
|
+
roundHeader: this.roundHeaderComponent() ??
|
|
4137
|
+
swissConfig?.roundHeaderComponent ??
|
|
4138
|
+
this.config.roundHeaderComponent ??
|
|
4139
|
+
NewBracketDefaultRoundHeaderComponent,
|
|
3834
4140
|
};
|
|
3835
4141
|
switch (bracketData.mode) {
|
|
3836
4142
|
case TOURNAMENT_MODE.DOUBLE_ELIMINATION:
|
|
@@ -3843,8 +4149,28 @@ class NewBracketComponent {
|
|
|
3843
4149
|
}, ...(ngDevMode ? [{ debugName: "bracketGrid" }] : /* istanbul ignore next */ []));
|
|
3844
4150
|
this.drawManData = computed(() => {
|
|
3845
4151
|
const bracketGrid = this.bracketGrid();
|
|
3846
|
-
if (!bracketGrid
|
|
4152
|
+
if (!bracketGrid)
|
|
3847
4153
|
return '';
|
|
4154
|
+
if (this.bracketData().mode === TOURNAMENT_MODE.SWISS_WITH_ELIMINATION) {
|
|
4155
|
+
return drawSwissMan({
|
|
4156
|
+
bracketGrid,
|
|
4157
|
+
curve: {
|
|
4158
|
+
lineStartingCurveAmount: this.lineStartingCurveAmount(),
|
|
4159
|
+
},
|
|
4160
|
+
path: {
|
|
4161
|
+
dashArray: this.lineDashArray(),
|
|
4162
|
+
dashOffset: this.lineDashOffset(),
|
|
4163
|
+
width: this.lineWidth(),
|
|
4164
|
+
},
|
|
4165
|
+
groupBorder: {
|
|
4166
|
+
padding: this.swissGroupPadding(),
|
|
4167
|
+
radius: this.swissGroupBorderRadius(),
|
|
4168
|
+
width: this.lineWidth(),
|
|
4169
|
+
},
|
|
4170
|
+
colors: this.swissColors(),
|
|
4171
|
+
idPrefix: this.elementId,
|
|
4172
|
+
});
|
|
4173
|
+
}
|
|
3848
4174
|
return drawMan({
|
|
3849
4175
|
columnGap: this.columnGap(),
|
|
3850
4176
|
upperLowerGap: this.rowRoundGap(),
|
|
@@ -3898,19 +4224,20 @@ class NewBracketComponent {
|
|
|
3898
4224
|
});
|
|
3899
4225
|
}
|
|
3900
4226
|
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 }); }
|
|
4227
|
+
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 }, 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}.et-bracket-new-svg .et-bracket-new-swiss-group-border{color:var(--bracket-swiss-group-border-color, var(--bracket-line-color))}\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
4228
|
}
|
|
3903
4229
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: NewBracketComponent, decorators: [{
|
|
3904
4230
|
type: Component,
|
|
3905
4231
|
args: [{ selector: 'et-new-bracket', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
3906
4232
|
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 }] }] } });
|
|
4233
|
+
}, 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}.et-bracket-new-svg .et-bracket-new-swiss-group-border{color:var(--bracket-swiss-group-border-color, var(--bracket-line-color))}\n"] }]
|
|
4234
|
+
}], 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 }] }], 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 }] }] } });
|
|
3909
4235
|
|
|
3910
4236
|
var index = /*#__PURE__*/Object.freeze({
|
|
3911
4237
|
__proto__: null,
|
|
3912
4238
|
BRACKET_DATA_LAYOUT: BRACKET_DATA_LAYOUT,
|
|
3913
4239
|
BRACKET_ROUND_MIRROR_TYPE: BRACKET_ROUND_MIRROR_TYPE,
|
|
4240
|
+
BRACKET_SWISS_GROUP_COLOR_TYPE: BRACKET_SWISS_GROUP_COLOR_TYPE,
|
|
3914
4241
|
BracketMap: BracketMap,
|
|
3915
4242
|
COMMON_BRACKET_ROUND_TYPE: COMMON_BRACKET_ROUND_TYPE,
|
|
3916
4243
|
DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE: DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE,
|
|
@@ -3919,7 +4246,9 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3919
4246
|
NewBracketDefaultMatchComponent: NewBracketDefaultMatchComponent,
|
|
3920
4247
|
NewBracketDefaultRoundHeaderComponent: NewBracketDefaultRoundHeaderComponent,
|
|
3921
4248
|
SINGLE_ELIMINATION_BRACKET_ROUND_TYPE: SINGLE_ELIMINATION_BRACKET_ROUND_TYPE,
|
|
4249
|
+
SWISS_ADVANCE_WINS: SWISS_ADVANCE_WINS,
|
|
3922
4250
|
SWISS_BRACKET_ROUND_TYPE: SWISS_BRACKET_ROUND_TYPE,
|
|
4251
|
+
SWISS_ELIMINATE_LOSSES: SWISS_ELIMINATE_LOSSES,
|
|
3923
4252
|
TOURNAMENT_MODE: TOURNAMENT_MODE,
|
|
3924
4253
|
canRenderLayoutInTournamentMode: canRenderLayoutInTournamentMode,
|
|
3925
4254
|
createMatchesMapBase: createMatchesMapBase,
|
|
@@ -3940,7 +4269,10 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3940
4269
|
generateTournamentModeFormEthleteRounds: generateTournamentModeFormEthleteRounds,
|
|
3941
4270
|
generateTournamentModeFormGgData: generateTournamentModeFormGgData,
|
|
3942
4271
|
getAvailableSwissGroupsForRound: getAvailableSwissGroupsForRound,
|
|
3943
|
-
|
|
4272
|
+
getSwissGroupColorType: getSwissGroupColorType,
|
|
4273
|
+
injectNewBracketConfig: injectNewBracketConfig,
|
|
4274
|
+
logRoundRelations: logRoundRelations,
|
|
4275
|
+
provideNewBracketConfig: provideNewBracketConfig
|
|
3944
4276
|
});
|
|
3945
4277
|
|
|
3946
4278
|
const VALIDATOR_ERROR_SERVICE_TOKEN = new InjectionToken('VALIDATOR_ERROR_SERVICE');
|
|
@@ -19462,5 +19794,5 @@ const TABS_CONFIG = new InjectionToken('TABS_CONFIG');
|
|
|
19462
19794
|
* Generated bundle index. Do not edit.
|
|
19463
19795
|
*/
|
|
19464
19796
|
|
|
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 };
|
|
19797
|
+
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
19798
|
//# sourceMappingURL=ethlete-cdk.mjs.map
|