@exhaustive-ui/core 22.0.0-alpha.5 → 22.0.0-alpha.7
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/README.md
CHANGED
|
@@ -32,18 +32,20 @@ ng add @exhaustive-ui/core
|
|
|
32
32
|
This installs the library and wires `provideExhaustive({ theme: { preset: Aura } })` into your
|
|
33
33
|
application config (pick a different preset with `--theme Lara|Material|Nora`).
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
ExhaustiveUI v22 requires **Angular 22**: its major versions follow Angular's.
|
|
36
36
|
|
|
37
37
|
`ng add` only sets up new projects — on a workspace that already uses PrimeNG it makes no changes
|
|
38
38
|
and points you to the migration schematic below.
|
|
39
39
|
|
|
40
40
|
## Migrating from PrimeNG
|
|
41
41
|
|
|
42
|
-
ExhaustiveUI is API-compatible with PrimeNG v21. On a PrimeNG v21 workspace, run the
|
|
43
|
-
migration schematic:
|
|
42
|
+
ExhaustiveUI is API-compatible with PrimeNG v21. On a PrimeNG v21 workspace updated to Angular 22, run the
|
|
43
|
+
dedicated migration schematic:
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
|
|
46
|
+
npm install @exhaustive-ui/core
|
|
47
|
+
ng generate @exhaustive-ui/core:migrate-from-primeng # options: --skip-install, --force
|
|
48
|
+
ng update @exhaustive-ui/core --migrate-only --from=3.0.0 # apply the v22 migrations below
|
|
47
49
|
```
|
|
48
50
|
|
|
49
51
|
This replaces `primeng` and `@primeuix/*` dependencies with their `@exhaustive-ui` counterparts, rewrites
|
|
@@ -54,6 +56,22 @@ listed as a warning for manual review.
|
|
|
54
56
|
|
|
55
57
|
Projects on PrimeNG v20 or older: upgrade to PrimeNG v21 first, then migrate.
|
|
56
58
|
|
|
59
|
+
## Updating to v22
|
|
60
|
+
|
|
61
|
+
v22 moves the library to the Angular Signals API. Templates bind as before, but code holding a component
|
|
62
|
+
instance reads inputs as signals (`table.selection()`) and writes two-way properties with `.set()`
|
|
63
|
+
(`drawer.visible.set(true)`). Components use `OnPush` change detection (except Table, TreeTable and
|
|
64
|
+
DynamicDialog), and inputs that were deprecated or had no effect are removed: `styleClass` becomes the
|
|
65
|
+
native `class` attribute on most components, Drawer's `showCloseIcon` becomes `closable`, and so on.
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
ng update @angular/core@22 @angular/cli@22
|
|
69
|
+
ng update @exhaustive-ui/core@22
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
`ng update` rewrites the affected templates and lists what it left for review. See the
|
|
73
|
+
[update guide](https://exhaustive-ui.com/migration/update#v22).
|
|
74
|
+
|
|
57
75
|
|
|
58
76
|
## 🚀 Quick Start
|
|
59
77
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exhaustive-ui/core",
|
|
3
|
-
"version": "22.0.0-alpha.
|
|
3
|
+
"version": "22.0.0-alpha.7",
|
|
4
4
|
"author": "e-xiste",
|
|
5
5
|
"description": "ExhaustiveUI is a community-maintained, MIT licensed UI library for Angular with 80+ accessible components and design-agnostic theming, including Aura, Material, Lara and Nora presets.",
|
|
6
6
|
"homepage": "https://exhaustive-ui.com/",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"tslib": "^2.3.0",
|
|
59
|
-
"@exhaustive-ui/motion": "22.0.0-alpha.
|
|
60
|
-
"@exhaustive-ui/styled": "22.0.0-alpha.
|
|
61
|
-
"@exhaustive-ui/
|
|
62
|
-
"@exhaustive-ui/
|
|
59
|
+
"@exhaustive-ui/motion": "22.0.0-alpha.7",
|
|
60
|
+
"@exhaustive-ui/styled": "22.0.0-alpha.7",
|
|
61
|
+
"@exhaustive-ui/styles": "22.0.0-alpha.7",
|
|
62
|
+
"@exhaustive-ui/utils": "22.0.0-alpha.7"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"chart.js": {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REMOVED_INPUT_GROUPS = void 0;
|
|
3
4
|
exports.default = default_1;
|
|
4
5
|
const package_json_1 = require("../../utils/package-json");
|
|
5
6
|
const removed_outputs_1 = require("../../utils/removed-outputs");
|
|
@@ -81,7 +82,7 @@ const removed_inputs_1 = require("../../utils/removed-inputs");
|
|
|
81
82
|
* `filterFields` on MultiSelect was stored but never read: the filter searches `filterBy`, else `optionLabel`
|
|
82
83
|
* (kept out of the leftover scan, Select and Listbox still read it).
|
|
83
84
|
*/
|
|
84
|
-
|
|
85
|
+
exports.REMOVED_INPUT_GROUPS = [
|
|
85
86
|
{ selector: 'p-toast', names: ['showTransformOptions', 'hideTransformOptions', 'showTransitionOptions', 'hideTransitionOptions'] },
|
|
86
87
|
{ selector: 'p-toastItem', names: ['showTransformOptions', 'hideTransformOptions', 'showTransitionOptions', 'hideTransitionOptions'] },
|
|
87
88
|
{ selector: 'p-message', names: ['showTransitionOptions', 'hideTransitionOptions'] },
|
|
@@ -171,7 +172,7 @@ const REMOVED_INPUT_GROUPS = [
|
|
|
171
172
|
* `visible`, and Scroller still exposes `itemSize`.
|
|
172
173
|
* Table's `frozenColumns`/`frozenWidth` are left out too: TreeTable still exposes working inputs of the same names.
|
|
173
174
|
*/
|
|
174
|
-
const LEFTOVER_SCAN_NAMES = Array.from(new Set(REMOVED_INPUT_GROUPS.flatMap((group) => group.names))).filter((name) => ![
|
|
175
|
+
const LEFTOVER_SCAN_NAMES = Array.from(new Set(exports.REMOVED_INPUT_GROUPS.flatMap((group) => group.names))).filter((name) => ![
|
|
175
176
|
'size',
|
|
176
177
|
'transitionOptions',
|
|
177
178
|
'inputId',
|
|
@@ -254,7 +255,7 @@ function default_1() {
|
|
|
254
255
|
if (original === undefined) {
|
|
255
256
|
return;
|
|
256
257
|
}
|
|
257
|
-
const result = (0, removed_inputs_1.removeDeadInputsInHtml)(original, REMOVED_INPUT_GROUPS);
|
|
258
|
+
const result = (0, removed_inputs_1.removeDeadInputsInHtml)(original, exports.REMOVED_INPUT_GROUPS);
|
|
258
259
|
if (result.changed) {
|
|
259
260
|
tree.overwrite(path, result.text);
|
|
260
261
|
filesChanged++;
|
|
@@ -267,7 +268,7 @@ function default_1() {
|
|
|
267
268
|
if (original === undefined) {
|
|
268
269
|
return;
|
|
269
270
|
}
|
|
270
|
-
const result = (0, removed_inputs_1.removeDeadInputsInTypeScript)(path, original, REMOVED_INPUT_GROUPS);
|
|
271
|
+
const result = (0, removed_inputs_1.removeDeadInputsInTypeScript)(path, original, exports.REMOVED_INPUT_GROUPS);
|
|
271
272
|
let text = original;
|
|
272
273
|
if (result.changed) {
|
|
273
274
|
text = result.text;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REMOVED_OUTPUT_GROUPS = void 0;
|
|
3
4
|
exports.default = default_1;
|
|
4
5
|
const package_json_1 = require("../../utils/package-json");
|
|
5
6
|
const removed_outputs_1 = require("../../utils/removed-outputs");
|
|
6
|
-
|
|
7
|
+
exports.REMOVED_OUTPUT_GROUPS = [
|
|
7
8
|
{
|
|
8
9
|
label: 'Overlay onAnimationStart/onAnimationDone',
|
|
9
10
|
names: ['onAnimationStart', 'onAnimationDone'],
|
|
@@ -47,7 +48,7 @@ function default_1() {
|
|
|
47
48
|
}
|
|
48
49
|
let text = original;
|
|
49
50
|
let changed = false;
|
|
50
|
-
for (const group of REMOVED_OUTPUT_GROUPS) {
|
|
51
|
+
for (const group of exports.REMOVED_OUTPUT_GROUPS) {
|
|
51
52
|
const result = (0, removed_outputs_1.removeBindings)(text, group.names);
|
|
52
53
|
if (result.changed) {
|
|
53
54
|
text = result.text;
|
|
@@ -68,7 +69,7 @@ function default_1() {
|
|
|
68
69
|
}
|
|
69
70
|
let text = original;
|
|
70
71
|
let changed = false;
|
|
71
|
-
for (const group of REMOVED_OUTPUT_GROUPS) {
|
|
72
|
+
for (const group of exports.REMOVED_OUTPUT_GROUPS) {
|
|
72
73
|
const result = (0, removed_outputs_1.removeBindingsInTypeScript)(path, text, group.names);
|
|
73
74
|
if (result.changed) {
|
|
74
75
|
text = result.text;
|
|
@@ -81,7 +82,7 @@ function default_1() {
|
|
|
81
82
|
tree.overwrite(path, text);
|
|
82
83
|
filesChanged++;
|
|
83
84
|
}
|
|
84
|
-
for (const group of REMOVED_OUTPUT_GROUPS) {
|
|
85
|
+
for (const group of exports.REMOVED_OUTPUT_GROUPS) {
|
|
85
86
|
const lines = (0, removed_outputs_1.findLeftoversInTypeScript)(path, text, group.names);
|
|
86
87
|
if (lines.length === 0) {
|
|
87
88
|
continue;
|
|
@@ -100,7 +101,7 @@ function default_1() {
|
|
|
100
101
|
else {
|
|
101
102
|
context.logger.info('No bindings for the removed outputs were found to remove.');
|
|
102
103
|
}
|
|
103
|
-
for (const group of REMOVED_OUTPUT_GROUPS) {
|
|
104
|
+
for (const group of exports.REMOVED_OUTPUT_GROUPS) {
|
|
104
105
|
const leftovers = leftoversByGroup.get(group);
|
|
105
106
|
if (!leftovers || leftovers.length === 0) {
|
|
106
107
|
continue;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"@exhaustive-ui/core": "^22.0.0-alpha.
|
|
3
|
-
"@exhaustive-ui/locale": "^22.0.0-alpha.
|
|
4
|
-
"@exhaustive-ui/motion": "^22.0.0-alpha.
|
|
5
|
-
"@exhaustive-ui/styled": "^22.0.0-alpha.
|
|
6
|
-
"@exhaustive-ui/styles": "^22.0.0-alpha.
|
|
7
|
-
"@exhaustive-ui/tailwindcss": "^22.0.0-alpha.
|
|
8
|
-
"@exhaustive-ui/themes": "^22.0.0-alpha.
|
|
9
|
-
"@exhaustive-ui/utils": "^22.0.0-alpha.
|
|
2
|
+
"@exhaustive-ui/core": "^22.0.0-alpha.7",
|
|
3
|
+
"@exhaustive-ui/locale": "^22.0.0-alpha.7",
|
|
4
|
+
"@exhaustive-ui/motion": "^22.0.0-alpha.7",
|
|
5
|
+
"@exhaustive-ui/styled": "^22.0.0-alpha.7",
|
|
6
|
+
"@exhaustive-ui/styles": "^22.0.0-alpha.7",
|
|
7
|
+
"@exhaustive-ui/tailwindcss": "^22.0.0-alpha.7",
|
|
8
|
+
"@exhaustive-ui/themes": "^22.0.0-alpha.7",
|
|
9
|
+
"@exhaustive-ui/utils": "^22.0.0-alpha.7",
|
|
10
10
|
"@openng/icons": "^1.0.0"
|
|
11
11
|
}
|