@eui/core 22.0.0-alpha.8 → 22.0.0-alpha.80
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 +1149 -0
- package/assets/i18n-eui/bg.json +23 -1
- package/assets/i18n-eui/cs.json +23 -1
- package/assets/i18n-eui/da.json +23 -1
- package/assets/i18n-eui/de.json +23 -1
- package/assets/i18n-eui/el.json +23 -1
- package/assets/i18n-eui/en.json +23 -1
- package/assets/i18n-eui/es.json +23 -1
- package/assets/i18n-eui/et.json +31 -2
- package/assets/i18n-eui/fi.json +24 -2
- package/assets/i18n-eui/fr.json +23 -1
- package/assets/i18n-eui/ga.json +23 -1
- package/assets/i18n-eui/hr.json +23 -1
- package/assets/i18n-eui/hu.json +23 -1
- package/assets/i18n-eui/it.json +23 -1
- package/assets/i18n-eui/lt.json +23 -1
- package/assets/i18n-eui/lv.json +23 -1
- package/assets/i18n-eui/mt.json +23 -1
- package/assets/i18n-eui/nl.json +23 -1
- package/assets/i18n-eui/pl.json +23 -1
- package/assets/i18n-eui/pt.json +23 -1
- package/assets/i18n-eui/ro.json +23 -1
- package/assets/i18n-eui/sk.json +23 -1
- package/assets/i18n-eui/sl.json +23 -1
- package/assets/i18n-eui/sv.json +23 -1
- package/docs/changelog.html +1641 -0
- package/docs/classes/EuiAppShellServiceMock.html +3 -3
- package/docs/classes/TranslateServiceMock.html +8 -8
- package/docs/injectables/ApiQueueService.html +2 -2
- package/docs/injectables/EuiDynamicMenuService.html +4 -4
- package/docs/injectables/EuiTimezoneService.html +1 -1
- package/docs/injectables/I18nLoader.html +1 -1
- package/docs/injectables/I18nServiceMock.html +20 -5
- package/docs/injectables/StoreService.html +1 -1
- package/docs/interceptors/{UxRequestErrorModelInterceptor.html → RequestErrorInterceptor.html} +3 -3
- package/docs/interfaces/Annotation.html +402 -0
- package/docs/interfaces/Edit-1.html +1 -1
- package/docs/interfaces/Edit-10.html +395 -0
- package/docs/interfaces/Edit-11.html +395 -0
- package/docs/interfaces/Edit-12.html +395 -0
- package/docs/interfaces/Edit-13.html +395 -0
- package/docs/interfaces/Edit-14.html +395 -0
- package/docs/interfaces/Edit-15.html +395 -0
- package/docs/interfaces/Edit-16.html +395 -0
- package/docs/interfaces/Edit-2.html +1 -1
- package/docs/interfaces/Edit-3.html +1 -1
- package/docs/interfaces/Edit-4.html +1 -1
- package/docs/interfaces/Edit-5.html +395 -0
- package/docs/interfaces/Edit-6.html +395 -0
- package/docs/interfaces/Edit-7.html +395 -0
- package/docs/interfaces/Edit-8.html +395 -0
- package/docs/interfaces/Edit-9.html +395 -0
- package/docs/interfaces/Edit.html +1 -1
- package/docs/interfaces/IEuiTheme.html +4 -4
- package/docs/interfaces/LoadedResources.html +2 -2
- package/docs/interfaces/MigrateEclSchema.html +368 -0
- package/docs/interfaces/MigrateResult.html +39 -0
- package/docs/interfaces/ModuleLoadEvent.html +2 -2
- package/docs/interfaces/OutputFormatUsage.html +446 -0
- package/docs/interfaces/RemovedAttr.html +401 -0
- package/docs/interfaces/{TranslationKeys.html → RemovedIdentifier.html} +100 -16
- package/docs/interfaces/{ActionReducer.html → RemovedTag.html} +58 -19
- package/docs/interfaces/Schema-10.html +14 -1
- package/docs/interfaces/Schema-11.html +14 -1
- package/docs/interfaces/Schema-12.html +31 -1
- package/docs/interfaces/Schema-13.html +14 -1
- package/docs/interfaces/Schema-14.html +13 -1
- package/docs/interfaces/Schema-15.html +12 -1
- package/docs/interfaces/Schema-16.html +20 -1
- package/docs/interfaces/Schema-17.html +1 -1
- package/docs/interfaces/Schema-18.html +1 -1
- package/docs/interfaces/Schema-19.html +1 -1
- package/docs/interfaces/Schema-20.html +1 -1
- package/docs/interfaces/Schema-21.html +1 -1
- package/docs/interfaces/Schema-22.html +1 -1
- package/docs/interfaces/Schema-23.html +368 -0
- package/docs/interfaces/Schema-24.html +368 -0
- package/docs/interfaces/Schema-25.html +368 -0
- package/docs/interfaces/Schema-26.html +368 -0
- package/docs/interfaces/Schema-27.html +368 -0
- package/docs/interfaces/Schema-28.html +368 -0
- package/docs/interfaces/Schema-29.html +368 -0
- package/docs/interfaces/Schema-3.html +13 -64
- package/docs/interfaces/Schema-30.html +368 -0
- package/docs/interfaces/Schema-31.html +368 -0
- package/docs/interfaces/Schema-32.html +368 -0
- package/docs/interfaces/Schema-33.html +368 -0
- package/docs/interfaces/Schema-34.html +368 -0
- package/docs/interfaces/Schema-35.html +368 -0
- package/docs/interfaces/Schema-36.html +368 -0
- package/docs/interfaces/Schema-37.html +368 -0
- package/docs/interfaces/Schema-4.html +26 -1
- package/docs/interfaces/Schema-5.html +64 -1
- package/docs/interfaces/Schema-6.html +20 -1
- package/docs/interfaces/Schema-7.html +22 -1
- package/docs/interfaces/Schema-8.html +14 -1
- package/docs/interfaces/Schema-9.html +14 -1
- package/docs/interfaces/SelectorMapping.html +395 -0
- package/docs/interfaces/TemplateSource.html +395 -0
- package/docs/interfaces/TextEdit.html +395 -0
- package/docs/interfaces/TodoEdit.html +395 -0
- package/docs/js/menu-wc.js +114 -9
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/documentation.json +33518 -14116
- package/docs/llms.txt +901 -68
- package/docs/miscellaneous/functions.html +15233 -1676
- package/docs/miscellaneous/typealiases.html +70 -0
- package/docs/miscellaneous/variables.html +2552 -210
- package/docs/overview.html +1 -1
- package/docs/properties.html +1 -1
- package/fesm2022/eui-core.mjs +5790 -5463
- package/fesm2022/eui-core.mjs.map +1 -1
- package/migrations.json +191 -0
- package/package.json +2 -2
- package/schematics/add-eui-imports/index.js +1 -1
- package/schematics/add-eui-imports/index.js.map +1 -1
- package/schematics/collection.json +81 -0
- package/schematics/migrate/index.js +2 -2
- package/schematics/migrate/replacements/icons.d.ts +3 -1
- package/schematics/migrate/replacements/icons.js +15 -5
- package/schematics/migrate/replacements/icons.js.map +1 -1
- package/schematics/migrate/replacements/mwp.js +1 -0
- package/schematics/migrate/replacements/mwp.js.map +1 -1
- package/schematics/migrate-all/index.js +15 -0
- package/schematics/migrate-all/index.js.map +1 -1
- package/schematics/migrate-ecl/index.d.ts +21 -0
- package/schematics/migrate-ecl/index.js +40 -0
- package/schematics/migrate-ecl/index.js.map +1 -0
- package/schematics/migrate-ecl/schema.json +20 -0
- package/schematics/migrate-ecl-breadcrumb/index.d.ts +16 -0
- package/schematics/migrate-ecl-breadcrumb/index.js +179 -0
- package/schematics/migrate-ecl-breadcrumb/index.js.map +1 -0
- package/schematics/migrate-ecl-breadcrumb/schema.json +18 -0
- package/schematics/migrate-ecl-file/index.d.ts +28 -0
- package/schematics/migrate-ecl-file/index.js +273 -0
- package/schematics/migrate-ecl-file/index.js.map +1 -0
- package/schematics/migrate-ecl-file/schema.json +18 -0
- package/schematics/migrate-ecl-icon/index.d.ts +22 -0
- package/schematics/migrate-ecl-icon/index.js +259 -0
- package/schematics/migrate-ecl-icon/index.js.map +1 -0
- package/schematics/migrate-ecl-icon/schema.json +18 -0
- package/schematics/migrate-ecl-inpage-navigation/index.d.ts +17 -0
- package/schematics/migrate-ecl-inpage-navigation/index.js +179 -0
- package/schematics/migrate-ecl-inpage-navigation/index.js.map +1 -0
- package/schematics/migrate-ecl-inpage-navigation/schema.json +18 -0
- package/schematics/migrate-ecl-link/index.d.ts +25 -0
- package/schematics/migrate-ecl-link/index.js +300 -0
- package/schematics/migrate-ecl-link/index.js.map +1 -0
- package/schematics/migrate-ecl-link/schema.json +18 -0
- package/schematics/migrate-ecl-page-header/index.d.ts +16 -0
- package/schematics/migrate-ecl-page-header/index.js +179 -0
- package/schematics/migrate-ecl-page-header/index.js.map +1 -0
- package/schematics/migrate-ecl-page-header/schema.json +18 -0
- package/schematics/migrate-ecl-page-summary/index.d.ts +17 -0
- package/schematics/migrate-ecl-page-summary/index.js +179 -0
- package/schematics/migrate-ecl-page-summary/index.js.map +1 -0
- package/schematics/migrate-ecl-page-summary/schema.json +18 -0
- package/schematics/migrate-ecl-pagination/index.d.ts +17 -0
- package/schematics/migrate-ecl-pagination/index.js +179 -0
- package/schematics/migrate-ecl-pagination/index.js.map +1 -0
- package/schematics/migrate-ecl-pagination/schema.json +18 -0
- package/schematics/migrate-ecl-quiz/index.d.ts +17 -0
- package/schematics/migrate-ecl-quiz/index.js +192 -0
- package/schematics/migrate-ecl-quiz/index.js.map +1 -0
- package/schematics/migrate-ecl-quiz/schema.json +18 -0
- package/schematics/migrate-ecl-removed-components/index.d.ts +32 -0
- package/schematics/migrate-ecl-removed-components/index.js +289 -0
- package/schematics/migrate-ecl-removed-components/index.js.map +1 -0
- package/schematics/migrate-ecl-removed-components/schema.json +18 -0
- package/schematics/migrate-ecl-site-footer/index.d.ts +17 -0
- package/schematics/migrate-ecl-site-footer/index.js +179 -0
- package/schematics/migrate-ecl-site-footer/index.js.map +1 -0
- package/schematics/migrate-ecl-site-footer/schema.json +18 -0
- package/schematics/migrate-ecl-tabs/index.d.ts +15 -0
- package/schematics/migrate-ecl-tabs/index.js +180 -0
- package/schematics/migrate-ecl-tabs/index.js.map +1 -0
- package/schematics/migrate-ecl-tabs/schema.json +18 -0
- package/schematics/migrate-ecl-timeline/index.d.ts +22 -0
- package/schematics/migrate-ecl-timeline/index.js +184 -0
- package/schematics/migrate-ecl-timeline/index.js.map +1 -0
- package/schematics/migrate-ecl-timeline/schema.json +18 -0
- package/schematics/migrate-eui-alert/index.js +2 -2
- package/schematics/migrate-eui-alert/index.js.map +1 -1
- package/schematics/migrate-eui-chip-list/index.js +1 -1
- package/schematics/migrate-eui-chip-list/index.js.map +1 -1
- package/schematics/migrate-eui-date-range-selector/schema.json +19 -0
- package/schematics/migrate-eui-datepicker/index.d.ts +19 -0
- package/schematics/migrate-eui-datepicker/index.js +206 -0
- package/schematics/migrate-eui-datepicker/index.js.map +1 -0
- package/schematics/migrate-eui-datepicker/schema.json +19 -0
- package/schematics/migrate-eui-table/index.js +1 -1
- package/schematics/migrate-eui-table/index.js.map +1 -1
- package/schematics/migrate-eui-tabs/index.js +5 -5
- package/schematics/migrate-eui-tabs/index.js.map +1 -1
- package/schematics/migrate-eui-tooltip/index.js +2 -2
- package/schematics/migrate-eui-tooltip/index.js.map +1 -1
- package/schematics/migrate-eui-tooltip/schema.json +19 -0
- package/schematics/migrate-to-signals/ecl-signal-map.d.ts +17 -0
- package/schematics/migrate-to-signals/ecl-signal-map.js +342 -0
- package/schematics/migrate-to-signals/ecl-signal-map.js.map +1 -0
- package/schematics/migrate-to-signals/index.d.ts +3 -2
- package/schematics/migrate-to-signals/index.js +155 -26
- package/schematics/migrate-to-signals/index.js.map +1 -1
- package/schematics/migrate-to-signals/schema.json +19 -0
- package/schematics/utils/date-adapter.d.ts +30 -0
- package/schematics/utils/date-adapter.js +125 -0
- package/schematics/utils/date-adapter.js.map +1 -0
- package/schematics/utils/todo-comment.d.ts +25 -0
- package/schematics/utils/todo-comment.js +47 -0
- package/schematics/utils/todo-comment.js.map +1 -0
- package/types/eui-core.d.ts +2098 -2174
- package/types/eui-core.d.ts.map +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Helpers to mark template spots that a schematic cannot migrate automatically
|
|
4
|
+
* with a searchable `TODO: [eUI v22 migration] ...` HTML comment.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.TODO_PREFIX = void 0;
|
|
8
|
+
exports.createTodoEdit = createTodoEdit;
|
|
9
|
+
exports.TODO_PREFIX = 'TODO: [eUI v22 migration]';
|
|
10
|
+
/**
|
|
11
|
+
* Builds an edit that inserts an HTML TODO comment in front of the element
|
|
12
|
+
* starting at `elementOffset`.
|
|
13
|
+
*
|
|
14
|
+
* - When the element is the first thing on its line, the comment goes on its own
|
|
15
|
+
* line above it, using the same indentation.
|
|
16
|
+
* - Otherwise (e.g. single-line inline templates) the comment is inserted inline.
|
|
17
|
+
*
|
|
18
|
+
* The comment is safe to embed in single, double and backtick quoted inline
|
|
19
|
+
* templates: quotes, backticks, `${` and `--` are stripped from the message.
|
|
20
|
+
*
|
|
21
|
+
* Returns `null` when the same TODO is already directly above the element, so
|
|
22
|
+
* re-running the schematic does not duplicate it.
|
|
23
|
+
*/
|
|
24
|
+
function createTodoEdit(source, elementOffset, message) {
|
|
25
|
+
const comment = `<!-- ${exports.TODO_PREFIX} ${sanitize(message)} -->`;
|
|
26
|
+
const lineStart = source.lastIndexOf('\n', elementOffset - 1) + 1;
|
|
27
|
+
const beforeOnLine = source.slice(lineStart, elementOffset);
|
|
28
|
+
const ownLine = /^\s*$/.test(beforeOnLine);
|
|
29
|
+
// Idempotency: the comment is already right before the element.
|
|
30
|
+
const preceding = source.slice(0, ownLine ? lineStart : elementOffset).trimEnd();
|
|
31
|
+
if (preceding.endsWith(comment))
|
|
32
|
+
return null;
|
|
33
|
+
if (ownLine) {
|
|
34
|
+
const eol = source.includes('\r\n') ? '\r\n' : '\n';
|
|
35
|
+
return { start: elementOffset, end: elementOffset, replacement: `${comment}${eol}${beforeOnLine}` };
|
|
36
|
+
}
|
|
37
|
+
return { start: elementOffset, end: elementOffset, replacement: `${comment} ` };
|
|
38
|
+
}
|
|
39
|
+
function sanitize(message) {
|
|
40
|
+
return message
|
|
41
|
+
.replace(/["'`]/g, '')
|
|
42
|
+
.replace(/\$\{/g, '')
|
|
43
|
+
.replace(/--/g, '-')
|
|
44
|
+
.replace(/\s+/g, ' ')
|
|
45
|
+
.trim();
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=todo-comment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo-comment.js","sourceRoot":"","sources":["../../../schematics/utils/todo-comment.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAwBH,wCAgBC;AAtCY,QAAA,WAAW,GAAG,2BAA2B,CAAC;AAQvD;;;;;;;;;;;;;GAaG;AACH,SAAgB,cAAc,CAAC,MAAc,EAAE,aAAqB,EAAE,OAAe;IACnF,MAAM,OAAO,GAAG,QAAQ,mBAAW,IAAI,QAA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