@eui/core 22.0.0-alpha.65 → 22.0.0-alpha.67
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 +29 -0
- package/docs/changelog.html +20 -0
- package/docs/interfaces/Annotation.html +402 -0
- package/docs/interfaces/MigrateEclSchema.html +0 -45
- package/docs/interfaces/MigrateResult.html +39 -0
- package/docs/interfaces/RemovedAttr.html +0 -13
- package/docs/interfaces/RemovedIdentifier.html +0 -7
- package/docs/interfaces/RemovedTag.html +0 -7
- package/docs/interfaces/Schema-13.html +22 -15
- package/docs/js/menu-wc.js +3 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/documentation.json +2902 -2484
- package/docs/llms.txt +36 -19
- package/docs/miscellaneous/functions.html +3518 -3215
- package/docs/miscellaneous/variables.html +68 -4
- package/docs/overview.html +1 -1
- package/docs/properties.html +1 -1
- package/migrations.json +1 -1
- package/package.json +2 -2
- package/schematics/collection.json +2 -2
- package/schematics/migrate-ecl/index.d.ts +1 -4
- package/schematics/migrate-ecl/index.js +1 -4
- package/schematics/migrate-ecl/index.js.map +1 -1
- package/schematics/migrate-ecl/schema.json +0 -5
- package/schematics/migrate-ecl-removed-components/index.d.ts +20 -15
- package/schematics/migrate-ecl-removed-components/index.js +99 -43
- package/schematics/migrate-ecl-removed-components/index.js.map +1 -1
- package/schematics/migrate-to-signals/index.js +125 -6
- package/schematics/migrate-to-signals/index.js.map +1 -1
|
@@ -716,6 +716,9 @@
|
|
|
716
716
|
<li>
|
|
717
717
|
<a href="#TH_TD_INPUT_RENAMES" title="packages/core/schematics/migrate-eui-table/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>TH_TD_INPUT_RENAMES</b> (packages/.../index.ts)</span></a>
|
|
718
718
|
</li>
|
|
719
|
+
<li>
|
|
720
|
+
<a href="#TODO_PREFIX" title="packages/core/schematics/migrate-ecl-removed-components/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>TODO_PREFIX</b> (packages/.../index.ts)</span></a>
|
|
721
|
+
</li>
|
|
719
722
|
<li>
|
|
720
723
|
<a href="#TR_INPUT_RENAMES" title="packages/core/schematics/migrate-eui-table/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>TR_INPUT_RENAMES</b> (packages/.../index.ts)</span></a>
|
|
721
724
|
</li>
|
|
@@ -794,6 +797,9 @@
|
|
|
794
797
|
<li>
|
|
795
798
|
<a href="#WARN_PROPERTIES" title="packages/core/schematics/migrate-eui-chip-list/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>WARN_PROPERTIES</b> (packages/.../index.ts)</span></a>
|
|
796
799
|
</li>
|
|
800
|
+
<li>
|
|
801
|
+
<a href="#WRITE_TODO_MARKER" title="packages/core/schematics/migrate-to-signals/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>WRITE_TODO_MARKER</b> (packages/.../index.ts)</span></a>
|
|
802
|
+
</li>
|
|
797
803
|
<li>
|
|
798
804
|
<a href="#YELLOW" title="packages/core/schematics/utils/dry-run.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>YELLOW</b> (packages/.../dry-run.ts)</span></a>
|
|
799
805
|
</li>
|
|
@@ -5884,6 +5890,38 @@ Ported from csdr-engine/migrate/index.js euiComponentsBase.</p>
|
|
|
5884
5890
|
libraries (plain field → signal getter), so the maps are merged and the rest
|
|
5885
5891
|
of the engine treats them uniformly. EUI and ECL class names don't collide
|
|
5886
5892
|
(Eui* vs Ecl* prefixes), and the selector namespaces are disjoint.</p>
|
|
5893
|
+
</div>
|
|
5894
|
+
</td>
|
|
5895
|
+
</tr>
|
|
5896
|
+
|
|
5897
|
+
</tbody>
|
|
5898
|
+
</table>
|
|
5899
|
+
<table class="table table-sm table-bordered">
|
|
5900
|
+
<tbody>
|
|
5901
|
+
<tr>
|
|
5902
|
+
<td class="col-md-4">
|
|
5903
|
+
<a name="WRITE_TODO_MARKER"></a>
|
|
5904
|
+
<span class="name">
|
|
5905
|
+
<span ><b>WRITE_TODO_MARKER</b></span>
|
|
5906
|
+
<a href="#WRITE_TODO_MARKER"><span class="icon ion-ios-link"></span></a>
|
|
5907
|
+
</span>
|
|
5908
|
+
</td>
|
|
5909
|
+
</tr>
|
|
5910
|
+
<tr>
|
|
5911
|
+
<td class="col-md-4">
|
|
5912
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
5913
|
+
|
|
5914
|
+
</td>
|
|
5915
|
+
</tr>
|
|
5916
|
+
<tr>
|
|
5917
|
+
<td class="col-md-4">
|
|
5918
|
+
<i>Default value : </i><code>'TODO(eui-signals):'</code>
|
|
5919
|
+
</td>
|
|
5920
|
+
</tr>
|
|
5921
|
+
|
|
5922
|
+
<tr>
|
|
5923
|
+
<td class="col-md-4">
|
|
5924
|
+
<div class="io-description"><p>Marker used to detect an already-inserted TODO so the schematic stays idempotent.</p>
|
|
5887
5925
|
</div>
|
|
5888
5926
|
</td>
|
|
5889
5927
|
</tr>
|
|
@@ -9316,12 +9354,12 @@ Ported from csdr-engine/migrate/index.js replaceIcons.</p>
|
|
|
9316
9354
|
attr: 'eclDatePicker',
|
|
9317
9355
|
onTag: 'input',
|
|
9318
9356
|
message:
|
|
9319
|
-
'
|
|
9357
|
+
'EclDatePickerDirective (input[eclDatePicker]) was removed in v22. Use EclDatePickerDuetDirective on a <duet-date-picker eclDatePicker> element; yearRange/format/firstDayOfWeek are configured on the <duet-date-picker> web component.',
|
|
9320
9358
|
},
|
|
9321
9359
|
{
|
|
9322
9360
|
attr: 'eclRadioHelp',
|
|
9323
9361
|
message:
|
|
9324
|
-
'
|
|
9362
|
+
'EclRadioHelpComponent ([eclRadioHelp]) was removed in v22. Use [eclHelpBlock] (EclHelpBlockDirective from @eui/ecl/components/ecl-help-block) instead.',
|
|
9325
9363
|
},
|
|
9326
9364
|
]</code>
|
|
9327
9365
|
</td>
|
|
@@ -9358,7 +9396,7 @@ Ported from csdr-engine/migrate/index.js replaceIcons.</p>
|
|
|
9358
9396
|
{
|
|
9359
9397
|
name: 'EUI_ECL_DATE_PICKER',
|
|
9360
9398
|
message:
|
|
9361
|
-
'EUI_ECL_DATE_PICKER no longer includes the removed EclDatePickerDirective
|
|
9399
|
+
'EUI_ECL_DATE_PICKER no longer includes the removed EclDatePickerDirective (it now provides EclDatePickerDuetDirective). The import still works; update your markup from <input eclDatePicker> to <duet-date-picker eclDatePicker>.',
|
|
9362
9400
|
},
|
|
9363
9401
|
{
|
|
9364
9402
|
name: 'EclSiteHeaderBannerTopComponent',
|
|
@@ -9403,13 +9441,39 @@ Ported from csdr-engine/migrate/index.js replaceIcons.</p>
|
|
|
9403
9441
|
{
|
|
9404
9442
|
tag: 'ecl-site-header-banner-top',
|
|
9405
9443
|
message:
|
|
9406
|
-
'
|
|
9444
|
+
'EclSiteHeaderBannerTopComponent (<ecl-site-header-banner-top>) was removed in v22 with no replacement. Remove it and use the standard site-header variant without a banner-top.',
|
|
9407
9445
|
},
|
|
9408
9446
|
]</code>
|
|
9409
9447
|
</td>
|
|
9410
9448
|
</tr>
|
|
9411
9449
|
|
|
9412
9450
|
|
|
9451
|
+
</tbody>
|
|
9452
|
+
</table>
|
|
9453
|
+
<table class="table table-sm table-bordered">
|
|
9454
|
+
<tbody>
|
|
9455
|
+
<tr>
|
|
9456
|
+
<td class="col-md-4">
|
|
9457
|
+
<a name="TODO_PREFIX"></a>
|
|
9458
|
+
<span class="name">
|
|
9459
|
+
<span ><b>TODO_PREFIX</b></span>
|
|
9460
|
+
<a href="#TODO_PREFIX"><span class="icon ion-ios-link"></span></a>
|
|
9461
|
+
</span>
|
|
9462
|
+
</td>
|
|
9463
|
+
</tr>
|
|
9464
|
+
<tr>
|
|
9465
|
+
<td class="col-md-4">
|
|
9466
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
9467
|
+
|
|
9468
|
+
</td>
|
|
9469
|
+
</tr>
|
|
9470
|
+
<tr>
|
|
9471
|
+
<td class="col-md-4">
|
|
9472
|
+
<i>Default value : </i><code>'TODO: [eUI v22 migration]'</code>
|
|
9473
|
+
</td>
|
|
9474
|
+
</tr>
|
|
9475
|
+
|
|
9476
|
+
|
|
9413
9477
|
</tbody>
|
|
9414
9478
|
</table>
|
|
9415
9479
|
<table class="table table-sm table-bordered">
|
package/docs/overview.html
CHANGED
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<div class="card text-center">
|
|
162
162
|
<div class="card-block">
|
|
163
163
|
<h4 class="card-title"><span class="icon ion-md-information-circle-outline"></span></h4>
|
|
164
|
-
<p class="card-text">
|
|
164
|
+
<p class="card-text">88 Interfaces</p>
|
|
165
165
|
</div>
|
|
166
166
|
</div>
|
|
167
167
|
</div>
|
package/docs/properties.html
CHANGED
package/migrations.json
CHANGED
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
},
|
|
154
154
|
"migrate-ecl-removed-components": {
|
|
155
155
|
"version": "22.0.0",
|
|
156
|
-
"description": "
|
|
156
|
+
"description": "Flags removed ECL members that need manual migration (EclDatePickerDirective, EclSiteHeaderBannerTopComponent, EclPageHeaderNextComponent, EclRadioHelpComponent): warns and inserts TODO comments next to each usage. Makes no other code changes.",
|
|
157
157
|
"factory": "./migrate-ecl-removed-components/index#migrateEclRemovedComponents",
|
|
158
158
|
"schema": "./migrate-ecl-removed-components/schema.json"
|
|
159
159
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eui/core",
|
|
3
|
-
"version": "22.0.0-alpha.
|
|
3
|
+
"version": "22.0.0-alpha.67",
|
|
4
4
|
"tag": "next",
|
|
5
5
|
"description": "eUI core package - holding UI components for Desktop applications",
|
|
6
6
|
"homepage": "https://eui.ecdevops.eu",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://sdlc.webcloud.ec.europa.eu/csdr/eui/eui.git"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@eui/base": "22.0.0-alpha.
|
|
13
|
+
"@eui/base": "22.0.0-alpha.67",
|
|
14
14
|
"rxjs": "^7.8.0",
|
|
15
15
|
"extend": "^3.0.2",
|
|
16
16
|
"localforage": "^1.10.0",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"schema": "./migrate-to-signals/schema.json"
|
|
121
121
|
},
|
|
122
122
|
"migrate-ecl": {
|
|
123
|
-
"description": "Runs all eUI-ECL migration schematics in sequence to fully migrate an eUI-ECL app (per-component ECL migrations, signal access migration,
|
|
123
|
+
"description": "Runs all eUI-ECL migration schematics in sequence to fully migrate an eUI-ECL app (per-component ECL migrations, signal access migration, cleanup).",
|
|
124
124
|
"factory": "./migrate-ecl/index#migrateEcl",
|
|
125
125
|
"schema": "./migrate-ecl/schema.json",
|
|
126
126
|
"aliases": ["ecl-migrate-all"]
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"schema": "./migrate-ecl-quiz/schema.json"
|
|
177
177
|
},
|
|
178
178
|
"migrate-ecl-removed-components": {
|
|
179
|
-
"description": "
|
|
179
|
+
"description": "Flags removed ECL members that need manual migration (EclDatePickerDirective, EclSiteHeaderBannerTopComponent, EclPageHeaderNextComponent, EclRadioHelpComponent): warns and inserts TODO comments next to each usage. Makes no other code changes.",
|
|
180
180
|
"factory": "./migrate-ecl-removed-components/index#migrateEclRemovedComponents",
|
|
181
181
|
"schema": "./migrate-ecl-removed-components/schema.json"
|
|
182
182
|
},
|
|
@@ -2,7 +2,6 @@ import { Rule } from '@angular-devkit/schematics';
|
|
|
2
2
|
export interface MigrateEclSchema {
|
|
3
3
|
path?: string;
|
|
4
4
|
dryRun?: boolean;
|
|
5
|
-
useClassArray?: boolean;
|
|
6
5
|
}
|
|
7
6
|
/**
|
|
8
7
|
* Runs the full set of ECL (eUI-ECL) migration schematics needed to migrate an
|
|
@@ -14,9 +13,7 @@ export interface MigrateEclSchema {
|
|
|
14
13
|
* 3. migrate-to-signals — rewrites programmatic `comp.prop` accesses to
|
|
15
14
|
* `comp.prop()` for signal-migrated components (the engine is shared with
|
|
16
15
|
* eUI but covers ECL via its ECL signal map).
|
|
17
|
-
* 4.
|
|
18
|
-
* components / declaring NgModules based on template selector usage.
|
|
19
|
-
* 5. fix-no-multiple-empty-lines — cosmetic cleanup after the edits above.
|
|
16
|
+
* 4. fix-no-multiple-empty-lines — cosmetic cleanup after the edits above.
|
|
20
17
|
*
|
|
21
18
|
* It deliberately excludes the eUI (Material) migrations (`migrate`,
|
|
22
19
|
* `migrate-eui-*`, `migrate-to-standalone`), which do not apply to eUI-ECL apps.
|
|
@@ -12,9 +12,7 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
12
12
|
* 3. migrate-to-signals — rewrites programmatic `comp.prop` accesses to
|
|
13
13
|
* `comp.prop()` for signal-migrated components (the engine is shared with
|
|
14
14
|
* eUI but covers ECL via its ECL signal map).
|
|
15
|
-
* 4.
|
|
16
|
-
* components / declaring NgModules based on template selector usage.
|
|
17
|
-
* 5. fix-no-multiple-empty-lines — cosmetic cleanup after the edits above.
|
|
15
|
+
* 4. fix-no-multiple-empty-lines — cosmetic cleanup after the edits above.
|
|
18
16
|
*
|
|
19
17
|
* It deliberately excludes the eUI (Material) migrations (`migrate`,
|
|
20
18
|
* `migrate-eui-*`, `migrate-to-standalone`), which do not apply to eUI-ECL apps.
|
|
@@ -36,7 +34,6 @@ function migrateEcl(options) {
|
|
|
36
34
|
(0, schematics_1.schematic)('migrate-ecl-icon', base),
|
|
37
35
|
(0, schematics_1.schematic)('migrate-to-signals', base),
|
|
38
36
|
(0, schematics_1.schematic)('migrate-ecl-removed-components', base),
|
|
39
|
-
(0, schematics_1.schematic)('add-eui-imports', { ...base, useClassArray: options.useClassArray || false }),
|
|
40
37
|
(0, schematics_1.schematic)('fix-no-multiple-empty-lines', base),
|
|
41
38
|
]);
|
|
42
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/migrate-ecl/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/migrate-ecl/index.ts"],"names":[],"mappings":";;AAsBA,gCAoBC;AA1CD,2DAAoE;AAOpE;;;;;;;;;;;;;;GAcG;AACH,SAAgB,UAAU,CAAC,OAAyB;IAClD,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,KAAK,EAAE,CAAC;IAEhF,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,sBAAS,EAAC,wBAAwB,EAAE,IAAI,CAAC;QACzC,IAAA,sBAAS,EAAC,yBAAyB,EAAE,IAAI,CAAC;QAC1C,IAAA,sBAAS,EAAC,0BAA0B,EAAE,IAAI,CAAC;QAC3C,IAAA,sBAAS,EAAC,yBAAyB,EAAE,IAAI,CAAC;QAC1C,IAAA,sBAAS,EAAC,sBAAsB,EAAE,IAAI,CAAC;QACvC,IAAA,sBAAS,EAAC,wBAAwB,EAAE,IAAI,CAAC;QACzC,IAAA,sBAAS,EAAC,+BAA+B,EAAE,IAAI,CAAC;QAChD,IAAA,sBAAS,EAAC,kBAAkB,EAAE,IAAI,CAAC;QACnC,IAAA,sBAAS,EAAC,kBAAkB,EAAE,IAAI,CAAC;QACnC,IAAA,sBAAS,EAAC,kBAAkB,EAAE,IAAI,CAAC;QACnC,IAAA,sBAAS,EAAC,kBAAkB,EAAE,IAAI,CAAC;QACnC,IAAA,sBAAS,EAAC,kBAAkB,EAAE,IAAI,CAAC;QACnC,IAAA,sBAAS,EAAC,oBAAoB,EAAE,IAAI,CAAC;QACrC,IAAA,sBAAS,EAAC,gCAAgC,EAAE,IAAI,CAAC;QACjD,IAAA,sBAAS,EAAC,6BAA6B,EAAE,IAAI,CAAC;KAC/C,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -14,11 +14,6 @@
|
|
|
14
14
|
"type": "boolean",
|
|
15
15
|
"default": false,
|
|
16
16
|
"description": "Whether to run in dry-run mode without making actual changes."
|
|
17
|
-
},
|
|
18
|
-
"useClassArray": {
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"default": false,
|
|
21
|
-
"description": "When true, uses spread CLASS arrays (e.g. ...EUI_ECL_BUTTON) instead of individual class names for add-eui-imports."
|
|
22
17
|
}
|
|
23
18
|
},
|
|
24
19
|
"required": []
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Flags usages of ECL members removed in v22 that have no automatic drop-in
|
|
4
|
+
* replacement.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* For each usage it:
|
|
7
|
+
* 1. Logs a precise manual-action warning.
|
|
8
|
+
* 2. Inserts a `TODO: [eUI v22 migration] ...` comment on the line above the
|
|
9
|
+
* usage so it is easy to locate in the editor.
|
|
9
10
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* - `EclPageHeaderNextComponent`: removed, no longer exported.
|
|
17
|
-
* - `EclRadioHelpComponent` (`[eclRadioHelp]`): removed. Use `[eclHelpBlock]`
|
|
18
|
-
* (`EclHelpBlockDirective` from `@eui/ecl/components/ecl-help-block`).
|
|
11
|
+
* It makes **no other edits** — it never comments out, deletes, or rewrites the
|
|
12
|
+
* user's code. These removed members require a developer decision (they are
|
|
13
|
+
* components/directives with different APIs, or have no replacement), so the
|
|
14
|
+
* schematic only points at what needs attention and leaves the change to the
|
|
15
|
+
* developer. Searching a project for `TODO: [eUI v22 migration]` after the run
|
|
16
|
+
* surfaces every spot to migrate.
|
|
19
17
|
*
|
|
20
|
-
*
|
|
18
|
+
* Removed members handled:
|
|
19
|
+
* - `EclDatePickerDirective` (`input[eclDatePicker]`) → `EclDatePickerDuetDirective`
|
|
20
|
+
* on `<duet-date-picker eclDatePicker>`.
|
|
21
|
+
* - `EUI_ECL_DATE_PICKER` — still exported (now provides the Duet directive);
|
|
22
|
+
* only the markup needs updating.
|
|
23
|
+
* - `EclSiteHeaderBannerTopComponent` (`ecl-site-header-banner-top`) → removed, no replacement.
|
|
24
|
+
* - `EclPageHeaderNextComponent` → removed, no longer exported.
|
|
25
|
+
* - `EclRadioHelpComponent` (`[eclRadioHelp]`) → `[eclHelpBlock]` (`EclHelpBlockDirective`).
|
|
21
26
|
*/
|
|
22
27
|
interface Schema {
|
|
23
28
|
path?: string;
|
|
@@ -37,21 +37,22 @@ exports.migrateEclRemovedComponents = migrateEclRemovedComponents;
|
|
|
37
37
|
const compiler_1 = require("@angular/compiler");
|
|
38
38
|
const ts = __importStar(require("typescript"));
|
|
39
39
|
const dry_run_1 = require("../utils/dry-run");
|
|
40
|
+
const TODO_PREFIX = 'TODO: [eUI v22 migration]';
|
|
40
41
|
const REMOVED_TAGS = [
|
|
41
42
|
{
|
|
42
43
|
tag: 'ecl-site-header-banner-top',
|
|
43
|
-
message: '<ecl-site-header-banner-top>
|
|
44
|
+
message: 'EclSiteHeaderBannerTopComponent (<ecl-site-header-banner-top>) was removed in v22 with no replacement. Remove it and use the standard site-header variant without a banner-top.',
|
|
44
45
|
},
|
|
45
46
|
];
|
|
46
47
|
const REMOVED_ATTRS = [
|
|
47
48
|
{
|
|
48
49
|
attr: 'eclDatePicker',
|
|
49
50
|
onTag: 'input',
|
|
50
|
-
message: '
|
|
51
|
+
message: 'EclDatePickerDirective (input[eclDatePicker]) was removed in v22. Use EclDatePickerDuetDirective on a <duet-date-picker eclDatePicker> element; yearRange/format/firstDayOfWeek are configured on the <duet-date-picker> web component.',
|
|
51
52
|
},
|
|
52
53
|
{
|
|
53
54
|
attr: 'eclRadioHelp',
|
|
54
|
-
message: '
|
|
55
|
+
message: 'EclRadioHelpComponent ([eclRadioHelp]) was removed in v22. Use [eclHelpBlock] (EclHelpBlockDirective from @eui/ecl/components/ecl-help-block) instead.',
|
|
55
56
|
},
|
|
56
57
|
];
|
|
57
58
|
const REMOVED_IDENTIFIERS = [
|
|
@@ -61,7 +62,7 @@ const REMOVED_IDENTIFIERS = [
|
|
|
61
62
|
},
|
|
62
63
|
{
|
|
63
64
|
name: 'EUI_ECL_DATE_PICKER',
|
|
64
|
-
message: 'EUI_ECL_DATE_PICKER no longer includes the removed EclDatePickerDirective
|
|
65
|
+
message: 'EUI_ECL_DATE_PICKER no longer includes the removed EclDatePickerDirective (it now provides EclDatePickerDuetDirective). The import still works; update your markup from <input eclDatePicker> to <duet-date-picker eclDatePicker>.',
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
name: 'EclSiteHeaderBannerTopComponent',
|
|
@@ -86,6 +87,7 @@ function migrateEclRemovedComponents(options = {}) {
|
|
|
86
87
|
return (tree, context) => {
|
|
87
88
|
const scanPath = options.path ? '/' + options.path.replace(/^\.?\//, '').replace(/\/$/, '') : '';
|
|
88
89
|
let warningCount = 0;
|
|
90
|
+
let fileCount = 0;
|
|
89
91
|
visitDir(tree.getDir(scanPath || '/'), (path) => {
|
|
90
92
|
const buffer = tree.read(path);
|
|
91
93
|
if (!buffer)
|
|
@@ -93,18 +95,31 @@ function migrateEclRemovedComponents(options = {}) {
|
|
|
93
95
|
const source = buffer.toString('utf-8');
|
|
94
96
|
if (!TRIGGER_TOKENS.some((t) => source.includes(t)))
|
|
95
97
|
return;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
const annotations = path.endsWith('.html')
|
|
99
|
+
? collectTemplateAnnotations(source, 0, 'html')
|
|
100
|
+
: collectTypeScriptAnnotations(source, path);
|
|
101
|
+
if (annotations.length === 0)
|
|
102
|
+
return;
|
|
103
|
+
for (const a of annotations) {
|
|
104
|
+
context.logger.warn(`${path}:${a.line + 1} - ${a.message}`);
|
|
105
|
+
warningCount++;
|
|
98
106
|
}
|
|
99
|
-
|
|
100
|
-
|
|
107
|
+
const result = applyAnnotations(source, annotations);
|
|
108
|
+
if (result !== source) {
|
|
109
|
+
if (options.dryRun) {
|
|
110
|
+
(0, dry_run_1.logDryRun)(context, `Would annotate removed ECL usage(s) with TODO comments in ${path}`);
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
tree.overwrite(path, result);
|
|
114
|
+
}
|
|
115
|
+
fileCount++;
|
|
101
116
|
}
|
|
102
117
|
});
|
|
103
118
|
if (warningCount === 0) {
|
|
104
119
|
context.logger.info('No usages of removed ECL components found.');
|
|
105
120
|
}
|
|
106
121
|
else {
|
|
107
|
-
context.logger.info(`Found ${warningCount} usage(s) of removed ECL components.
|
|
122
|
+
context.logger.info(`Found ${warningCount} usage(s) of removed ECL components in ${fileCount} file(s). Search for "${TODO_PREFIX}" and migrate them manually.`);
|
|
108
123
|
}
|
|
109
124
|
if (options.dryRun) {
|
|
110
125
|
(0, dry_run_1.logDryRunNote)(context);
|
|
@@ -112,38 +127,34 @@ function migrateEclRemovedComponents(options = {}) {
|
|
|
112
127
|
return tree;
|
|
113
128
|
};
|
|
114
129
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
*/
|
|
120
|
-
function scanTemplate(template, _fileSource, lineOffset, path, context) {
|
|
130
|
+
// ---------------------------------------------------------------------------
|
|
131
|
+
// Templates
|
|
132
|
+
// ---------------------------------------------------------------------------
|
|
133
|
+
function collectTemplateAnnotations(template, lineOffset, commentStyle) {
|
|
121
134
|
let parsed;
|
|
122
135
|
try {
|
|
123
136
|
parsed = (0, compiler_1.parseTemplate)(template, '', { preserveWhitespaces: true });
|
|
124
137
|
}
|
|
125
138
|
catch {
|
|
126
|
-
return
|
|
139
|
+
return [];
|
|
127
140
|
}
|
|
128
|
-
|
|
141
|
+
const annotations = [];
|
|
129
142
|
const visit = (nodes) => {
|
|
130
143
|
for (const node of nodes) {
|
|
131
144
|
if (node instanceof compiler_1.TmplAstElement) {
|
|
132
|
-
|
|
145
|
+
collectElementAnnotation(node, lineOffset, commentStyle, annotations);
|
|
133
146
|
visit(node.children);
|
|
134
147
|
}
|
|
135
148
|
}
|
|
136
149
|
};
|
|
137
150
|
visit(parsed.nodes);
|
|
138
|
-
return
|
|
151
|
+
return annotations;
|
|
139
152
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
const line = element.startSourceSpan.start.line + 1 + lineOffset;
|
|
153
|
+
function collectElementAnnotation(element, lineOffset, commentStyle, annotations) {
|
|
154
|
+
const line = element.startSourceSpan.start.line + lineOffset;
|
|
143
155
|
const removedTag = REMOVED_TAGS.find((t) => t.tag === element.name);
|
|
144
156
|
if (removedTag) {
|
|
145
|
-
|
|
146
|
-
count++;
|
|
157
|
+
annotations.push({ line, commentStyle, message: removedTag.message });
|
|
147
158
|
}
|
|
148
159
|
for (const removed of REMOVED_ATTRS) {
|
|
149
160
|
const hasAttr = element.attributes.some((a) => a.name === removed.attr) || element.inputs.some((i) => i.name === removed.attr);
|
|
@@ -151,23 +162,28 @@ function checkElement(element, lineOffset, path, context) {
|
|
|
151
162
|
continue;
|
|
152
163
|
if (removed.onTag && element.name !== removed.onTag)
|
|
153
164
|
continue;
|
|
154
|
-
|
|
155
|
-
count++;
|
|
165
|
+
annotations.push({ line, commentStyle, message: removed.message });
|
|
156
166
|
}
|
|
157
|
-
return count;
|
|
158
167
|
}
|
|
159
|
-
|
|
168
|
+
// ---------------------------------------------------------------------------
|
|
169
|
+
// TypeScript
|
|
170
|
+
// ---------------------------------------------------------------------------
|
|
171
|
+
function collectTypeScriptAnnotations(source, path) {
|
|
160
172
|
const sourceFile = ts.createSourceFile(path, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);
|
|
161
|
-
|
|
162
|
-
// 1. Inline templates —
|
|
173
|
+
const annotations = [];
|
|
174
|
+
// 1. Inline templates — annotate with a `//` comment on the line of the
|
|
175
|
+
// `template` property (inserting an HTML comment inside the template
|
|
176
|
+
// literal is fragile across single/multi-line forms, so we place a TS
|
|
177
|
+
// comment above the property instead).
|
|
163
178
|
const visitForTemplates = (node) => {
|
|
164
179
|
if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {
|
|
165
180
|
const init = unwrapExpression(node.initializer);
|
|
166
181
|
if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {
|
|
167
|
-
const raw = init.getText(sourceFile).slice(1, -1);
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
182
|
+
const raw = init.getText(sourceFile).slice(1, -1);
|
|
183
|
+
const inlineMessages = collectTemplateAnnotations(raw, 0, 'html').map((a) => a.message);
|
|
184
|
+
if (inlineMessages.length > 0) {
|
|
185
|
+
const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile));
|
|
186
|
+
annotations.push({ line, commentStyle: 'ts', message: [...new Set(inlineMessages)].join(' ') });
|
|
171
187
|
}
|
|
172
188
|
}
|
|
173
189
|
}
|
|
@@ -175,26 +191,66 @@ function scanTypeScript(source, path, context) {
|
|
|
175
191
|
};
|
|
176
192
|
visitForTemplates(sourceFile);
|
|
177
193
|
// 2. Identifier usages (imports, type references, array entries, etc.).
|
|
178
|
-
|
|
194
|
+
// One annotation per affected line; merge messages for multiple symbols.
|
|
195
|
+
const perLine = new Map();
|
|
179
196
|
const visitForIdentifiers = (node) => {
|
|
180
197
|
if (ts.isIdentifier(node)) {
|
|
181
198
|
const removed = REMOVED_IDENTIFIERS.find((r) => r.name === node.text);
|
|
182
199
|
if (removed) {
|
|
183
200
|
const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile));
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
reportedLines.add(key);
|
|
188
|
-
context.logger.warn(`${path}:${line + 1} - ${removed.message}`);
|
|
189
|
-
count++;
|
|
190
|
-
}
|
|
201
|
+
const set = perLine.get(line) ?? new Set();
|
|
202
|
+
set.add(removed.message);
|
|
203
|
+
perLine.set(line, set);
|
|
191
204
|
}
|
|
192
205
|
}
|
|
193
206
|
ts.forEachChild(node, visitForIdentifiers);
|
|
194
207
|
};
|
|
195
208
|
visitForIdentifiers(sourceFile);
|
|
196
|
-
|
|
209
|
+
for (const [line, messages] of perLine) {
|
|
210
|
+
annotations.push({ line, commentStyle: 'ts', message: [...messages].join(' ') });
|
|
211
|
+
}
|
|
212
|
+
return annotations;
|
|
213
|
+
}
|
|
214
|
+
// ---------------------------------------------------------------------------
|
|
215
|
+
// Annotation application
|
|
216
|
+
// ---------------------------------------------------------------------------
|
|
217
|
+
function applyAnnotations(source, annotations) {
|
|
218
|
+
if (annotations.length === 0)
|
|
219
|
+
return source;
|
|
220
|
+
const eol = source.includes('\r\n') ? '\r\n' : '\n';
|
|
221
|
+
const lines = source.split(/\r?\n/);
|
|
222
|
+
// One annotation per line (merge messages if several target the same line).
|
|
223
|
+
const byLine = new Map();
|
|
224
|
+
for (const a of annotations) {
|
|
225
|
+
const existing = byLine.get(a.line);
|
|
226
|
+
if (!existing) {
|
|
227
|
+
byLine.set(a.line, { ...a });
|
|
228
|
+
}
|
|
229
|
+
else if (!existing.message.includes(a.message)) {
|
|
230
|
+
existing.message = `${existing.message} ${a.message}`;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
// Skip lines whose preceding line already carries this TODO (idempotency).
|
|
234
|
+
// Apply bottom-up so inserted lines don't shift later targets.
|
|
235
|
+
const sorted = [...byLine.values()].sort((a, b) => b.line - a.line);
|
|
236
|
+
for (const a of sorted) {
|
|
237
|
+
if (a.line < 0 || a.line >= lines.length)
|
|
238
|
+
continue;
|
|
239
|
+
const indent = (lines[a.line].match(/^(\s*)/)?.[1]) ?? '';
|
|
240
|
+
const todo = a.commentStyle === 'html'
|
|
241
|
+
? `${indent}<!-- ${TODO_PREFIX} ${a.message} -->`
|
|
242
|
+
: `${indent}// ${TODO_PREFIX} ${a.message}`;
|
|
243
|
+
// Idempotency guard: if the line above already is this exact TODO, skip.
|
|
244
|
+
const prev = a.line > 0 ? lines[a.line - 1] : '';
|
|
245
|
+
if (prev.trim() === todo.trim())
|
|
246
|
+
continue;
|
|
247
|
+
lines.splice(a.line, 0, todo);
|
|
248
|
+
}
|
|
249
|
+
return lines.join(eol);
|
|
197
250
|
}
|
|
251
|
+
// ---------------------------------------------------------------------------
|
|
252
|
+
// Shared
|
|
253
|
+
// ---------------------------------------------------------------------------
|
|
198
254
|
function isTemplateProperty(node) {
|
|
199
255
|
const name = node.name;
|
|
200
256
|
return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/migrate-ecl-removed-components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/migrate-ecl-removed-components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoHA,kEA+CC;AAnKD,gDAA+E;AAE/E,+CAAiC;AACjC,8CAA4D;AAiC5D,MAAM,WAAW,GAAG,2BAA2B,CAAC;AAkBhD,MAAM,YAAY,GAA0B;IAC1C;QACE,GAAG,EAAE,4BAA4B;QACjC,OAAO,EACL,iLAAiL;KACpL;CACF,CAAC;AAEF,MAAM,aAAa,GAA2B;IAC5C;QACE,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,OAAO;QACd,OAAO,EACL,yOAAyO;KAC5O;IACD;QACE,IA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