@eui/core 22.0.0-alpha.85 → 22.0.0-alpha.87
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 +22 -0
- package/docs/changelog.html +76 -0
- package/docs/classes/TooltipImportCollector.html +524 -0
- package/docs/interfaces/Edit-23.html +395 -0
- package/docs/interfaces/Schema-38.html +1 -1
- package/docs/interfaces/Schema-39.html +1 -1
- package/docs/interfaces/Schema-40.html +1 -13
- package/docs/interfaces/Schema-41.html +13 -1
- package/docs/interfaces/Schema-42.html +1 -1
- package/docs/interfaces/Schema-43.html +1 -1
- package/docs/js/menu-wc.js +6 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/documentation.json +1012 -4
- package/docs/llms.txt +50 -9
- package/docs/miscellaneous/functions.html +505 -0
- package/docs/miscellaneous/typealiases.html +22 -0
- package/docs/miscellaneous/variables.html +119 -0
- package/docs/overview.html +2 -2
- package/docs/properties.html +1 -1
- package/migrations.json +1 -1
- package/package.json +2 -2
- package/schematics/collection.json +1 -1
- package/schematics/migrate-eui-chip/index.js +15 -1
- package/schematics/migrate-eui-chip/index.js.map +1 -1
- package/schematics/migrate-eui-chip/schema.json +1 -1
- package/schematics/utils/tooltip-message.d.ts +32 -0
- package/schematics/utils/tooltip-message.js +256 -0
- package/schematics/utils/tooltip-message.js.map +1 -0
- package/types/eui-core.d.ts +6 -6
|
@@ -362,6 +362,12 @@
|
|
|
362
362
|
<li>
|
|
363
363
|
<a href="#DIRECTIVE_CLASS" title="packages/core/schematics/migrate-eui-tooltip/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>DIRECTIVE_CLASS</b> (packages/.../index.ts)</span></a>
|
|
364
364
|
</li>
|
|
365
|
+
<li>
|
|
366
|
+
<a href="#DIRECTIVE_CLASS" title="packages/core/schematics/utils/tooltip-message.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>DIRECTIVE_CLASS</b> (packages/.../tooltip-message.ts)</span></a>
|
|
367
|
+
</li>
|
|
368
|
+
<li>
|
|
369
|
+
<a href="#DIRECTIVE_PATH" title="packages/core/schematics/utils/tooltip-message.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>DIRECTIVE_PATH</b> (packages/.../tooltip-message.ts)</span></a>
|
|
370
|
+
</li>
|
|
365
371
|
<li>
|
|
366
372
|
<a href="#dirOf" title="packages/core/schematics/migrate-ngx-translate-18/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>dirOf</b> (packages/.../index.ts)</span></a>
|
|
367
373
|
</li>
|
|
@@ -665,6 +671,9 @@
|
|
|
665
671
|
<li>
|
|
666
672
|
<a href="#NEW_HEADER_SUB_LABEL" title="packages/core/schematics/migrate-eui-tabs/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>NEW_HEADER_SUB_LABEL</b> (packages/.../index.ts)</span></a>
|
|
667
673
|
</li>
|
|
674
|
+
<li>
|
|
675
|
+
<a href="#NEW_INPUT" title="packages/core/schematics/utils/tooltip-message.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>NEW_INPUT</b> (packages/.../tooltip-message.ts)</span></a>
|
|
676
|
+
</li>
|
|
668
677
|
<li>
|
|
669
678
|
<a href="#NEW_INTERFACE" title="packages/core/schematics/migrate-eui-toolbar-menu/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>NEW_INTERFACE</b> (packages/.../index.ts)</span></a>
|
|
670
679
|
</li>
|
|
@@ -740,6 +749,9 @@
|
|
|
740
749
|
<li>
|
|
741
750
|
<a href="#OLD_CONTENT" title="packages/core/schematics/migrate-eui-tabs/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>OLD_CONTENT</b> (packages/.../index.ts)</span></a>
|
|
742
751
|
</li>
|
|
752
|
+
<li>
|
|
753
|
+
<a href="#OLD_INPUT" title="packages/core/schematics/utils/tooltip-message.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>OLD_INPUT</b> (packages/.../tooltip-message.ts)</span></a>
|
|
754
|
+
</li>
|
|
743
755
|
<li>
|
|
744
756
|
<a href="#OLD_INTERFACE" title="packages/core/schematics/migrate-eui-toolbar-menu/index.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>OLD_INTERFACE</b> (packages/.../index.ts)</span></a>
|
|
745
757
|
</li>
|
|
@@ -6567,6 +6579,113 @@ receivers are tracked by declaration: members/params/variables typed <code>EuiPo
|
|
|
6567
6579
|
</tr>
|
|
6568
6580
|
|
|
6569
6581
|
|
|
6582
|
+
</tbody>
|
|
6583
|
+
</table>
|
|
6584
|
+
</section>
|
|
6585
|
+
<h3>packages/core/schematics/utils/tooltip-message.ts</h3>
|
|
6586
|
+
<section data-compodoc="block-properties">
|
|
6587
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
6588
|
+
<tbody>
|
|
6589
|
+
<tr>
|
|
6590
|
+
<td class="col-md-4">
|
|
6591
|
+
<a name="DIRECTIVE_CLASS"></a>
|
|
6592
|
+
<span class="name">
|
|
6593
|
+
<span ><b>DIRECTIVE_CLASS</b></span>
|
|
6594
|
+
<a href="#DIRECTIVE_CLASS"><span class="icon ion-ios-link"></span></a>
|
|
6595
|
+
</span>
|
|
6596
|
+
</td>
|
|
6597
|
+
</tr>
|
|
6598
|
+
<tr>
|
|
6599
|
+
<td class="col-md-4">
|
|
6600
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
6601
|
+
|
|
6602
|
+
</td>
|
|
6603
|
+
</tr>
|
|
6604
|
+
<tr>
|
|
6605
|
+
<td class="col-md-4">
|
|
6606
|
+
<i>Default value : </i><code>'EuiTooltipDirective'</code>
|
|
6607
|
+
</td>
|
|
6608
|
+
</tr>
|
|
6609
|
+
|
|
6610
|
+
|
|
6611
|
+
</tbody>
|
|
6612
|
+
</table>
|
|
6613
|
+
<table class="table table-sm table-bordered">
|
|
6614
|
+
<tbody>
|
|
6615
|
+
<tr>
|
|
6616
|
+
<td class="col-md-4">
|
|
6617
|
+
<a name="DIRECTIVE_PATH"></a>
|
|
6618
|
+
<span class="name">
|
|
6619
|
+
<span ><b>DIRECTIVE_PATH</b></span>
|
|
6620
|
+
<a href="#DIRECTIVE_PATH"><span class="icon ion-ios-link"></span></a>
|
|
6621
|
+
</span>
|
|
6622
|
+
</td>
|
|
6623
|
+
</tr>
|
|
6624
|
+
<tr>
|
|
6625
|
+
<td class="col-md-4">
|
|
6626
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
6627
|
+
|
|
6628
|
+
</td>
|
|
6629
|
+
</tr>
|
|
6630
|
+
<tr>
|
|
6631
|
+
<td class="col-md-4">
|
|
6632
|
+
<i>Default value : </i><code>'@eui/components/directives'</code>
|
|
6633
|
+
</td>
|
|
6634
|
+
</tr>
|
|
6635
|
+
|
|
6636
|
+
|
|
6637
|
+
</tbody>
|
|
6638
|
+
</table>
|
|
6639
|
+
<table class="table table-sm table-bordered">
|
|
6640
|
+
<tbody>
|
|
6641
|
+
<tr>
|
|
6642
|
+
<td class="col-md-4">
|
|
6643
|
+
<a name="NEW_INPUT"></a>
|
|
6644
|
+
<span class="name">
|
|
6645
|
+
<span ><b>NEW_INPUT</b></span>
|
|
6646
|
+
<a href="#NEW_INPUT"><span class="icon ion-ios-link"></span></a>
|
|
6647
|
+
</span>
|
|
6648
|
+
</td>
|
|
6649
|
+
</tr>
|
|
6650
|
+
<tr>
|
|
6651
|
+
<td class="col-md-4">
|
|
6652
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
6653
|
+
|
|
6654
|
+
</td>
|
|
6655
|
+
</tr>
|
|
6656
|
+
<tr>
|
|
6657
|
+
<td class="col-md-4">
|
|
6658
|
+
<i>Default value : </i><code>'euiTooltip'</code>
|
|
6659
|
+
</td>
|
|
6660
|
+
</tr>
|
|
6661
|
+
|
|
6662
|
+
|
|
6663
|
+
</tbody>
|
|
6664
|
+
</table>
|
|
6665
|
+
<table class="table table-sm table-bordered">
|
|
6666
|
+
<tbody>
|
|
6667
|
+
<tr>
|
|
6668
|
+
<td class="col-md-4">
|
|
6669
|
+
<a name="OLD_INPUT"></a>
|
|
6670
|
+
<span class="name">
|
|
6671
|
+
<span ><b>OLD_INPUT</b></span>
|
|
6672
|
+
<a href="#OLD_INPUT"><span class="icon ion-ios-link"></span></a>
|
|
6673
|
+
</span>
|
|
6674
|
+
</td>
|
|
6675
|
+
</tr>
|
|
6676
|
+
<tr>
|
|
6677
|
+
<td class="col-md-4">
|
|
6678
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
6679
|
+
|
|
6680
|
+
</td>
|
|
6681
|
+
</tr>
|
|
6682
|
+
<tr>
|
|
6683
|
+
<td class="col-md-4">
|
|
6684
|
+
<i>Default value : </i><code>'tooltipMessage'</code>
|
|
6685
|
+
</td>
|
|
6686
|
+
</tr>
|
|
6687
|
+
|
|
6688
|
+
|
|
6570
6689
|
</tbody>
|
|
6571
6690
|
</table>
|
|
6572
6691
|
</section>
|
package/docs/overview.html
CHANGED
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
<div class="card text-center">
|
|
154
154
|
<div class="card-block">
|
|
155
155
|
<h4 class="card-title"><span class="icon ion-ios-paper"></span></h4>
|
|
156
|
-
<p class="card-text">
|
|
156
|
+
<p class="card-text">34 Classes</p>
|
|
157
157
|
</div>
|
|
158
158
|
</div>
|
|
159
159
|
</div>
|
|
@@ -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">114 Interfaces</p>
|
|
165
165
|
</div>
|
|
166
166
|
</div>
|
|
167
167
|
</div>
|
package/docs/properties.html
CHANGED
package/migrations.json
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
},
|
|
88
88
|
"migrate-eui-chip": {
|
|
89
89
|
"version": "21.0.0",
|
|
90
|
-
"description": "Removes the deprecated isSquared input
|
|
90
|
+
"description": "Removes the deprecated isSquared input and replaces the removed tooltipMessage input by the euiTooltip directive on eui-chip.",
|
|
91
91
|
"factory": "./migrate-eui-chip/index#migrateEuiChip",
|
|
92
92
|
"schema": "./migrate-eui-chip/schema.json"
|
|
93
93
|
},
|
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.87",
|
|
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.87",
|
|
14
14
|
"rxjs": "^7.8.0",
|
|
15
15
|
"extend": "^3.0.2",
|
|
16
16
|
"localforage": "^1.10.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"schema": "./migrate-eui-chip-list/schema.json"
|
|
107
107
|
},
|
|
108
108
|
"migrate-eui-chip": {
|
|
109
|
-
"description": "Removes the deprecated isSquared input
|
|
109
|
+
"description": "Removes the deprecated isSquared input and replaces the removed tooltipMessage input by the euiTooltip directive on eui-chip.",
|
|
110
110
|
"factory": "./migrate-eui-chip/index#migrateEuiChip",
|
|
111
111
|
"schema": "./migrate-eui-chip/schema.json"
|
|
112
112
|
},
|
|
@@ -37,11 +37,13 @@ exports.migrateEuiChip = migrateEuiChip;
|
|
|
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 tooltip_message_1 = require("../utils/tooltip-message");
|
|
40
41
|
const REMOVED_INPUTS = new Set(['isSquared']);
|
|
41
42
|
function migrateEuiChip(options = {}) {
|
|
42
43
|
return (tree, context) => {
|
|
43
44
|
const scanPath = options.path ? '/' + options.path.replace(/^\.?\//, '').replace(/\/$/, '') : '';
|
|
44
45
|
let count = 0;
|
|
46
|
+
const tooltipImports = new tooltip_message_1.TooltipImportCollector();
|
|
45
47
|
const dir = tree.getDir(scanPath || '/');
|
|
46
48
|
visitDir(dir, (path) => {
|
|
47
49
|
const buffer = tree.read(path);
|
|
@@ -50,9 +52,19 @@ function migrateEuiChip(options = {}) {
|
|
|
50
52
|
const original = buffer.toString('utf-8');
|
|
51
53
|
if (!original.includes('eui-chip') && !original.includes('euiChip'))
|
|
52
54
|
return;
|
|
53
|
-
|
|
55
|
+
let result = path.endsWith('.html')
|
|
54
56
|
? migrateTemplate(original)
|
|
55
57
|
: migrateInlineTemplates(original);
|
|
58
|
+
// tooltipMessage input removed: replaced by the euiTooltip directive
|
|
59
|
+
const tooltip = (0, tooltip_message_1.renameTooltipMessageInFile)(result, path, isChipElement, (message) => context.logger.warn(`${path} - ${message}`));
|
|
60
|
+
result = tooltip.result;
|
|
61
|
+
if (tooltip.renamed > 0 && !options.dryRun) {
|
|
62
|
+
if (path.endsWith('.html'))
|
|
63
|
+
tooltipImports.addExternal(tree, path);
|
|
64
|
+
else
|
|
65
|
+
tooltipImports.addInline(path);
|
|
66
|
+
}
|
|
67
|
+
(0, tooltip_message_1.warnTooltipMessageUsages)(original, path, context);
|
|
56
68
|
if (result !== original) {
|
|
57
69
|
if (options.dryRun) {
|
|
58
70
|
(0, dry_run_1.logDryRun)(context, `Would remove 'isSquared' input in ${path}`);
|
|
@@ -75,6 +87,8 @@ function migrateEuiChip(options = {}) {
|
|
|
75
87
|
visit(sourceFile);
|
|
76
88
|
}
|
|
77
89
|
});
|
|
90
|
+
if (!options.dryRun)
|
|
91
|
+
tooltipImports.apply(tree, context);
|
|
78
92
|
context.logger.info(`Removed deprecated eui-chip 'isSquared' input from ${count} file(s).`);
|
|
79
93
|
if (options.dryRun) {
|
|
80
94
|
(0, dry_run_1.logDryRunNote)(context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/migrate-eui-chip/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/migrate-eui-chip/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,wCA4DC;AAzED,gDAA4H;AAE5H,+CAAiC;AACjC,8CAA4D;AAC5D,8DAAwH;AAOxH,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;AAE9C,SAAgB,cAAc,CAAC,UAAkB,EAAE;IACjD,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KA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input
|
|
4
|
+
"title": "Removes the deprecated isSquared input and replaces the removed tooltipMessage input by euiTooltip on eui-chip",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"path": {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TmplAstElement } from '@angular/compiler';
|
|
2
|
+
import { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
3
|
+
/**
|
|
4
|
+
* Renames the removed `tooltipMessage` input to `euiTooltip` (static, bound and interpolated forms)
|
|
5
|
+
* on the elements accepted by `isTarget`. Elements already carrying `euiTooltip` are left unchanged and reported.
|
|
6
|
+
*/
|
|
7
|
+
export declare function renameTooltipMessage(source: string, isTarget: (element: TmplAstElement) => boolean, warn: (message: string) => void): {
|
|
8
|
+
result: string;
|
|
9
|
+
renamed: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Collects the components that now use `euiTooltip` and adds `EuiTooltipDirective` to their `imports`.
|
|
13
|
+
*/
|
|
14
|
+
export declare class TooltipImportCollector {
|
|
15
|
+
private readonly pending;
|
|
16
|
+
/** The template is inlined in the component file `tsPath`. */
|
|
17
|
+
addInline(tsPath: string): void;
|
|
18
|
+
/** The template lives in `htmlPath`; the owning component is resolved through its `templateUrl`. */
|
|
19
|
+
addExternal(tree: Tree, htmlPath: string): void;
|
|
20
|
+
private readonly unresolved;
|
|
21
|
+
private push;
|
|
22
|
+
apply(tree: Tree, context: SchematicContext): void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Applies `renameTooltipMessage` to a whole file: the file itself for `.html`, the `template: \`...\`` literals for `.ts`.
|
|
26
|
+
*/
|
|
27
|
+
export declare function renameTooltipMessageInFile(source: string, filePath: string, isTarget: (element: TmplAstElement) => boolean, warn: (message: string) => void): {
|
|
28
|
+
result: string;
|
|
29
|
+
renamed: number;
|
|
30
|
+
};
|
|
31
|
+
/** Reports `x.tooltipMessage` property accesses in TS files, which cannot be migrated automatically. */
|
|
32
|
+
export declare function warnTooltipMessageUsages(source: string, filePath: string, context: SchematicContext): void;
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.TooltipImportCollector = void 0;
|
|
37
|
+
exports.renameTooltipMessage = renameTooltipMessage;
|
|
38
|
+
exports.renameTooltipMessageInFile = renameTooltipMessageInFile;
|
|
39
|
+
exports.warnTooltipMessageUsages = warnTooltipMessageUsages;
|
|
40
|
+
const compiler_1 = require("@angular/compiler");
|
|
41
|
+
const ts = __importStar(require("typescript"));
|
|
42
|
+
const OLD_INPUT = 'tooltipMessage';
|
|
43
|
+
const NEW_INPUT = 'euiTooltip';
|
|
44
|
+
const DIRECTIVE_CLASS = 'EuiTooltipDirective';
|
|
45
|
+
const DIRECTIVE_PATH = '@eui/components/directives';
|
|
46
|
+
function applyEdits(source, edits) {
|
|
47
|
+
let result = source;
|
|
48
|
+
for (const edit of [...edits].sort((a, b) => b.start - a.start)) {
|
|
49
|
+
result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);
|
|
50
|
+
}
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Renames the removed `tooltipMessage` input to `euiTooltip` (static, bound and interpolated forms)
|
|
55
|
+
* on the elements accepted by `isTarget`. Elements already carrying `euiTooltip` are left unchanged and reported.
|
|
56
|
+
*/
|
|
57
|
+
function renameTooltipMessage(source, isTarget, warn) {
|
|
58
|
+
const parsed = (0, compiler_1.parseTemplate)(source, '', { preserveWhitespaces: true });
|
|
59
|
+
const edits = [];
|
|
60
|
+
const visit = (nodes) => {
|
|
61
|
+
for (const node of nodes) {
|
|
62
|
+
if (!(node instanceof compiler_1.TmplAstElement))
|
|
63
|
+
continue;
|
|
64
|
+
if (isTarget(node))
|
|
65
|
+
collect(node);
|
|
66
|
+
visit(node.children);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const collect = (element) => {
|
|
70
|
+
const candidates = [
|
|
71
|
+
...element.attributes.filter((a) => a.name === OLD_INPUT),
|
|
72
|
+
...element.inputs.filter((i) => i.name === OLD_INPUT),
|
|
73
|
+
];
|
|
74
|
+
if (candidates.length === 0)
|
|
75
|
+
return;
|
|
76
|
+
const hasTooltip = element.attributes.some((a) => a.name === NEW_INPUT) || element.inputs.some((i) => i.name === NEW_INPUT);
|
|
77
|
+
for (const attr of candidates) {
|
|
78
|
+
const start = attr.sourceSpan.start.offset;
|
|
79
|
+
if (hasTooltip) {
|
|
80
|
+
const line = source.slice(0, start).split('\n').length;
|
|
81
|
+
warn(`line ${line} - "${OLD_INPUT}" was removed and "${NEW_INPUT}" is already set on <${element.name}>. Remove "${OLD_INPUT}" manually.`);
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
// `sourceSpan` starts at the attribute (`tooltipMessage`, `[tooltipMessage]`, `bind-tooltipMessage`): rename only the key.
|
|
85
|
+
const index = source.indexOf(OLD_INPUT, start);
|
|
86
|
+
if (index === -1 || index >= attr.sourceSpan.end.offset)
|
|
87
|
+
continue;
|
|
88
|
+
edits.push({ start: index, end: index + OLD_INPUT.length, replacement: NEW_INPUT });
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
visit(parsed.nodes);
|
|
92
|
+
return { result: applyEdits(source, edits), renamed: edits.length };
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Collects the components that now use `euiTooltip` and adds `EuiTooltipDirective` to their `imports`.
|
|
96
|
+
*/
|
|
97
|
+
class TooltipImportCollector {
|
|
98
|
+
pending = new Map();
|
|
99
|
+
/** The template is inlined in the component file `tsPath`. */
|
|
100
|
+
addInline(tsPath) {
|
|
101
|
+
this.push(tsPath, { kind: 'inline' });
|
|
102
|
+
}
|
|
103
|
+
/** The template lives in `htmlPath`; the owning component is resolved through its `templateUrl`. */
|
|
104
|
+
addExternal(tree, htmlPath) {
|
|
105
|
+
const slash = htmlPath.lastIndexOf('/');
|
|
106
|
+
const dirPath = slash > 0 ? htmlPath.slice(0, slash) : '/';
|
|
107
|
+
const htmlFileName = htmlPath.slice(slash + 1);
|
|
108
|
+
const dir = tree.getDir(dirPath);
|
|
109
|
+
for (const file of dir.subfiles) {
|
|
110
|
+
if (!file.endsWith('.ts') || file.endsWith('.d.ts') || file.endsWith('.spec.ts'))
|
|
111
|
+
continue;
|
|
112
|
+
const content = tree.read(`${dir.path}/${file}`)?.toString('utf-8');
|
|
113
|
+
if (content?.includes('templateUrl') && content.includes(htmlFileName)) {
|
|
114
|
+
this.push(`${dir.path}/${file}`, { kind: 'templateUrl', htmlFileName });
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
this.unresolved.push(htmlPath);
|
|
119
|
+
}
|
|
120
|
+
unresolved = [];
|
|
121
|
+
push(tsPath, target) {
|
|
122
|
+
const list = this.pending.get(tsPath) ?? [];
|
|
123
|
+
list.push(target);
|
|
124
|
+
this.pending.set(tsPath, list);
|
|
125
|
+
}
|
|
126
|
+
apply(tree, context) {
|
|
127
|
+
for (const html of this.unresolved) {
|
|
128
|
+
context.logger.warn(`${html} - could not find the component of this template. Add ${DIRECTIVE_CLASS} to its imports manually.`);
|
|
129
|
+
}
|
|
130
|
+
for (const [tsPath, targets] of this.pending) {
|
|
131
|
+
const original = tree.read(tsPath)?.toString('utf-8');
|
|
132
|
+
if (original === undefined)
|
|
133
|
+
continue;
|
|
134
|
+
let current = original;
|
|
135
|
+
for (const target of targets) {
|
|
136
|
+
const outcome = addDirectiveImport(current, tsPath, target);
|
|
137
|
+
if (outcome.status === 'manual') {
|
|
138
|
+
context.logger.warn(`${tsPath} - add ${DIRECTIVE_CLASS} (from '${DIRECTIVE_PATH}') to the component "imports" manually (${outcome.reason}).`);
|
|
139
|
+
}
|
|
140
|
+
current = outcome.result;
|
|
141
|
+
}
|
|
142
|
+
if (current !== original)
|
|
143
|
+
tree.overwrite(tsPath, current);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.TooltipImportCollector = TooltipImportCollector;
|
|
148
|
+
function propertyName(prop) {
|
|
149
|
+
if (!ts.isPropertyAssignment(prop))
|
|
150
|
+
return null;
|
|
151
|
+
return ts.isIdentifier(prop.name) || ts.isStringLiteral(prop.name) ? prop.name.text : null;
|
|
152
|
+
}
|
|
153
|
+
function addDirectiveImport(source, filePath, target) {
|
|
154
|
+
const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true);
|
|
155
|
+
const matches = (obj) => obj.properties.some((prop) => {
|
|
156
|
+
const name = propertyName(prop);
|
|
157
|
+
if (!name || !ts.isPropertyAssignment(prop))
|
|
158
|
+
return false;
|
|
159
|
+
const init = prop.initializer;
|
|
160
|
+
const text = ts.isStringLiteralLike(init) ? init.text : '';
|
|
161
|
+
if (target.kind === 'inline')
|
|
162
|
+
return name === 'template' && text.includes(NEW_INPUT);
|
|
163
|
+
return name === 'templateUrl' && text.split('/').pop() === target.htmlFileName;
|
|
164
|
+
});
|
|
165
|
+
let component;
|
|
166
|
+
const find = (node) => {
|
|
167
|
+
if (component)
|
|
168
|
+
return;
|
|
169
|
+
if (ts.isDecorator(node) && ts.isCallExpression(node.expression) && ts.isIdentifier(node.expression.expression) && node.expression.expression.text === 'Component') {
|
|
170
|
+
const arg = node.expression.arguments[0];
|
|
171
|
+
if (arg && ts.isObjectLiteralExpression(arg) && matches(arg))
|
|
172
|
+
component = arg;
|
|
173
|
+
}
|
|
174
|
+
ts.forEachChild(node, find);
|
|
175
|
+
};
|
|
176
|
+
find(sourceFile);
|
|
177
|
+
if (!component)
|
|
178
|
+
return { result: source, status: 'manual', reason: 'no matching @Component found' };
|
|
179
|
+
const standalone = component.properties.find((p) => propertyName(p) === 'standalone');
|
|
180
|
+
if (standalone && ts.isPropertyAssignment(standalone) && standalone.initializer.kind === ts.SyntaxKind.FalseKeyword) {
|
|
181
|
+
return { result: source, status: 'manual', reason: 'the component is not standalone, update its NgModule' };
|
|
182
|
+
}
|
|
183
|
+
const importsProp = component.properties.find((p) => propertyName(p) === 'imports');
|
|
184
|
+
if (!importsProp || !ts.isPropertyAssignment(importsProp) || !ts.isArrayLiteralExpression(importsProp.initializer)) {
|
|
185
|
+
return { result: source, status: 'manual', reason: 'the component has no inline "imports" array' };
|
|
186
|
+
}
|
|
187
|
+
const array = importsProp.initializer;
|
|
188
|
+
if (array.elements.some((e) => ts.isIdentifier(e) && e.text === DIRECTIVE_CLASS)) {
|
|
189
|
+
return { result: source, status: 'present' };
|
|
190
|
+
}
|
|
191
|
+
const edits = [];
|
|
192
|
+
if (array.elements.length > 0) {
|
|
193
|
+
const pos = array.elements[array.elements.length - 1].getEnd();
|
|
194
|
+
edits.push({ start: pos, end: pos, replacement: `, ${DIRECTIVE_CLASS}` });
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
const pos = array.getStart(sourceFile) + 1;
|
|
198
|
+
edits.push({ start: pos, end: pos, replacement: DIRECTIVE_CLASS });
|
|
199
|
+
}
|
|
200
|
+
const imports = sourceFile.statements.filter(ts.isImportDeclaration);
|
|
201
|
+
const existing = imports.find((i) => ts.isStringLiteral(i.moduleSpecifier) && i.moduleSpecifier.text === DIRECTIVE_PATH && i.importClause?.namedBindings && ts.isNamedImports(i.importClause.namedBindings));
|
|
202
|
+
const named = existing?.importClause?.namedBindings;
|
|
203
|
+
if (named && ts.isNamedImports(named)) {
|
|
204
|
+
if (!named.elements.some((e) => e.name.text === DIRECTIVE_CLASS)) {
|
|
205
|
+
if (named.elements.length > 0) {
|
|
206
|
+
const pos = named.elements[named.elements.length - 1].getEnd();
|
|
207
|
+
edits.push({ start: pos, end: pos, replacement: `, ${DIRECTIVE_CLASS}` });
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
const pos = named.getStart(sourceFile) + 1;
|
|
211
|
+
edits.push({ start: pos, end: pos, replacement: ` ${DIRECTIVE_CLASS} ` });
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
else if (imports.length > 0) {
|
|
216
|
+
const last = imports[imports.length - 1];
|
|
217
|
+
const quote = source[last.moduleSpecifier.getStart(sourceFile)] === '"' ? '"' : '\'';
|
|
218
|
+
const pos = last.getEnd();
|
|
219
|
+
edits.push({ start: pos, end: pos, replacement: `\nimport { ${DIRECTIVE_CLASS} } from ${quote}${DIRECTIVE_PATH}${quote};` });
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
edits.push({ start: 0, end: 0, replacement: `import { ${DIRECTIVE_CLASS} } from '${DIRECTIVE_PATH}';\n` });
|
|
223
|
+
}
|
|
224
|
+
return { result: applyEdits(source, edits), status: 'added' };
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Applies `renameTooltipMessage` to a whole file: the file itself for `.html`, the `template: \`...\`` literals for `.ts`.
|
|
228
|
+
*/
|
|
229
|
+
function renameTooltipMessageInFile(source, filePath, isTarget, warn) {
|
|
230
|
+
if (filePath.endsWith('.html'))
|
|
231
|
+
return renameTooltipMessage(source, isTarget, warn);
|
|
232
|
+
let renamed = 0;
|
|
233
|
+
const result = source.replace(/template\s*:\s*`([^`]*)`/gs, (match, templateContent) => {
|
|
234
|
+
if (!templateContent.includes(OLD_INPUT))
|
|
235
|
+
return match;
|
|
236
|
+
const migrated = renameTooltipMessage(templateContent, isTarget, warn);
|
|
237
|
+
renamed += migrated.renamed;
|
|
238
|
+
return migrated.result === templateContent ? match : match.replace(templateContent, () => migrated.result);
|
|
239
|
+
});
|
|
240
|
+
return { result, renamed };
|
|
241
|
+
}
|
|
242
|
+
/** Reports `x.tooltipMessage` property accesses in TS files, which cannot be migrated automatically. */
|
|
243
|
+
function warnTooltipMessageUsages(source, filePath, context) {
|
|
244
|
+
if (!filePath.endsWith('.ts') || filePath.endsWith('.spec.ts') || !source.includes(OLD_INPUT))
|
|
245
|
+
return;
|
|
246
|
+
const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true);
|
|
247
|
+
const visit = (node) => {
|
|
248
|
+
if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && node.name.text === OLD_INPUT) {
|
|
249
|
+
const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());
|
|
250
|
+
context.logger.warn(`${filePath}:${line + 1} - "${OLD_INPUT}" is no longer an input on eui-chip. Use the "${NEW_INPUT}" directive instead.`);
|
|
251
|
+
}
|
|
252
|
+
ts.forEachChild(node, visit);
|
|
253
|
+
};
|
|
254
|
+
visit(sourceFile);
|
|
255
|
+
}
|
|
256
|
+
//# sourceMappingURL=tooltip-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-message.js","sourceRoot":"","sources":["../../../schematics/utils/tooltip-message.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,oDAwCC;AAqJD,gEAgBC;AAGD,4DAWC;AAtPD,gDAA+E;AAE/E,+CAAiC;AAEjC,MAAM,SAAS,GAAG,gBAAgB,CAAC;AACnC,MAAM,SAAS,GAAG,YAAY,CAAC;AAC/B,MAAM,eAAe,GAAG,qBAAqB,CAAC;AAC9C,MAAM,cAAc,GAAG,4BAA4B,CAAC;AAQpD,SAAS,UAAU,CAAC,MAAc,EAAE,KAAa;IAC/C,IAAI,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,MAAM,IAAI,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;QAChE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnF,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,SAAgB,oBAAoB,CAClC,MAAc,EACd,QAA8C,EAC9C,IAA+B;IAE/B,MAAM,MAAM,GAAG,IAAA,wBAAa,EAAC,MAAM,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC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