@ethlete/components 1.0.0-next.112 → 1.0.0-next.114
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 +18 -0
- package/design/scrollable.ts +0 -3
- package/fesm2022/ethlete-components.mjs +209 -62
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/overlay/overlay-container.component.css +6 -1
- package/src/lib/overlay/strategies/sheet-styles.component.css +33 -16
- package/src/lib/scrollable/headless/scrollable-masks.component.css +4 -4
- package/types/ethlete-components.d.ts +3 -2
package/package.json
CHANGED
|
@@ -163,10 +163,15 @@
|
|
|
163
163
|
display: none !important;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
.et-force-invisible {
|
|
166
|
+
.et-force-invisible:not(.et-overlay-focus-before-enter) {
|
|
167
167
|
visibility: hidden !important;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
.et-force-invisible.et-overlay-focus-before-enter {
|
|
171
|
+
opacity: 0 !important;
|
|
172
|
+
pointer-events: none !important;
|
|
173
|
+
}
|
|
174
|
+
|
|
170
175
|
.et-overlay--dialog .et-button:where([data-variant='filled']) {
|
|
171
176
|
--et-button-shadow: inset 0 0 0 1px light-dark(var(--et-tone-text), transparent);
|
|
172
177
|
}
|
|
@@ -8,21 +8,31 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.et-overlay.et-with-default-animation {
|
|
11
|
-
/* Color of the overshoot filler painted past a sheet's docked edge (see the per-direction
|
|
12
|
-
box-shadows below). Sourced from the surface token — which the container always forces onto
|
|
13
|
-
the host by elevation — because most sheet content (e.g. a date picker) paints its background
|
|
14
|
-
on a nested element, leaving the host itself transparent, so `inherit` would paint nothing.
|
|
15
|
-
Falls back to transparent (no filler) for overlays opened without surface themes. */
|
|
16
11
|
--_et-overlay-overshoot-fill: var(--et-surface-background, transparent);
|
|
17
12
|
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
&:where(.et-overlay--bottom-sheet, .et-overlay--top-sheet, .et-overlay--left-sheet, .et-overlay--right-sheet) {
|
|
14
|
+
/* The fill extends past the pane's docked edge. The rounded content root keeps its own overflow clip. */
|
|
15
|
+
overflow: visible;
|
|
16
|
+
|
|
17
|
+
&::before {
|
|
18
|
+
content: '';
|
|
19
|
+
position: absolute;
|
|
20
|
+
inset: 0;
|
|
21
|
+
border-radius: inherit;
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (pointer: coarse) {
|
|
20
26
|
/* Android Chrome can show an unpainted frame when the first drag transforms a large
|
|
21
27
|
scrollable sheet. Keep its compositor layer ready while it is open. */
|
|
22
28
|
will-change: transform;
|
|
23
29
|
}
|
|
24
30
|
}
|
|
25
31
|
|
|
32
|
+
&:is(.et-overlay--bottom-sheet, .et-overlay--top-sheet)::before {
|
|
33
|
+
inset-inline: calc(-1 * var(--et-overlay-surface-border-width));
|
|
34
|
+
}
|
|
35
|
+
|
|
26
36
|
&.et-overlay--bottom-sheet {
|
|
27
37
|
&.et-animation-enter-from,
|
|
28
38
|
&.et-animation-leave-to {
|
|
@@ -41,12 +51,10 @@
|
|
|
41
51
|
transition: transform 150ms var(--ease-in-5);
|
|
42
52
|
}
|
|
43
53
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
element's own box-shadow is not clipped by its own overflow — a child/`::after` would be. */
|
|
49
|
-
box-shadow: 0 50px 0 0 var(--_et-overlay-overshoot-fill);
|
|
54
|
+
&::before {
|
|
55
|
+
inset-block-start: calc(-1 * var(--et-overlay-surface-border-width));
|
|
56
|
+
box-shadow: 0 50px 0 0 var(--_et-overlay-overshoot-fill);
|
|
57
|
+
}
|
|
50
58
|
|
|
51
59
|
/* `translate` and `scale` compose with the `transform` that the enter, leave and drag
|
|
52
60
|
animations write, so the stack never fights them. */
|
|
@@ -85,7 +93,10 @@
|
|
|
85
93
|
transition: transform 150ms var(--ease-in-5);
|
|
86
94
|
}
|
|
87
95
|
|
|
88
|
-
|
|
96
|
+
&::before {
|
|
97
|
+
inset-block-end: calc(-1 * var(--et-overlay-surface-border-width));
|
|
98
|
+
box-shadow: 0 -50px 0 0 var(--_et-overlay-overshoot-fill);
|
|
99
|
+
}
|
|
89
100
|
}
|
|
90
101
|
|
|
91
102
|
/* Side sheets dock to a *logical* inline edge (the position strategy uses `start`/`end`), but
|
|
@@ -117,7 +128,10 @@
|
|
|
117
128
|
transition: transform 150ms var(--ease-in-5);
|
|
118
129
|
}
|
|
119
130
|
|
|
120
|
-
|
|
131
|
+
&::before {
|
|
132
|
+
inset-inline-end: calc(-1 * var(--et-overlay-surface-border-width));
|
|
133
|
+
box-shadow: calc(50px * var(--_et-overlay-sheet-slide-sign)) 0 0 0 var(--_et-overlay-overshoot-fill);
|
|
134
|
+
}
|
|
121
135
|
}
|
|
122
136
|
|
|
123
137
|
&.et-overlay--right-sheet {
|
|
@@ -144,7 +158,10 @@
|
|
|
144
158
|
transition: transform 150ms var(--ease-in-5);
|
|
145
159
|
}
|
|
146
160
|
|
|
147
|
-
|
|
161
|
+
&::before {
|
|
162
|
+
inset-inline-start: calc(-1 * var(--et-overlay-surface-border-width));
|
|
163
|
+
box-shadow: calc(50px * var(--_et-overlay-sheet-slide-sign)) 0 0 0 var(--_et-overlay-overshoot-fill);
|
|
164
|
+
}
|
|
148
165
|
}
|
|
149
166
|
}
|
|
150
167
|
|
|
@@ -123,9 +123,9 @@
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.et-scrollable.et-scrollable--can-scroll
|
|
126
|
+
.et-scrollable.et-scrollable--can-scroll:not(.et-scrollable--is-at-start) {
|
|
127
127
|
& > .et-scrollable-wrapper > .et-scrollable-container {
|
|
128
|
-
--_et-scrollable-mask-start: var(--_et-scrollable-mask-length);
|
|
128
|
+
--_et-scrollable-mask-start: var(--et-scrollable-mask-start-size, var(--_et-scrollable-mask-length));
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
& > .et-scrollable-wrapper > .et-scrollable-masks .et-scrollable-mask--start {
|
|
@@ -133,9 +133,9 @@
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.et-scrollable.et-scrollable--can-scroll
|
|
136
|
+
.et-scrollable.et-scrollable--can-scroll:not(.et-scrollable--is-at-end) {
|
|
137
137
|
& > .et-scrollable-wrapper > .et-scrollable-container {
|
|
138
|
-
--_et-scrollable-mask-end: var(--_et-scrollable-mask-length);
|
|
138
|
+
--_et-scrollable-mask-end: var(--et-scrollable-mask-end-size, var(--_et-scrollable-mask-length));
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
& > .et-scrollable-wrapper > .et-scrollable-masks .et-scrollable-mask--end {
|
|
@@ -5540,6 +5540,7 @@ export declare class ScrollableDirective {
|
|
|
5540
5540
|
private hasUserTakenOverScroll;
|
|
5541
5541
|
containerScrollState: Signal<import("@ethlete/core").ElementScrollState>;
|
|
5542
5542
|
private containerScrolls;
|
|
5543
|
+
private scrollEdges;
|
|
5543
5544
|
isAtStart: Signal<boolean>;
|
|
5544
5545
|
isAtEnd: Signal<boolean>;
|
|
5545
5546
|
canScroll: Signal<boolean>;
|
|
@@ -5576,7 +5577,7 @@ export declare class ScrollableDirective {
|
|
|
5576
5577
|
private pinActiveChild;
|
|
5577
5578
|
private keepActiveChildPinnedOnLayoutChange;
|
|
5578
5579
|
private scrollToEdge;
|
|
5579
|
-
private
|
|
5580
|
+
private measureScrollEdges;
|
|
5580
5581
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableDirective, never>;
|
|
5581
5582
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollableDirective, "[etScrollable]", ["etScrollable"], {
|
|
5582
5583
|
"itemSize": {
|
|
@@ -37604,5 +37605,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
|
|
|
37604
37605
|
export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
|
|
37605
37606
|
export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
|
|
37606
37607
|
/** The version of `@ethlete/components` this build was cut from. */
|
|
37607
|
-
export declare const COMPONENTS_VERSION = "1.0.0-next.
|
|
37608
|
+
export declare const COMPONENTS_VERSION = "1.0.0-next.114";
|
|
37608
37609
|
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 };
|