@ethlete/core 5.0.0-next.56 → 5.0.0-next.58
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 +41 -0
- package/fesm2022/ethlete-core.mjs +446 -548
- package/fesm2022/ethlete-core.mjs.map +1 -1
- package/package.json +6 -6
- package/types/ethlete-core.d.ts +68 -199
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @ethlete/core
|
|
2
2
|
|
|
3
|
+
## 5.0.0-next.58
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add `signalCountdown(deadline)`, a signal of the days, hours, minutes and seconds left until a deadline, recounted on the whole second.
|
|
8
|
+
- Overlays and `[etTooltip]` can anchor to an SVG element, and `[etTooltip]` takes an `anchor` input to point at an element other than its trigger; core exports `isElement` and `isHTMLOrSVGElement`.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Place `takeUntilDestroyed()` last in every pipe, so operators after it no longer run or stay subscribed after destroy.
|
|
13
|
+
|
|
14
|
+
## 5.0.0-next.57
|
|
15
|
+
|
|
16
|
+
### Major Changes
|
|
17
|
+
|
|
18
|
+
- `signalElementMutations` now returns `Signal<MutationRecord[]>` with every record of a batch, where it returned only the first record or `null`. Read `.at(-1)` for the old single record.
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- The Angular peer dependency moves from 22.0.7 to 22.1.6. Angular 22.0.x is affected by
|
|
23
|
+
GHSA-hh8m-fm6v-7cvg, a sanitization bypass through directive host bindings, fixed in 22.1.0.
|
|
24
|
+
- `createOverlayOpener(definition, { single: 'replace' })` keeps one overlay open and replaces it on the next `open()`, through the unsaved-changes guard (`dismissSources.replace`); share one slot across openers with `createOverlaySingleSlot()`.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- An anchored overlay near a side edge now keeps its placement and shifts along the edge. Before, a `top` pane next to the right edge flipped to `left`.
|
|
29
|
+
- `provideAppUpdates` detects a new deploy again when the entry scripts sit at the end of `<body>`, as the Angular CLI emits them, and ignores scripts the app appended itself.
|
|
30
|
+
- Core: overlays close and restore focus in a pop-up window, `unbindProps` undoes everything `bindProps` applied, cookie helpers no-op on the server, `equal()` compares `Date`s by tag, and `memoizeSignal` caches per application.
|
|
31
|
+
- Animations: `@ethlete/core` now ships the `--ease-*` tokens its own stylesheets transition with, through `mountEasingTokens()`, so an app that loads no `@ethlete/cdk` stylesheet no longer loses every overlay animation.
|
|
32
|
+
- `signalElementDimensions` now accepts a `viewChild.required(...)`. Before, it read the element while the component was created and threw NG0951.
|
|
33
|
+
- The focus-visible tracker now reports keyboard focus after a bare Shift press, like the browser's `:focus-visible`.
|
|
34
|
+
- Tearing down an app with an open overlay no longer logs Angular's NG0406 "ApplicationRef has already been destroyed" warning.
|
|
35
|
+
- Overlays can be mounted `passive` and are then skipped as the top layer, so a dialog still closes on a backdrop press while a tooltip shows inside it.
|
|
36
|
+
- An overlay now restores focus to its opener only when focus is still inside it at teardown, so an outside press that focuses another control keeps focus there.
|
|
37
|
+
- Title bindings created after the first navigation has completed apply at once instead of waiting for the next navigation.
|
|
38
|
+
- A meta or link binding that switches to another tag (a resource hint whose URL changes, an alternate link whose `hreflang` changes) removes the old tag instead of leaving it in `<head>`.
|
|
39
|
+
- Type `SurfaceTheme['name']` as `RegisteredSurfaceThemeName`. An app that augments
|
|
40
|
+
`EthleteSurfaceThemeNameRegistry` now gets its theme definitions checked against the same union as
|
|
41
|
+
`etProvideSurface`, and the internal provider sync compiles again. Apps that register no names keep
|
|
42
|
+
plain `string`.
|
|
43
|
+
|
|
3
44
|
## 5.0.0-next.56
|
|
4
45
|
|
|
5
46
|
### Patch Changes
|