@ethlete/core 4.31.0 → 5.0.0-beta.11
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 +147 -0
- package/fesm2022/ethlete-core.mjs +5585 -4969
- package/fesm2022/ethlete-core.mjs.map +1 -1
- package/generators/generators.json +19 -0
- package/generators/migrate-to-v5/color-naming.js +173 -0
- package/generators/migrate-to-v5/create-provider.js +158 -0
- package/generators/migrate-to-v5/migration.js +34 -0
- package/generators/migrate-to-v5/router-state-service.js +1064 -0
- package/generators/migrate-to-v5/schema.json +34 -0
- package/generators/migrate-to-v5/viewport-service.js +1678 -0
- package/generators/tailwind-4-color-theme/generator.js +513 -0
- package/generators/tailwind-4-color-theme/schema.json +32 -0
- package/generators/tailwind-4-surface-theme/generator.js +368 -0
- package/generators/tailwind-4-surface-theme/schema.json +32 -0
- package/package.json +20 -12
- package/types/ethlete-core.d.ts +2622 -0
- package/index.d.ts +0 -1975
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,152 @@
|
|
|
1
1
|
# @ethlete/core
|
|
2
2
|
|
|
3
|
+
## 5.0.0-beta.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ddb5d09`](https://github.com/ethlete-io/ethdk/commit/ddb5d09e4bc56e18cc8c228aa78a200441e7a766) Thanks [@TomTomB](https://github.com/TomTomB)! - Bump to beta
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`ddb5d09`](https://github.com/ethlete-io/ethdk/commit/ddb5d09e4bc56e18cc8c228aa78a200441e7a766)]:
|
|
10
|
+
- @ethlete/types@2.0.0-beta.4
|
|
11
|
+
|
|
12
|
+
## 5.0.0-next.10
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`a690217`](https://github.com/ethlete-io/ethdk/commit/a6902172efd9bd1956a16237e79acbfbd816d946) Thanks [@TomTomB](https://github.com/TomTomB)! - Version bump only
|
|
17
|
+
|
|
18
|
+
## 5.0.0-next.9
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- [`5d1d3ac`](https://github.com/ethlete-io/ethdk/commit/5d1d3accbd4a7657bc50cdc0653a7ca24fe761e2) Thanks [@TomTomB](https://github.com/TomTomB)! - Add overlay runtime
|
|
23
|
+
|
|
24
|
+
- [`5d1d3ac`](https://github.com/ethlete-io/ethdk/commit/5d1d3accbd4a7657bc50cdc0653a7ca24fe761e2) Thanks [@TomTomB](https://github.com/TomTomB)! - Cleanup surface and color theming
|
|
25
|
+
|
|
26
|
+
## 5.0.0-next.8
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- [#2958](https://github.com/ethlete-io/ethdk/pull/2958) [`8ecdfc0`](https://github.com/ethlete-io/ethdk/commit/8ecdfc00d785b0b535601b5d95ca7e2cd55455b6) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add surface theming support alongside color theming
|
|
31
|
+
|
|
32
|
+
## 5.0.0-next.7
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- [`5ef2e15`](https://github.com/ethlete-io/ethdk/commit/5ef2e15369fcc1939a1a4b157960280571e14b55) Thanks [@TomTomB](https://github.com/TomTomB)! - Version bump for internal api changes
|
|
37
|
+
|
|
38
|
+
## 5.0.0-next.6
|
|
39
|
+
|
|
40
|
+
### Minor Changes
|
|
41
|
+
|
|
42
|
+
- [#2926](https://github.com/ethlete-io/ethdk/pull/2926) [`26966e3`](https://github.com/ethlete-io/ethdk/commit/26966e316e58694ef898f60cab7f5fd8a8d34381) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add user consent provider for bridging the gap to cookie banners
|
|
43
|
+
|
|
44
|
+
## 5.0.0-next.5
|
|
45
|
+
|
|
46
|
+
### Minor Changes
|
|
47
|
+
|
|
48
|
+
- [`9c59877`](https://github.com/ethlete-io/ethdk/commit/9c5987733133b9baa18b53eb5190f64c1ef010ba) Thanks [@TomTomB](https://github.com/TomTomB)! - Add scroll observer directives
|
|
49
|
+
|
|
50
|
+
- [#2925](https://github.com/ethlete-io/ethdk/pull/2925) [`9a029e6`](https://github.com/ethlete-io/ethdk/commit/9a029e62c0e23b870e7972e19b3f7c1d2358ef95) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `breakpointTransformBase`, `boolBreakpointTransform`, `numberBreakpointTransform` and `typedBreakpointTransform` for creating inputs that react to breakpoint changes if configured as such
|
|
51
|
+
|
|
52
|
+
## 5.0.0-next.4
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- [#2923](https://github.com/ethlete-io/ethdk/pull/2923) [`5c5fc57`](https://github.com/ethlete-io/ethdk/commit/5c5fc57e2e45b5fd78f0d20bacf0ec310cc84e2b) Thanks [@github-actions](https://github.com/apps/github-actions)! - Support inferring mime types from data uris
|
|
57
|
+
|
|
58
|
+
## 5.0.0-next.3
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- [`58525cd`](https://github.com/ethlete-io/ethdk/commit/58525cd7123c8e20739b0841b2f0abf5920296f1) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix error NG0600 created by using the focus visible provider
|
|
63
|
+
|
|
64
|
+
## 5.0.0-next.2
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- [`95e656d`](https://github.com/ethlete-io/ethdk/commit/95e656d036368a48cbd17a399f7c0c61c49ab0fa) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix angular root element discovery failing if its not there during the first check
|
|
69
|
+
|
|
70
|
+
- [`95e656d`](https://github.com/ethlete-io/ethdk/commit/95e656d036368a48cbd17a399f7c0c61c49ab0fa) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix animated lifecycle skipping interrupted transitions
|
|
71
|
+
|
|
72
|
+
- [`95e656d`](https://github.com/ethlete-io/ethdk/commit/95e656d036368a48cbd17a399f7c0c61c49ab0fa) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix scrollbar dimensions signal not returning the actual scrollbar dimensions
|
|
73
|
+
|
|
74
|
+
## 5.0.0-next.1
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- [#2920](https://github.com/ethlete-io/ethdk/pull/2920) [`377bd7a`](https://github.com/ethlete-io/ethdk/commit/377bd7a00b89aef516d312c909e236fcc1ed5077) Thanks [@github-actions](https://github.com/apps/github-actions)! - Change renderer.removeStyle function signature to support style flags
|
|
79
|
+
|
|
80
|
+
- Updated dependencies [[`d99c3f0`](https://github.com/ethlete-io/ethdk/commit/d99c3f0fc3d6b3b0e7105d21d1f7119cde68b561)]:
|
|
81
|
+
- @ethlete/types@2.0.0-next.0
|
|
82
|
+
|
|
83
|
+
## 5.0.0-next.0
|
|
84
|
+
|
|
85
|
+
### Major Changes
|
|
86
|
+
|
|
87
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ScrollObserverLastElementDirective`
|
|
88
|
+
|
|
89
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`e4a7c6f`](https://github.com/ethlete-io/ethdk/commit/e4a7c6ff868e6dd541d4533e509b30821f6c83b5) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `IsActiveElementDirective`. If used inside a `ScrollableComponent`, the `ScrollableIsActiveChildDirective` should be used instead.
|
|
90
|
+
|
|
91
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d080bb2`](https://github.com/ethlete-io/ethdk/commit/d080bb2cc246d4559ffcbf88c319b9437133d377) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ObserveResizeDirective`. Use `signalElementDimensions()` instead.
|
|
92
|
+
|
|
93
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ObserveScrollStateDirective`
|
|
94
|
+
|
|
95
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ScrollObserverFirstElementDirective`
|
|
96
|
+
|
|
97
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d8f381f`](https://github.com/ethlete-io/ethdk/commit/d8f381f39710db99c2f26af64dbf9e4df75c8a49) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `LetDirective`. The migration will try to auto migrate all usages, but manual review is required (applies to `*etLet` and `*ngLet`)
|
|
98
|
+
|
|
99
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - The `ViewportService` has been removed. The migration will try to auto migrate all usages, but manual review is required.
|
|
100
|
+
|
|
101
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`f4847d4`](https://github.com/ethlete-io/ethdk/commit/f4847d4eb25b70706a4ee8c81addcd58a7d99995) Thanks [@github-actions](https://github.com/apps/github-actions)! - You must run yarn nx generate @ethlete/core:migrate-to-v5 after updating to this version. **Please check the console output for warnings about any manual code changes that may be needed.**
|
|
102
|
+
|
|
103
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`f5ad487`](https://github.com/ethlete-io/ethdk/commit/f5ad4879061917e91bebf144889774226202308b) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove `RootBoundaryDirective`. Replaced by `provideBoundaryElement()` function
|
|
104
|
+
|
|
105
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`55dc627`](https://github.com/ethlete-io/ethdk/commit/55dc627a6a49f3a8a5c8f80f63f163e443e07099) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `CursorDragScrollDirective`. Use `useCursorDragScroll()` function instead
|
|
106
|
+
|
|
107
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `IsElementDirective`. Usages will be migrated to the (now about 2 years old) "new" `ScrollableIsActiveChildDirective`
|
|
108
|
+
|
|
109
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d080bb2`](https://github.com/ethlete-io/ethdk/commit/d080bb2cc246d4559ffcbf88c319b9437133d377) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ResizeObserverService`
|
|
110
|
+
|
|
111
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`e4a7c6f`](https://github.com/ethlete-io/ethdk/commit/e4a7c6ff868e6dd541d4533e509b30821f6c83b5) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove `DelayableDirective` since it's only used specifically inside the now legacy `InfinityQueryDirective`. If this functionality was needed, use the new `provideInfinityQueryResponseDelay()` provider instead.
|
|
112
|
+
|
|
113
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d8f381f`](https://github.com/ethlete-io/ethdk/commit/d8f381f39710db99c2f26af64dbf9e4df75c8a49) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove deprecated `provideThemes` call. Usages will be migrated to `provideColorThemes`. Also migrate all theming usages from @ethlete/cdk to @ethlete/core.
|
|
114
|
+
|
|
115
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ScrollObserverIgnoreTargetDirective`
|
|
116
|
+
|
|
117
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`6e41e09`](https://github.com/ethlete-io/ethdk/commit/6e41e09668d2077fba27de1e11bacc98480becfe) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ClickObserverService`
|
|
118
|
+
|
|
119
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d080bb2`](https://github.com/ethlete-io/ethdk/commit/d080bb2cc246d4559ffcbf88c319b9437133d377) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ObserveContentDirective`. Use `signalElementMutations()` instead.
|
|
120
|
+
|
|
121
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`5e764b9`](https://github.com/ethlete-io/ethdk/commit/5e764b92cbcc6b6ec288a84b397d291f0b1138fb) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ObserveVisibilityDirective`. `signalElementIntersection()` function should be used instead
|
|
122
|
+
|
|
123
|
+
### Minor Changes
|
|
124
|
+
|
|
125
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`99b3f64`](https://github.com/ethlete-io/ethdk/commit/99b3f646701cb763512e7148592457dc509f55e5) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add generator to create a Tailwind CSS v4 theme based on predefined themes.
|
|
126
|
+
Run it via `nx g @ethlete/core:tailwind-4-theme --themesPath=<path-to-themes> --outputPath=<output-css-file-path>`.
|
|
127
|
+
You should also replace all usages of `provideColorThemes(themes)` with `provideColorThemesWithTailwind4(themes)` after.
|
|
128
|
+
Don't forget to add the generated css file to you main css entry point.
|
|
129
|
+
|
|
130
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`f5ad487`](https://github.com/ethlete-io/ethdk/commit/f5ad4879061917e91bebf144889774226202308b) Thanks [@github-actions](https://github.com/apps/github-actions)! - Expose the created injection token as a third element returned by the `createProvider()` function
|
|
131
|
+
|
|
132
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`3d7f302`](https://github.com/ethlete-io/ethdk/commit/3d7f30253502adada00825fda3653441c01071da) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `injectAngularRootElement` util to get access to the application's root html element
|
|
133
|
+
|
|
134
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`3d7f302`](https://github.com/ethlete-io/ethdk/commit/3d7f30253502adada00825fda3653441c01071da) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `applyHeadTitleBinding` util for easier management of document titles
|
|
135
|
+
|
|
136
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`451e170`](https://github.com/ethlete-io/ethdk/commit/451e170f2df1c49fca07bde053efa75bd23ca22f) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `createRootProvider` and `createStaticRootProvider` utils. Providers created by these utils are automatically provided in the root injector.
|
|
137
|
+
|
|
138
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`3d7f302`](https://github.com/ethlete-io/ethdk/commit/3d7f30253502adada00825fda3653441c01071da) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `injectIsRouterInitialized` util
|
|
139
|
+
|
|
140
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`5e764b9`](https://github.com/ethlete-io/ethdk/commit/5e764b92cbcc6b6ec288a84b397d291f0b1138fb) Thanks [@github-actions](https://github.com/apps/github-actions)! - Allow container to be null inside `isElementVisible()` function to check against the viewport
|
|
141
|
+
|
|
142
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d8f381f`](https://github.com/ethlete-io/ethdk/commit/d8f381f39710db99c2f26af64dbf9e4df75c8a49) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `createStaticProviderWithDefaults` util
|
|
143
|
+
|
|
144
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`8a85984`](https://github.com/ethlete-io/ethdk/commit/8a859841acaf7c10c876c7eb921f4c7e25e41764) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `signalAnimatedNumber()` util
|
|
145
|
+
|
|
146
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`5e764b9`](https://github.com/ethlete-io/ethdk/commit/5e764b92cbcc6b6ec288a84b397d291f0b1138fb) Thanks [@github-actions](https://github.com/apps/github-actions)! - Allow element to be null inside `elementCanScroll()` function to check the viewport
|
|
147
|
+
|
|
148
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`e4a7c6f`](https://github.com/ethlete-io/ethdk/commit/e4a7c6ff868e6dd541d4533e509b30821f6c83b5) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add optional inject flag options to the inject function returned by `createProvider()`
|
|
149
|
+
|
|
3
150
|
## 4.31.0
|
|
4
151
|
|
|
5
152
|
### Minor Changes
|