@ethlete/components 1.0.0-next.111 → 1.0.0-next.112
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/package.json
CHANGED
|
@@ -11,6 +11,8 @@ import { Observable } from "rxjs";
|
|
|
11
11
|
import * as i1 from "@angular/router";
|
|
12
12
|
import { RouterLink } from "@angular/router";
|
|
13
13
|
export type AccordionConfig = {
|
|
14
|
+
/** Default for `scrollOnOpen` on every accordion. An explicit `[scrollOnOpen]` input still wins. */
|
|
15
|
+
scrollOnOpen?: boolean;
|
|
14
16
|
/** Default for `lastDivider` on every accordion group. An explicit `[lastDivider]` input still wins. */
|
|
15
17
|
lastDivider?: boolean;
|
|
16
18
|
};
|
|
@@ -48,6 +50,9 @@ export declare const ACCORDION_ERROR_CODES: {
|
|
|
48
50
|
*/
|
|
49
51
|
export declare class AccordionDirective {
|
|
50
52
|
private group;
|
|
53
|
+
private config;
|
|
54
|
+
private injector;
|
|
55
|
+
private destroyRef;
|
|
51
56
|
/** Whether the panel is expanded. Two-way bindable. */
|
|
52
57
|
isOpen: import("@angular/core").ModelSignal<boolean>;
|
|
53
58
|
/**
|
|
@@ -60,6 +65,8 @@ export declare class AccordionDirective {
|
|
|
60
65
|
* disabled, so screen-reader users can still reach the header and hear that it can't be expanded.
|
|
61
66
|
*/
|
|
62
67
|
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
68
|
+
/** Reveal the panel after the user opens it with the trigger. Defaults to `true`. */
|
|
69
|
+
scrollOnOpen: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
63
70
|
/**
|
|
64
71
|
* Set one frame after the first render. Gate open/close transitions on `[data-can-animate]` so a
|
|
65
72
|
* panel that starts open renders open instead of animating in.
|
|
@@ -76,16 +83,19 @@ export declare class AccordionDirective {
|
|
|
76
83
|
* collapse would throw away its state and leave nothing to animate the collapse with.
|
|
77
84
|
*/
|
|
78
85
|
hasBeenOpened: import("@angular/core").WritableSignal<boolean>;
|
|
86
|
+
private shouldScrollOnOpen;
|
|
87
|
+
private scrollRequest;
|
|
79
88
|
constructor();
|
|
80
89
|
/** Expand the panel. No-op while `disabled`. */
|
|
81
90
|
open(): void;
|
|
82
91
|
/** Collapse the panel. Works even while `disabled` - a disabled accordion can still be closed programmatically. */
|
|
83
92
|
close(): void;
|
|
84
93
|
/**
|
|
85
|
-
* Expand or collapse the panel
|
|
86
|
-
*
|
|
94
|
+
* Expand or collapse the panel. No-op while `disabled`, and no-op when this is the last open panel of a
|
|
95
|
+
* group with `preventCloseLast`.
|
|
87
96
|
*/
|
|
88
97
|
toggle(): void;
|
|
98
|
+
private revealOpenedPanel;
|
|
89
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionDirective, never>;
|
|
90
100
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionDirective, "[etAccordion]", ["etAccordion"], {
|
|
91
101
|
"isOpen": {
|
|
@@ -103,6 +113,11 @@ export declare class AccordionDirective {
|
|
|
103
113
|
"required": false;
|
|
104
114
|
"isSignal": true;
|
|
105
115
|
};
|
|
116
|
+
"scrollOnOpen": {
|
|
117
|
+
"alias": "scrollOnOpen";
|
|
118
|
+
"required": false;
|
|
119
|
+
"isSignal": true;
|
|
120
|
+
};
|
|
106
121
|
}, {
|
|
107
122
|
"isOpen": "isOpenChange";
|
|
108
123
|
}, never, never, true, never>;
|
|
@@ -232,7 +247,6 @@ export declare class AccordionGroupComponent {
|
|
|
232
247
|
*/
|
|
233
248
|
export declare class AccordionPanelDirective {
|
|
234
249
|
protected accordion: import("@ethlete/components").AccordionDirective | null;
|
|
235
|
-
private hostElement;
|
|
236
250
|
constructor();
|
|
237
251
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionPanelDirective, never>;
|
|
238
252
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionPanelDirective, "[etAccordionPanel]", ["etAccordionPanel"], {}, {}, never, never, true, never>;
|
|
@@ -354,6 +368,7 @@ export declare class AccordionComponent {
|
|
|
354
368
|
"isOpen": "isOpen";
|
|
355
369
|
"isOpenByDefault": "isOpenByDefault";
|
|
356
370
|
"disabled": "disabled";
|
|
371
|
+
"scrollOnOpen": "scrollOnOpen";
|
|
357
372
|
};
|
|
358
373
|
outputs: {
|
|
359
374
|
"isOpenChange": "isOpenChange";
|
|
@@ -37589,5 +37604,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
|
|
|
37589
37604
|
export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
|
|
37590
37605
|
export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
|
|
37591
37606
|
/** The version of `@ethlete/components` this build was cut from. */
|
|
37592
|
-
export declare const COMPONENTS_VERSION = "1.0.0-next.
|
|
37607
|
+
export declare const COMPONENTS_VERSION = "1.0.0-next.112";
|
|
37593
37608
|
export { type AlertDialogComponentSlot, type AlertDialogSlot, type AlertDialogTemplateSlot, type AppointmentTreeNode, BRACKET_DATA_LAYOUT, BRACKET_ERROR_CODES, BRACKET_FINAL_ALIGNMENT, BRACKET_ROUND_MIRROR_TYPE, BRACKET_SECTION_KEY, BRACKET_SWISS_GROUP_COLOR_TYPE, type Bracket, type BracketByeSlotSource, type BracketComponents, type BracketContinueComponent, type BracketDataLayout, type BracketDataSource, type BracketDrawing, type BracketEdge, type BracketExternalSlotSource, type BracketFinalAlignment, type BracketGradient, type BracketGradientStop, type BracketGridSection, type BracketLayoutSettings, BracketMap, type BracketMatch, type BracketMatchComponent, type BracketMatchFactor, type BracketMatchId, type BracketMatchInputs, type BracketMatchOutcomeSlotSource, type BracketMatchParticipant, type BracketMatchPosition, type BracketMatchRelation, type BracketMatchRelationNone, type BracketMatchRelationNothingToOne, type BracketMatchRelationOneToNothing, type BracketMatchRelationOneToOne, type BracketMatchRelationTwoToNothing, type BracketMatchRelationTwoToOne, type BracketMatchShortId, type BracketMatchSlot, type BracketMatchSource, type BracketMatchStatus, type BracketParticipant, type BracketParticipantMatch, type BracketPickMigration, type BracketPickMigrationOptions, type BracketPickSet, type BracketRect, type BracketRound, type BracketRoundHeaderComponent, type BracketRoundId, type BracketRoundMapWithSwissData, type BracketRoundMirrorType, type BracketRoundPosition, type BracketRoundRelation, type BracketRoundRelationNone, type BracketRoundRelationNothingToOne, type BracketRoundRelationOneToNothing, type BracketRoundRelationOneToOne, type BracketRoundRelationTwoToNothing, type BracketRoundRelationTwoToOne, type BracketRoundShortId, type BracketRoundSource, type BracketRoundSwissData, type BracketRoundSwissGroup, type BracketRoundSwissGroupId, type BracketRoundSwissGroupMap, type BracketRoundType, BracketRuntimeError, type BracketSectionKey, type BracketSectionTitleComponent, type BracketSeedSlotSource, type BracketSlotResolutionPolicy, type BracketSlotSource, type BracketSlotSourceKind, type BracketStandingRankSide, type BracketStandingRankSlotSource, type BracketSwissBucketSlotSource, type BracketSwissColors, type BracketSwissGroupColorType, type BracketWarning, COMMON_BRACKET_ROUND_TYPE, type CalendarBandPosition, type CalendarInterval, type CalendarPrecision, type CalendarSelectionFlags, type CalendarView, type CalendarWeekStartsOn, type CascaderCompareWith, type CascaderDataSource, type CascaderNode, type CommonBracketRoundType, type ComputedBracketGrid, type CreateBracketGridConfig, type CreateBracketOptions, type CreateGridAdapterOptions, DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE, type DateRangeSide, type DateRangeSide as TimeRangeInputSide, type DateRangeValue, type DateRangeValue as DateTimeRangeValue, type DateRangeValue as TimeRangeValue, type DoubleEliminationBracketRoundType, type DropzoneCropConfig, type DropzoneCropCorner, type DropzoneCropRect, type DropzoneCropShape, type DurationFormatSpec, type DurationSegment, type DurationUnit, GROUP_BRACKET_ROUND_TYPE, type GridAdapter, type GridAdapterBreakpoints, type GridConfig, type GroupBracketRoundType, type MatchParticipantId, type MatchParticipantShortId, type MatchParticipantSide, type ParticipantMatchResult, type PlaceholderBracketShape, type RichTextEditorHeadingLevel, type RichTextEditorImageFailure, type RichTextEditorImageFailureReason, type RichTextEditorImageUpload, type RichTextEditorImageUploadContext, type RichTextEditorImageUploadFn, type RichTextEditorTokenChip, type RichTextEditorTokenCodec, SINGLE_ELIMINATION_BRACKET_ROUND_TYPE, SWISS_BRACKET_ROUND_TYPE, type SchedulerAgendaDay, type SchedulerMonthDayCell, type SchedulerTimeGridAllDayEntry, type SchedulerTimeGridBlock, type SchedulerTimeGridDay, type SchedulerTimeGridSegment, type ScrollableActiveChildRef, type ScrollableButtonPosition, type ScrollableButtonsConfig, type ScrollableButtonsDefaults, type ScrollableChrome, type ScrollableChromeSlot, type ScrollableConfig, type ScrollableDirection, type ScrollableIntersectionChange, type ScrollableItemSize, type ScrollableLoadingTemplatePosition, type ScrollableLoadingTemplateRef, type ScrollableMaskVariant, type ScrollableNavigation, type ScrollableNavigationConfig, type ScrollableNavigationItem, type ScrollableResponsive, type ScrollableScrollMode, type ScrollableScrollOrigin, type ScrollableScrollState, type ScrollbarGeometry, type ScrollbarOrientation, type ScrollbarTarget, type SerializeOptions, type SingleEliminationBracketRoundType, type StandingPick, type StandingPickOutcome, type SwissBracketRoundType, TOURNAMENT_MODE, type TournamentMode, bracketSlot, createBracket, createPlaceholderBracketSource, injectRichTextEditorTools, isBracketSlotPredictable, migrateBracketPicks, resolveBracketSlot, standingRankSides, swapStandingRank, validateBracketSource };
|