@eui/core 22.0.0-alpha.70 → 22.0.0-alpha.71
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 +21 -0
- package/docs/changelog.html +27 -0
- package/docs/interfaces/OutputFormatUsage.html +446 -0
- package/docs/interfaces/Schema-13.html +25 -8
- package/docs/interfaces/Schema-14.html +8 -6
- package/docs/interfaces/Schema-15.html +6 -14
- package/docs/interfaces/Schema-16.html +12 -23
- package/docs/interfaces/TemplateSource.html +395 -0
- package/docs/interfaces/TextEdit.html +395 -0
- package/docs/js/menu-wc.js +9 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/documentation.json +1385 -201
- package/docs/llms.txt +79 -20
- package/docs/miscellaneous/functions.html +6420 -5687
- package/docs/miscellaneous/typealiases.html +22 -0
- package/docs/miscellaneous/variables.html +159 -0
- 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 +1 -1
- package/schematics/migrate-eui-datepicker/index.d.ts +9 -8
- package/schematics/migrate-eui-datepicker/index.js +260 -60
- package/schematics/migrate-eui-datepicker/index.js.map +1 -1
- package/schematics/migrate-eui-datepicker/schema.json +1 -1
|
@@ -2845,6 +2845,74 @@
|
|
|
2845
2845
|
"outgoing": []
|
|
2846
2846
|
}
|
|
2847
2847
|
},
|
|
2848
|
+
{
|
|
2849
|
+
"name": "OutputFormatUsage",
|
|
2850
|
+
"id": "interface-OutputFormatUsage-da08bdace85a2dca2f7e90dbdb98783e54f7a13b47f4e66bbfd2be49f70b50b67764b116079617816b931ab4427b05cf719bd5db829d5f2cf51e337a47494d77",
|
|
2851
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
2852
|
+
"deprecated": false,
|
|
2853
|
+
"deprecationMessage": "",
|
|
2854
|
+
"type": "interface",
|
|
2855
|
+
"sourceCode": "import { parseTemplate, TmplAstElement, TmplAstNode } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ntype AdapterKind = 'moment' | 'luxon' | 'native';\n\ninterface TextEdit {\n start: number;\n end: number;\n text: string;\n}\n\nconst MOMENT_PRESETS = ['DEFAULT_FORMATS', 'LETTER_FORMAT', 'YEAR_FORMAT', 'MONTH_YEAR_FORMAT'];\n\nconst ADAPTER_PATTERNS: Record<AdapterKind, RegExp> = {\n moment: /\\bprovideMomentDateAdapter\\s*\\(|\\bMomentDateAdapter\\b|\\bMatMomentDateModule\\b/,\n luxon: /\\bprovideLuxonDateAdapter\\s*\\(|\\bLuxonDateAdapter\\b|\\bMatLuxonDateModule\\b/,\n native: /\\bprovideNativeDateAdapter\\s*\\(|\\bNativeDateAdapter\\b|\\bMatNativeDateModule\\b|\\bNativeDateModule\\b/,\n};\n\nconst APP_ROOT_FILE = /(^|\\/)(app\\.config|app\\.module|main)\\.ts$/;\n\n// Moment tokens that have an identical-meaning Luxon token. Anything else is left for manual review.\nconst MOMENT_TO_LUXON_TOKENS: Record<string, string> = {\n YYYY: 'yyyy', YY: 'yy',\n MMMM: 'MMMM', MMM: 'MMM', MM: 'MM', M: 'M',\n DD: 'dd', D: 'd',\n HH: 'HH', H: 'H', hh: 'hh', h: 'h',\n mm: 'mm', m: 'm', ss: 'ss', s: 's', SSS: 'SSS',\n A: 'a',\n};\n\n/**\n * Migrates eui-datepicker usages to the moment-free datepicker:\n * - moment locales are no longer bundled (report only);\n * - with a Luxon adapter, moment-token presets are replaced by their `LUXON_*` equivalents and static\n * `dateOutputFormat` values are converted to Luxon tokens;\n * - with the native adapter, `dateOutputFormat` is no longer supported (report only).\n *\n * The adapter is detected from the component file, falling back to the one provided in\n * app.config.ts / app.module.ts / main.ts.\n */\nexport function migrateEuiDatepicker(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n const files: string[] = [];\n visitDir(tree.getDir(scanPath || '/'), (path) => files.push(path));\n\n reportMomentLocales(tree, context, files);\n\n const appAdapter = detectAppAdapter(tree, files);\n let editedFiles = 0;\n let manualActions = 0;\n\n for (const path of files.filter((file) => file.endsWith('.ts'))) {\n const source = tree.read(path)?.toString('utf-8');\n if (!source) continue;\n\n const kinds = adapterKinds(source);\n // A file referencing several adapters is ambiguous; it is not migrated automatically.\n const adapter = kinds.length === 0 ? appAdapter : kinds.length === 1 ? kinds[0] : undefined;\n if (adapter !== 'luxon' && adapter !== 'native') continue;\n\n const fileEdits = new Map<string, TextEdit[]>();\n const addEdits = (file: string, edits: TextEdit[]): void => {\n if (edits.length) fileEdits.set(file, [...(fileEdits.get(file) ?? []), ...edits]);\n };\n\n if (adapter === 'luxon') {\n addEdits(path, luxonPresetEdits(source));\n }\n\n for (const template of componentTemplates(tree, path, source)) {\n for (const usage of findOutputFormatUsages(template.content)) {\n if (adapter === 'native') {\n manualActions++;\n context.logger.warn(\n ` Manual action needed: ${template.file} uses dateOutputFormat with NativeDateAdapter, which is no longer supported. `\n + 'Keep the Date value and map it to a string in your code (e.g. with Intl.DateTimeFormat), or switch to a moment/Luxon adapter.',\n );\n continue;\n }\n if (usage.staticValue !== undefined && isLikelyLuxonFormat(usage.staticValue)) continue;\n const converted = usage.staticValue !== undefined ? momentFormatToLuxon(usage.staticValue) : null;\n if (converted === null) {\n manualActions++;\n context.logger.warn(\n ` Manual action needed: ${template.file} uses dateOutputFormat \"${usage.staticValue ?? usage.expression}\" with LuxonDateAdapter. `\n + 'dateOutputFormat is now formatted by the adapter: make sure it uses Luxon tokens (e.g. yyyy-MM-dd).',\n );\n } else if (converted !== usage.staticValue) {\n addEdits(template.file, [{ start: template.offset + usage.start, end: template.offset + usage.end, text: converted }]);\n }\n }\n }\n\n for (const [file, edits] of fileEdits) {\n editedFiles++;\n if (options.dryRun) {\n logDryRun(context, `Would migrate eui-datepicker Luxon formats in ${file}`);\n } else {\n tree.overwrite(file, applyEdits(tree.read(file)!.toString('utf-8'), edits));\n context.logger.info(`Migrated eui-datepicker Luxon formats in ${file}`);\n }\n }\n }\n\n context.logger.info(`eui-datepicker adapter migration: ${editedFiles} file(s) updated, ${manualActions} manual action(s) reported.`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction reportMomentLocales(tree: Tree, context: SchematicContext, files: string[]): void {\n const matches = files.filter((path) => {\n const content = tree.read(path)?.toString('utf-8') ?? '';\n if (!content.includes('eui-datepicker')) return false;\n return path.endsWith('.html') ? templateUsesDatepicker(content) : inlineTemplates(content).some((t) => templateUsesDatepicker(t.content));\n });\n\n if (matches.length === 0) {\n context.logger.info('No eui-datepicker usage found; no moment-locale action required.');\n return;\n }\n\n context.logger.warn(\n 'Breaking change: eui-datepicker no longer bundles moment locale data. '\n + 'Import the moment locales your app uses (e.g. `import \\'moment/locale/fr\\';`) '\n + 'in the module/bootstrap where the datepicker is used; otherwise dates fall back '\n + 'to the active moment locale and may format incorrectly.',\n );\n for (const path of matches) {\n context.logger.warn(` Manual action needed: ${path} uses eui-datepicker — ensure the required moment locale(s) are imported.`);\n }\n context.logger.info(`eui-datepicker moment-locale check: ${matches.length} file(s) use eui-datepicker.`);\n}\n\nfunction adapterKinds(source: string): AdapterKind[] {\n return (Object.keys(ADAPTER_PATTERNS) as AdapterKind[]).filter((kind) => ADAPTER_PATTERNS[kind].test(source));\n}\n\nfunction detectAppAdapter(tree: Tree, files: string[]): AdapterKind | undefined {\n const kinds = new Set<AdapterKind>();\n for (const path of files.filter((file) => APP_ROOT_FILE.test(file))) {\n adapterKinds(tree.read(path)?.toString('utf-8') ?? '').forEach((kind) => kinds.add(kind));\n }\n return kinds.size === 1 ? [...kinds][0] : undefined;\n}\n\n// Moment date formats practically always contain Y or D tokens, which Luxon does not use, so a\n// format without them is treated as already migrated (keeps the schematic idempotent).\nfunction isLikelyLuxonFormat(format: string): boolean {\n return !/[YD]/.test(format.replace(/\\[[^\\]]*\\]|'[^']*'/g, ''));\n}\n\n/** Converts a moment format to Luxon, or returns null when it contains tokens without a safe equivalent. */\nexport function momentFormatToLuxon(format: string): string | null {\n let result = '';\n let i = 0;\n while (i < format.length) {\n const char = format[i];\n if (char === '[') {\n const close = format.indexOf(']', i);\n const literal = close === -1 ? null : format.slice(i + 1, close);\n if (literal === null || literal.includes('\\'')) return null;\n result += `'${literal}'`;\n i = close + 1;\n } else if (/[A-Za-z]/.test(char)) {\n let end = i;\n while (format[end] === char) end++;\n const luxonToken = MOMENT_TO_LUXON_TOKENS[format.slice(i, end)];\n if (luxonToken === undefined) return null;\n result += luxonToken;\n i = end;\n } else if (char === '\\'') {\n return null;\n } else {\n result += char;\n i++;\n }\n }\n return result;\n}\n\nfunction luxonPresetEdits(source: string): TextEdit[] {\n const importRegex = /import\\s*\\{([^}]*)\\}\\s*from\\s*['\"]@eui\\/components\\/eui-datepicker['\"]/g;\n const edits: TextEdit[] = [];\n const renamedLocals = new Set<string>();\n let match: RegExpExecArray | null;\n\n while ((match = importRegex.exec(source)) !== null) {\n const clauseStart = match.index + match[0].indexOf('{') + 1;\n const specifierRegex = /\\b([A-Z_]+)\\b(\\s+as\\s+\\w+)?/g;\n let specifier: RegExpExecArray | null;\n while ((specifier = specifierRegex.exec(match[1])) !== null) {\n const [, name, alias] = specifier;\n if (!MOMENT_PRESETS.includes(name)) continue;\n const start = clauseStart + specifier.index;\n edits.push({ start, end: start + name.length, text: `LUXON_${name}` });\n if (!alias) renamedLocals.add(name);\n }\n }\n\n for (const name of renamedLocals) {\n const usageRegex = new RegExp(`(?<![\\\\w.$])${name}(?![\\\\w$])`, 'g');\n let usage: RegExpExecArray | null;\n while ((usage = usageRegex.exec(source)) !== null) {\n const start = usage.index;\n if (!edits.some((edit) => edit.start === start)) {\n edits.push({ start, end: start + name.length, text: `LUXON_${name}` });\n }\n }\n }\n return edits;\n}\n\ninterface TemplateSource {\n file: string;\n content: string;\n offset: number;\n}\n\nfunction componentTemplates(tree: Tree, path: string, source: string): TemplateSource[] {\n const templates: TemplateSource[] = inlineTemplates(source).map((t) => ({ file: path, ...t }));\n const templateUrl = /templateUrl\\s*:\\s*['\"]([^'\"]+)['\"]/.exec(source)?.[1];\n if (templateUrl) {\n const file = resolvePath(path, templateUrl);\n const content = tree.read(file)?.toString('utf-8');\n if (content !== undefined) templates.push({ file, content, offset: 0 });\n }\n return templates.filter((t) => t.content.includes('eui-datepicker'));\n}\n\nfunction inlineTemplates(source: string): { content: string; offset: number }[] {\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n const templates: { content: string; offset: number }[] = [];\n let match: RegExpExecArray | null;\n while ((match = templateRegex.exec(source)) !== null) {\n templates.push({ content: match[1], offset: match.index + match[0].length - 1 - match[1].length });\n }\n return templates;\n}\n\ninterface OutputFormatUsage {\n staticValue?: string;\n expression?: string;\n start: number;\n end: number;\n}\n\nfunction findOutputFormatUsages(template: string): OutputFormatUsage[] {\n const usages: OutputFormatUsage[] = [];\n let nodes: TmplAstNode[];\n try {\n nodes = parseTemplate(template, '', { preserveWhitespaces: true }).nodes;\n } catch {\n return usages;\n }\n forEachDatepicker(nodes, (element) => {\n for (const attribute of element.attributes) {\n if (attribute.name === 'dateOutputFormat' && attribute.valueSpan) {\n usages.push({ staticValue: attribute.value, start: attribute.valueSpan.start.offset, end: attribute.valueSpan.end.offset });\n }\n }\n for (const binding of element.inputs) {\n if (binding.name === 'dateOutputFormat') {\n usages.push({ expression: binding.valueSpan?.toString() ?? binding.name, start: binding.sourceSpan.start.offset, end: binding.sourceSpan.end.offset });\n }\n }\n });\n return usages;\n}\n\n// Elements keep their children in `children`; control-flow blocks nest them under branches, cases,\n// the @for empty block and the @defer sub-blocks.\nconst NESTED_NODE_KEYS = ['children', 'branches', 'cases', 'empty', 'placeholder', 'loading', 'error'];\n\nfunction forEachDatepicker(nodes: TmplAstNode[], callback: (element: TmplAstElement) => void): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement && node.name === 'eui-datepicker') {\n callback(node);\n }\n for (const key of NESTED_NODE_KEYS) {\n const nested = (node as unknown as Record<string, unknown>)[key];\n if (Array.isArray(nested)) {\n forEachDatepicker(nested as TmplAstNode[], callback);\n } else if (nested && typeof nested === 'object') {\n forEachDatepicker([nested as TmplAstNode], callback);\n }\n }\n }\n}\n\nfunction applyEdits(content: string, edits: TextEdit[]): string {\n return [...edits]\n .sort((a, b) => b.start - a.start)\n .reduce((result, edit) => result.slice(0, edit.start) + edit.text + result.slice(edit.end), content);\n}\n\nfunction resolvePath(fromFile: string, relative: string): string {\n const segments = fromFile.split('/').slice(0, -1);\n for (const part of relative.split('/')) {\n if (part === '..') segments.pop();\n else if (part !== '.' && part !== '') segments.push(part);\n }\n return segments.join('/');\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n\nfunction templateUsesDatepicker(source: string): boolean {\n let nodes: TmplAstNode[];\n try {\n nodes = parseTemplate(source, '', { preserveWhitespaces: true }).nodes;\n } catch {\n return source.includes('eui-datepicker');\n }\n let found = false;\n forEachDatepicker(nodes, () => (found = true));\n return found;\n}\n",
|
|
2856
|
+
"displayName": "OutputFormatUsage",
|
|
2857
|
+
"properties": [
|
|
2858
|
+
{
|
|
2859
|
+
"name": "end",
|
|
2860
|
+
"coverageIgnore": false,
|
|
2861
|
+
"deprecated": false,
|
|
2862
|
+
"deprecationMessage": "",
|
|
2863
|
+
"type": "number",
|
|
2864
|
+
"indexKey": "",
|
|
2865
|
+
"optional": false,
|
|
2866
|
+
"description": "",
|
|
2867
|
+
"line": 255,
|
|
2868
|
+
"rawdescription": "\n"
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
"name": "expression",
|
|
2872
|
+
"coverageIgnore": false,
|
|
2873
|
+
"deprecated": false,
|
|
2874
|
+
"deprecationMessage": "",
|
|
2875
|
+
"type": "string",
|
|
2876
|
+
"indexKey": "",
|
|
2877
|
+
"optional": true,
|
|
2878
|
+
"description": "",
|
|
2879
|
+
"line": 253,
|
|
2880
|
+
"rawdescription": "\n"
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
"name": "start",
|
|
2884
|
+
"coverageIgnore": false,
|
|
2885
|
+
"deprecated": false,
|
|
2886
|
+
"deprecationMessage": "",
|
|
2887
|
+
"type": "number",
|
|
2888
|
+
"indexKey": "",
|
|
2889
|
+
"optional": false,
|
|
2890
|
+
"description": "",
|
|
2891
|
+
"line": 254,
|
|
2892
|
+
"rawdescription": "\n"
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
"name": "staticValue",
|
|
2896
|
+
"coverageIgnore": false,
|
|
2897
|
+
"deprecated": false,
|
|
2898
|
+
"deprecationMessage": "",
|
|
2899
|
+
"type": "string",
|
|
2900
|
+
"indexKey": "",
|
|
2901
|
+
"optional": true,
|
|
2902
|
+
"description": "",
|
|
2903
|
+
"line": 252,
|
|
2904
|
+
"rawdescription": "\n"
|
|
2905
|
+
}
|
|
2906
|
+
],
|
|
2907
|
+
"indexSignatures": [],
|
|
2908
|
+
"kind": 172,
|
|
2909
|
+
"methods": [],
|
|
2910
|
+
"extends": [],
|
|
2911
|
+
"relationships": {
|
|
2912
|
+
"incoming": [],
|
|
2913
|
+
"outgoing": []
|
|
2914
|
+
}
|
|
2915
|
+
},
|
|
2848
2916
|
{
|
|
2849
2917
|
"name": "Policy",
|
|
2850
2918
|
"id": "interface-Policy-ab7cfc0aae7b6e23ef05981e22f2238b3acbcfbad724f99dad2ec4ed4b9bfb65d1ff5a5d91c16067d467e495e213d0de298aa017e6a5339f541c6351d89729e3",
|
|
@@ -4233,12 +4301,12 @@
|
|
|
4233
4301
|
},
|
|
4234
4302
|
{
|
|
4235
4303
|
"name": "Schema",
|
|
4236
|
-
"id": "interface-Schema-
|
|
4304
|
+
"id": "interface-Schema-da08bdace85a2dca2f7e90dbdb98783e54f7a13b47f4e66bbfd2be49f70b50b67764b116079617816b931ab4427b05cf719bd5db829d5f2cf51e337a47494d77-23",
|
|
4237
4305
|
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
4238
4306
|
"deprecated": false,
|
|
4239
4307
|
"deprecationMessage": "",
|
|
4240
4308
|
"type": "interface",
|
|
4241
|
-
"sourceCode": "import { parseTemplate, TmplAstElement, TmplAstNode } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport { logDryRunNote } from '../utils/dry-run';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\n/**\n * Advisory migration for the eui-datepicker moment-locale breaking change.\n *\n * `eui-datepicker` no longer bundles the moment locale data (the internal\n * `import 'moment/min/locales'` was removed). Apps that relied on the datepicker\n * implicitly registering every moment locale must now import the locales they use\n * themselves, e.g. `import 'moment/locale/fr';`. This schematic cannot know which\n * locales an app needs (and auto-importing all of them would reintroduce the bundle\n * cost the change removed), so it only reports the files that use `eui-datepicker`\n * and the manual action required.\n */\nexport function migrateEuiDatepicker(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n const matches: string[] = [];\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const content = buffer.toString('utf-8');\n if (!content.includes('eui-datepicker')) return;\n\n const usesDatepicker = path.endsWith('.html')\n ? templateUsesDatepicker(content)\n : inlineTemplateUsesDatepicker(content);\n\n if (usesDatepicker) {\n matches.push(path);\n }\n });\n\n if (matches.length === 0) {\n context.logger.info('No eui-datepicker usage found; no moment-locale action required.');\n return tree;\n }\n\n context.logger.warn(\n 'Breaking change: eui-datepicker no longer bundles moment locale data. '\n + 'Import the moment locales your app uses (e.g. `import \\'moment/locale/fr\\';`) '\n + 'in the module/bootstrap where the datepicker is used; otherwise dates fall back '\n + 'to the active moment locale and may format incorrectly.',\n );\n for (const path of matches) {\n context.logger.warn(` Manual action needed: ${path} uses eui-datepicker — ensure the required moment locale(s) are imported.`);\n }\n context.logger.info(`eui-datepicker moment-locale check: ${matches.length} file(s) use eui-datepicker.`);\n\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n\nfunction templateUsesDatepicker(source: string): boolean {\n try {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n return nodesContainDatepicker(parsed.nodes);\n } catch {\n // Fall back to a substring check if the template cannot be parsed.\n return source.includes('eui-datepicker');\n }\n}\n\nfunction inlineTemplateUsesDatepicker(source: string): boolean {\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n let match: RegExpExecArray | null;\n while ((match = templateRegex.exec(source)) !== null) {\n if (match[1].includes('eui-datepicker') && templateUsesDatepicker(match[1])) {\n return true;\n }\n }\n return false;\n}\n\nfunction nodesContainDatepicker(nodes: TmplAstNode[]): boolean {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === 'eui-datepicker') {\n return true;\n }\n if (nodesContainDatepicker(node.children)) {\n return true;\n }\n }\n }\n return false;\n}\n",
|
|
4309
|
+
"sourceCode": "import { parseTemplate, TmplAstElement, TmplAstNode } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ntype AdapterKind = 'moment' | 'luxon' | 'native';\n\ninterface TextEdit {\n start: number;\n end: number;\n text: string;\n}\n\nconst MOMENT_PRESETS = ['DEFAULT_FORMATS', 'LETTER_FORMAT', 'YEAR_FORMAT', 'MONTH_YEAR_FORMAT'];\n\nconst ADAPTER_PATTERNS: Record<AdapterKind, RegExp> = {\n moment: /\\bprovideMomentDateAdapter\\s*\\(|\\bMomentDateAdapter\\b|\\bMatMomentDateModule\\b/,\n luxon: /\\bprovideLuxonDateAdapter\\s*\\(|\\bLuxonDateAdapter\\b|\\bMatLuxonDateModule\\b/,\n native: /\\bprovideNativeDateAdapter\\s*\\(|\\bNativeDateAdapter\\b|\\bMatNativeDateModule\\b|\\bNativeDateModule\\b/,\n};\n\nconst APP_ROOT_FILE = /(^|\\/)(app\\.config|app\\.module|main)\\.ts$/;\n\n// Moment tokens that have an identical-meaning Luxon token. Anything else is left for manual review.\nconst MOMENT_TO_LUXON_TOKENS: Record<string, string> = {\n YYYY: 'yyyy', YY: 'yy',\n MMMM: 'MMMM', MMM: 'MMM', MM: 'MM', M: 'M',\n DD: 'dd', D: 'd',\n HH: 'HH', H: 'H', hh: 'hh', h: 'h',\n mm: 'mm', m: 'm', ss: 'ss', s: 's', SSS: 'SSS',\n A: 'a',\n};\n\n/**\n * Migrates eui-datepicker usages to the moment-free datepicker:\n * - moment locales are no longer bundled (report only);\n * - with a Luxon adapter, moment-token presets are replaced by their `LUXON_*` equivalents and static\n * `dateOutputFormat` values are converted to Luxon tokens;\n * - with the native adapter, `dateOutputFormat` is no longer supported (report only).\n *\n * The adapter is detected from the component file, falling back to the one provided in\n * app.config.ts / app.module.ts / main.ts.\n */\nexport function migrateEuiDatepicker(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n const files: string[] = [];\n visitDir(tree.getDir(scanPath || '/'), (path) => files.push(path));\n\n reportMomentLocales(tree, context, files);\n\n const appAdapter = detectAppAdapter(tree, files);\n let editedFiles = 0;\n let manualActions = 0;\n\n for (const path of files.filter((file) => file.endsWith('.ts'))) {\n const source = tree.read(path)?.toString('utf-8');\n if (!source) continue;\n\n const kinds = adapterKinds(source);\n // A file referencing several adapters is ambiguous; it is not migrated automatically.\n const adapter = kinds.length === 0 ? appAdapter : kinds.length === 1 ? kinds[0] : undefined;\n if (adapter !== 'luxon' && adapter !== 'native') continue;\n\n const fileEdits = new Map<string, TextEdit[]>();\n const addEdits = (file: string, edits: TextEdit[]): void => {\n if (edits.length) fileEdits.set(file, [...(fileEdits.get(file) ?? []), ...edits]);\n };\n\n if (adapter === 'luxon') {\n addEdits(path, luxonPresetEdits(source));\n }\n\n for (const template of componentTemplates(tree, path, source)) {\n for (const usage of findOutputFormatUsages(template.content)) {\n if (adapter === 'native') {\n manualActions++;\n context.logger.warn(\n ` Manual action needed: ${template.file} uses dateOutputFormat with NativeDateAdapter, which is no longer supported. `\n + 'Keep the Date value and map it to a string in your code (e.g. with Intl.DateTimeFormat), or switch to a moment/Luxon adapter.',\n );\n continue;\n }\n if (usage.staticValue !== undefined && isLikelyLuxonFormat(usage.staticValue)) continue;\n const converted = usage.staticValue !== undefined ? momentFormatToLuxon(usage.staticValue) : null;\n if (converted === null) {\n manualActions++;\n context.logger.warn(\n ` Manual action needed: ${template.file} uses dateOutputFormat \"${usage.staticValue ?? usage.expression}\" with LuxonDateAdapter. `\n + 'dateOutputFormat is now formatted by the adapter: make sure it uses Luxon tokens (e.g. yyyy-MM-dd).',\n );\n } else if (converted !== usage.staticValue) {\n addEdits(template.file, [{ start: template.offset + usage.start, end: template.offset + usage.end, text: converted }]);\n }\n }\n }\n\n for (const [file, edits] of fileEdits) {\n editedFiles++;\n if (options.dryRun) {\n logDryRun(context, `Would migrate eui-datepicker Luxon formats in ${file}`);\n } else {\n tree.overwrite(file, applyEdits(tree.read(file)!.toString('utf-8'), edits));\n context.logger.info(`Migrated eui-datepicker Luxon formats in ${file}`);\n }\n }\n }\n\n context.logger.info(`eui-datepicker adapter migration: ${editedFiles} file(s) updated, ${manualActions} manual action(s) reported.`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction reportMomentLocales(tree: Tree, context: SchematicContext, files: string[]): void {\n const matches = files.filter((path) => {\n const content = tree.read(path)?.toString('utf-8') ?? '';\n if (!content.includes('eui-datepicker')) return false;\n return path.endsWith('.html') ? templateUsesDatepicker(content) : inlineTemplates(content).some((t) => templateUsesDatepicker(t.content));\n });\n\n if (matches.length === 0) {\n context.logger.info('No eui-datepicker usage found; no moment-locale action required.');\n return;\n }\n\n context.logger.warn(\n 'Breaking change: eui-datepicker no longer bundles moment locale data. '\n + 'Import the moment locales your app uses (e.g. `import \\'moment/locale/fr\\';`) '\n + 'in the module/bootstrap where the datepicker is used; otherwise dates fall back '\n + 'to the active moment locale and may format incorrectly.',\n );\n for (const path of matches) {\n context.logger.warn(` Manual action needed: ${path} uses eui-datepicker — ensure the required moment locale(s) are imported.`);\n }\n context.logger.info(`eui-datepicker moment-locale check: ${matches.length} file(s) use eui-datepicker.`);\n}\n\nfunction adapterKinds(source: string): AdapterKind[] {\n return (Object.keys(ADAPTER_PATTERNS) as AdapterKind[]).filter((kind) => ADAPTER_PATTERNS[kind].test(source));\n}\n\nfunction detectAppAdapter(tree: Tree, files: string[]): AdapterKind | undefined {\n const kinds = new Set<AdapterKind>();\n for (const path of files.filter((file) => APP_ROOT_FILE.test(file))) {\n adapterKinds(tree.read(path)?.toString('utf-8') ?? '').forEach((kind) => kinds.add(kind));\n }\n return kinds.size === 1 ? [...kinds][0] : undefined;\n}\n\n// Moment date formats practically always contain Y or D tokens, which Luxon does not use, so a\n// format without them is treated as already migrated (keeps the schematic idempotent).\nfunction isLikelyLuxonFormat(format: string): boolean {\n return !/[YD]/.test(format.replace(/\\[[^\\]]*\\]|'[^']*'/g, ''));\n}\n\n/** Converts a moment format to Luxon, or returns null when it contains tokens without a safe equivalent. */\nexport function momentFormatToLuxon(format: string): string | null {\n let result = '';\n let i = 0;\n while (i < format.length) {\n const char = format[i];\n if (char === '[') {\n const close = format.indexOf(']', i);\n const literal = close === -1 ? null : format.slice(i + 1, close);\n if (literal === null || literal.includes('\\'')) return null;\n result += `'${literal}'`;\n i = close + 1;\n } else if (/[A-Za-z]/.test(char)) {\n let end = i;\n while (format[end] === char) end++;\n const luxonToken = MOMENT_TO_LUXON_TOKENS[format.slice(i, end)];\n if (luxonToken === undefined) return null;\n result += luxonToken;\n i = end;\n } else if (char === '\\'') {\n return null;\n } else {\n result += char;\n i++;\n }\n }\n return result;\n}\n\nfunction luxonPresetEdits(source: string): TextEdit[] {\n const importRegex = /import\\s*\\{([^}]*)\\}\\s*from\\s*['\"]@eui\\/components\\/eui-datepicker['\"]/g;\n const edits: TextEdit[] = [];\n const renamedLocals = new Set<string>();\n let match: RegExpExecArray | null;\n\n while ((match = importRegex.exec(source)) !== null) {\n const clauseStart = match.index + match[0].indexOf('{') + 1;\n const specifierRegex = /\\b([A-Z_]+)\\b(\\s+as\\s+\\w+)?/g;\n let specifier: RegExpExecArray | null;\n while ((specifier = specifierRegex.exec(match[1])) !== null) {\n const [, name, alias] = specifier;\n if (!MOMENT_PRESETS.includes(name)) continue;\n const start = clauseStart + specifier.index;\n edits.push({ start, end: start + name.length, text: `LUXON_${name}` });\n if (!alias) renamedLocals.add(name);\n }\n }\n\n for (const name of renamedLocals) {\n const usageRegex = new RegExp(`(?<![\\\\w.$])${name}(?![\\\\w$])`, 'g');\n let usage: RegExpExecArray | null;\n while ((usage = usageRegex.exec(source)) !== null) {\n const start = usage.index;\n if (!edits.some((edit) => edit.start === start)) {\n edits.push({ start, end: start + name.length, text: `LUXON_${name}` });\n }\n }\n }\n return edits;\n}\n\ninterface TemplateSource {\n file: string;\n content: string;\n offset: number;\n}\n\nfunction componentTemplates(tree: Tree, path: string, source: string): TemplateSource[] {\n const templates: TemplateSource[] = inlineTemplates(source).map((t) => ({ file: path, ...t }));\n const templateUrl = /templateUrl\\s*:\\s*['\"]([^'\"]+)['\"]/.exec(source)?.[1];\n if (templateUrl) {\n const file = resolvePath(path, templateUrl);\n const content = tree.read(file)?.toString('utf-8');\n if (content !== undefined) templates.push({ file, content, offset: 0 });\n }\n return templates.filter((t) => t.content.includes('eui-datepicker'));\n}\n\nfunction inlineTemplates(source: string): { content: string; offset: number }[] {\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n const templates: { content: string; offset: number }[] = [];\n let match: RegExpExecArray | null;\n while ((match = templateRegex.exec(source)) !== null) {\n templates.push({ content: match[1], offset: match.index + match[0].length - 1 - match[1].length });\n }\n return templates;\n}\n\ninterface OutputFormatUsage {\n staticValue?: string;\n expression?: string;\n start: number;\n end: number;\n}\n\nfunction findOutputFormatUsages(template: string): OutputFormatUsage[] {\n const usages: OutputFormatUsage[] = [];\n let nodes: TmplAstNode[];\n try {\n nodes = parseTemplate(template, '', { preserveWhitespaces: true }).nodes;\n } catch {\n return usages;\n }\n forEachDatepicker(nodes, (element) => {\n for (const attribute of element.attributes) {\n if (attribute.name === 'dateOutputFormat' && attribute.valueSpan) {\n usages.push({ staticValue: attribute.value, start: attribute.valueSpan.start.offset, end: attribute.valueSpan.end.offset });\n }\n }\n for (const binding of element.inputs) {\n if (binding.name === 'dateOutputFormat') {\n usages.push({ expression: binding.valueSpan?.toString() ?? binding.name, start: binding.sourceSpan.start.offset, end: binding.sourceSpan.end.offset });\n }\n }\n });\n return usages;\n}\n\n// Elements keep their children in `children`; control-flow blocks nest them under branches, cases,\n// the @for empty block and the @defer sub-blocks.\nconst NESTED_NODE_KEYS = ['children', 'branches', 'cases', 'empty', 'placeholder', 'loading', 'error'];\n\nfunction forEachDatepicker(nodes: TmplAstNode[], callback: (element: TmplAstElement) => void): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement && node.name === 'eui-datepicker') {\n callback(node);\n }\n for (const key of NESTED_NODE_KEYS) {\n const nested = (node as unknown as Record<string, unknown>)[key];\n if (Array.isArray(nested)) {\n forEachDatepicker(nested as TmplAstNode[], callback);\n } else if (nested && typeof nested === 'object') {\n forEachDatepicker([nested as TmplAstNode], callback);\n }\n }\n }\n}\n\nfunction applyEdits(content: string, edits: TextEdit[]): string {\n return [...edits]\n .sort((a, b) => b.start - a.start)\n .reduce((result, edit) => result.slice(0, edit.start) + edit.text + result.slice(edit.end), content);\n}\n\nfunction resolvePath(fromFile: string, relative: string): string {\n const segments = fromFile.split('/').slice(0, -1);\n for (const part of relative.split('/')) {\n if (part === '..') segments.pop();\n else if (part !== '.' && part !== '') segments.push(part);\n }\n return segments.join('/');\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n\nfunction templateUsesDatepicker(source: string): boolean {\n let nodes: TmplAstNode[];\n try {\n nodes = parseTemplate(source, '', { preserveWhitespaces: true }).nodes;\n } catch {\n return source.includes('eui-datepicker');\n }\n let found = false;\n forEachDatepicker(nodes, () => (found = true));\n return found;\n}\n",
|
|
4242
4310
|
"displayName": "Schema",
|
|
4243
4311
|
"properties": [
|
|
4244
4312
|
{
|
|
@@ -5139,6 +5207,62 @@
|
|
|
5139
5207
|
"outgoing": []
|
|
5140
5208
|
}
|
|
5141
5209
|
},
|
|
5210
|
+
{
|
|
5211
|
+
"name": "TemplateSource",
|
|
5212
|
+
"id": "interface-TemplateSource-da08bdace85a2dca2f7e90dbdb98783e54f7a13b47f4e66bbfd2be49f70b50b67764b116079617816b931ab4427b05cf719bd5db829d5f2cf51e337a47494d77",
|
|
5213
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
5214
|
+
"deprecated": false,
|
|
5215
|
+
"deprecationMessage": "",
|
|
5216
|
+
"type": "interface",
|
|
5217
|
+
"sourceCode": "import { parseTemplate, TmplAstElement, TmplAstNode } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ntype AdapterKind = 'moment' | 'luxon' | 'native';\n\ninterface TextEdit {\n start: number;\n end: number;\n text: string;\n}\n\nconst MOMENT_PRESETS = ['DEFAULT_FORMATS', 'LETTER_FORMAT', 'YEAR_FORMAT', 'MONTH_YEAR_FORMAT'];\n\nconst ADAPTER_PATTERNS: Record<AdapterKind, RegExp> = {\n moment: /\\bprovideMomentDateAdapter\\s*\\(|\\bMomentDateAdapter\\b|\\bMatMomentDateModule\\b/,\n luxon: /\\bprovideLuxonDateAdapter\\s*\\(|\\bLuxonDateAdapter\\b|\\bMatLuxonDateModule\\b/,\n native: /\\bprovideNativeDateAdapter\\s*\\(|\\bNativeDateAdapter\\b|\\bMatNativeDateModule\\b|\\bNativeDateModule\\b/,\n};\n\nconst APP_ROOT_FILE = /(^|\\/)(app\\.config|app\\.module|main)\\.ts$/;\n\n// Moment tokens that have an identical-meaning Luxon token. Anything else is left for manual review.\nconst MOMENT_TO_LUXON_TOKENS: Record<string, string> = {\n YYYY: 'yyyy', YY: 'yy',\n MMMM: 'MMMM', MMM: 'MMM', MM: 'MM', M: 'M',\n DD: 'dd', D: 'd',\n HH: 'HH', H: 'H', hh: 'hh', h: 'h',\n mm: 'mm', m: 'm', ss: 'ss', s: 's', SSS: 'SSS',\n A: 'a',\n};\n\n/**\n * Migrates eui-datepicker usages to the moment-free datepicker:\n * - moment locales are no longer bundled (report only);\n * - with a Luxon adapter, moment-token presets are replaced by their `LUXON_*` equivalents and static\n * `dateOutputFormat` values are converted to Luxon tokens;\n * - with the native adapter, `dateOutputFormat` is no longer supported (report only).\n *\n * The adapter is detected from the component file, falling back to the one provided in\n * app.config.ts / app.module.ts / main.ts.\n */\nexport function migrateEuiDatepicker(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n const files: string[] = [];\n visitDir(tree.getDir(scanPath || '/'), (path) => files.push(path));\n\n reportMomentLocales(tree, context, files);\n\n const appAdapter = detectAppAdapter(tree, files);\n let editedFiles = 0;\n let manualActions = 0;\n\n for (const path of files.filter((file) => file.endsWith('.ts'))) {\n const source = tree.read(path)?.toString('utf-8');\n if (!source) continue;\n\n const kinds = adapterKinds(source);\n // A file referencing several adapters is ambiguous; it is not migrated automatically.\n const adapter = kinds.length === 0 ? appAdapter : kinds.length === 1 ? kinds[0] : undefined;\n if (adapter !== 'luxon' && adapter !== 'native') continue;\n\n const fileEdits = new Map<string, TextEdit[]>();\n const addEdits = (file: string, edits: TextEdit[]): void => {\n if (edits.length) fileEdits.set(file, [...(fileEdits.get(file) ?? []), ...edits]);\n };\n\n if (adapter === 'luxon') {\n addEdits(path, luxonPresetEdits(source));\n }\n\n for (const template of componentTemplates(tree, path, source)) {\n for (const usage of findOutputFormatUsages(template.content)) {\n if (adapter === 'native') {\n manualActions++;\n context.logger.warn(\n ` Manual action needed: ${template.file} uses dateOutputFormat with NativeDateAdapter, which is no longer supported. `\n + 'Keep the Date value and map it to a string in your code (e.g. with Intl.DateTimeFormat), or switch to a moment/Luxon adapter.',\n );\n continue;\n }\n if (usage.staticValue !== undefined && isLikelyLuxonFormat(usage.staticValue)) continue;\n const converted = usage.staticValue !== undefined ? momentFormatToLuxon(usage.staticValue) : null;\n if (converted === null) {\n manualActions++;\n context.logger.warn(\n ` Manual action needed: ${template.file} uses dateOutputFormat \"${usage.staticValue ?? usage.expression}\" with LuxonDateAdapter. `\n + 'dateOutputFormat is now formatted by the adapter: make sure it uses Luxon tokens (e.g. yyyy-MM-dd).',\n );\n } else if (converted !== usage.staticValue) {\n addEdits(template.file, [{ start: template.offset + usage.start, end: template.offset + usage.end, text: converted }]);\n }\n }\n }\n\n for (const [file, edits] of fileEdits) {\n editedFiles++;\n if (options.dryRun) {\n logDryRun(context, `Would migrate eui-datepicker Luxon formats in ${file}`);\n } else {\n tree.overwrite(file, applyEdits(tree.read(file)!.toString('utf-8'), edits));\n context.logger.info(`Migrated eui-datepicker Luxon formats in ${file}`);\n }\n }\n }\n\n context.logger.info(`eui-datepicker adapter migration: ${editedFiles} file(s) updated, ${manualActions} manual action(s) reported.`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction reportMomentLocales(tree: Tree, context: SchematicContext, files: string[]): void {\n const matches = files.filter((path) => {\n const content = tree.read(path)?.toString('utf-8') ?? '';\n if (!content.includes('eui-datepicker')) return false;\n return path.endsWith('.html') ? templateUsesDatepicker(content) : inlineTemplates(content).some((t) => templateUsesDatepicker(t.content));\n });\n\n if (matches.length === 0) {\n context.logger.info('No eui-datepicker usage found; no moment-locale action required.');\n return;\n }\n\n context.logger.warn(\n 'Breaking change: eui-datepicker no longer bundles moment locale data. '\n + 'Import the moment locales your app uses (e.g. `import \\'moment/locale/fr\\';`) '\n + 'in the module/bootstrap where the datepicker is used; otherwise dates fall back '\n + 'to the active moment locale and may format incorrectly.',\n );\n for (const path of matches) {\n context.logger.warn(` Manual action needed: ${path} uses eui-datepicker — ensure the required moment locale(s) are imported.`);\n }\n context.logger.info(`eui-datepicker moment-locale check: ${matches.length} file(s) use eui-datepicker.`);\n}\n\nfunction adapterKinds(source: string): AdapterKind[] {\n return (Object.keys(ADAPTER_PATTERNS) as AdapterKind[]).filter((kind) => ADAPTER_PATTERNS[kind].test(source));\n}\n\nfunction detectAppAdapter(tree: Tree, files: string[]): AdapterKind | undefined {\n const kinds = new Set<AdapterKind>();\n for (const path of files.filter((file) => APP_ROOT_FILE.test(file))) {\n adapterKinds(tree.read(path)?.toString('utf-8') ?? '').forEach((kind) => kinds.add(kind));\n }\n return kinds.size === 1 ? [...kinds][0] : undefined;\n}\n\n// Moment date formats practically always contain Y or D tokens, which Luxon does not use, so a\n// format without them is treated as already migrated (keeps the schematic idempotent).\nfunction isLikelyLuxonFormat(format: string): boolean {\n return !/[YD]/.test(format.replace(/\\[[^\\]]*\\]|'[^']*'/g, ''));\n}\n\n/** Converts a moment format to Luxon, or returns null when it contains tokens without a safe equivalent. */\nexport function momentFormatToLuxon(format: string): string | null {\n let result = '';\n let i = 0;\n while (i < format.length) {\n const char = format[i];\n if (char === '[') {\n const close = format.indexOf(']', i);\n const literal = close === -1 ? null : format.slice(i + 1, close);\n if (literal === null || literal.includes('\\'')) return null;\n result += `'${literal}'`;\n i = close + 1;\n } else if (/[A-Za-z]/.test(char)) {\n let end = i;\n while (format[end] === char) end++;\n const luxonToken = MOMENT_TO_LUXON_TOKENS[format.slice(i, end)];\n if (luxonToken === undefined) return null;\n result += luxonToken;\n i = end;\n } else if (char === '\\'') {\n return null;\n } else {\n result += char;\n i++;\n }\n }\n return result;\n}\n\nfunction luxonPresetEdits(source: string): TextEdit[] {\n const importRegex = /import\\s*\\{([^}]*)\\}\\s*from\\s*['\"]@eui\\/components\\/eui-datepicker['\"]/g;\n const edits: TextEdit[] = [];\n const renamedLocals = new Set<string>();\n let match: RegExpExecArray | null;\n\n while ((match = importRegex.exec(source)) !== null) {\n const clauseStart = match.index + match[0].indexOf('{') + 1;\n const specifierRegex = /\\b([A-Z_]+)\\b(\\s+as\\s+\\w+)?/g;\n let specifier: RegExpExecArray | null;\n while ((specifier = specifierRegex.exec(match[1])) !== null) {\n const [, name, alias] = specifier;\n if (!MOMENT_PRESETS.includes(name)) continue;\n const start = clauseStart + specifier.index;\n edits.push({ start, end: start + name.length, text: `LUXON_${name}` });\n if (!alias) renamedLocals.add(name);\n }\n }\n\n for (const name of renamedLocals) {\n const usageRegex = new RegExp(`(?<![\\\\w.$])${name}(?![\\\\w$])`, 'g');\n let usage: RegExpExecArray | null;\n while ((usage = usageRegex.exec(source)) !== null) {\n const start = usage.index;\n if (!edits.some((edit) => edit.start === start)) {\n edits.push({ start, end: start + name.length, text: `LUXON_${name}` });\n }\n }\n }\n return edits;\n}\n\ninterface TemplateSource {\n file: string;\n content: string;\n offset: number;\n}\n\nfunction componentTemplates(tree: Tree, path: string, source: string): TemplateSource[] {\n const templates: TemplateSource[] = inlineTemplates(source).map((t) => ({ file: path, ...t }));\n const templateUrl = /templateUrl\\s*:\\s*['\"]([^'\"]+)['\"]/.exec(source)?.[1];\n if (templateUrl) {\n const file = resolvePath(path, templateUrl);\n const content = tree.read(file)?.toString('utf-8');\n if (content !== undefined) templates.push({ file, content, offset: 0 });\n }\n return templates.filter((t) => t.content.includes('eui-datepicker'));\n}\n\nfunction inlineTemplates(source: string): { content: string; offset: number }[] {\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n const templates: { content: string; offset: number }[] = [];\n let match: RegExpExecArray | null;\n while ((match = templateRegex.exec(source)) !== null) {\n templates.push({ content: match[1], offset: match.index + match[0].length - 1 - match[1].length });\n }\n return templates;\n}\n\ninterface OutputFormatUsage {\n staticValue?: string;\n expression?: string;\n start: number;\n end: number;\n}\n\nfunction findOutputFormatUsages(template: string): OutputFormatUsage[] {\n const usages: OutputFormatUsage[] = [];\n let nodes: TmplAstNode[];\n try {\n nodes = parseTemplate(template, '', { preserveWhitespaces: true }).nodes;\n } catch {\n return usages;\n }\n forEachDatepicker(nodes, (element) => {\n for (const attribute of element.attributes) {\n if (attribute.name === 'dateOutputFormat' && attribute.valueSpan) {\n usages.push({ staticValue: attribute.value, start: attribute.valueSpan.start.offset, end: attribute.valueSpan.end.offset });\n }\n }\n for (const binding of element.inputs) {\n if (binding.name === 'dateOutputFormat') {\n usages.push({ expression: binding.valueSpan?.toString() ?? binding.name, start: binding.sourceSpan.start.offset, end: binding.sourceSpan.end.offset });\n }\n }\n });\n return usages;\n}\n\n// Elements keep their children in `children`; control-flow blocks nest them under branches, cases,\n// the @for empty block and the @defer sub-blocks.\nconst NESTED_NODE_KEYS = ['children', 'branches', 'cases', 'empty', 'placeholder', 'loading', 'error'];\n\nfunction forEachDatepicker(nodes: TmplAstNode[], callback: (element: TmplAstElement) => void): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement && node.name === 'eui-datepicker') {\n callback(node);\n }\n for (const key of NESTED_NODE_KEYS) {\n const nested = (node as unknown as Record<string, unknown>)[key];\n if (Array.isArray(nested)) {\n forEachDatepicker(nested as TmplAstNode[], callback);\n } else if (nested && typeof nested === 'object') {\n forEachDatepicker([nested as TmplAstNode], callback);\n }\n }\n }\n}\n\nfunction applyEdits(content: string, edits: TextEdit[]): string {\n return [...edits]\n .sort((a, b) => b.start - a.start)\n .reduce((result, edit) => result.slice(0, edit.start) + edit.text + result.slice(edit.end), content);\n}\n\nfunction resolvePath(fromFile: string, relative: string): string {\n const segments = fromFile.split('/').slice(0, -1);\n for (const part of relative.split('/')) {\n if (part === '..') segments.pop();\n else if (part !== '.' && part !== '') segments.push(part);\n }\n return segments.join('/');\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n\nfunction templateUsesDatepicker(source: string): boolean {\n let nodes: TmplAstNode[];\n try {\n nodes = parseTemplate(source, '', { preserveWhitespaces: true }).nodes;\n } catch {\n return source.includes('eui-datepicker');\n }\n let found = false;\n forEachDatepicker(nodes, () => (found = true));\n return found;\n}\n",
|
|
5218
|
+
"displayName": "TemplateSource",
|
|
5219
|
+
"properties": [
|
|
5220
|
+
{
|
|
5221
|
+
"name": "content",
|
|
5222
|
+
"coverageIgnore": false,
|
|
5223
|
+
"deprecated": false,
|
|
5224
|
+
"deprecationMessage": "",
|
|
5225
|
+
"type": "string",
|
|
5226
|
+
"indexKey": "",
|
|
5227
|
+
"optional": false,
|
|
5228
|
+
"description": "",
|
|
5229
|
+
"line": 226,
|
|
5230
|
+
"rawdescription": "\n"
|
|
5231
|
+
},
|
|
5232
|
+
{
|
|
5233
|
+
"name": "file",
|
|
5234
|
+
"coverageIgnore": false,
|
|
5235
|
+
"deprecated": false,
|
|
5236
|
+
"deprecationMessage": "",
|
|
5237
|
+
"type": "string",
|
|
5238
|
+
"indexKey": "",
|
|
5239
|
+
"optional": false,
|
|
5240
|
+
"description": "",
|
|
5241
|
+
"line": 225,
|
|
5242
|
+
"rawdescription": "\n"
|
|
5243
|
+
},
|
|
5244
|
+
{
|
|
5245
|
+
"name": "offset",
|
|
5246
|
+
"coverageIgnore": false,
|
|
5247
|
+
"deprecated": false,
|
|
5248
|
+
"deprecationMessage": "",
|
|
5249
|
+
"type": "number",
|
|
5250
|
+
"indexKey": "",
|
|
5251
|
+
"optional": false,
|
|
5252
|
+
"description": "",
|
|
5253
|
+
"line": 227,
|
|
5254
|
+
"rawdescription": "\n"
|
|
5255
|
+
}
|
|
5256
|
+
],
|
|
5257
|
+
"indexSignatures": [],
|
|
5258
|
+
"kind": 172,
|
|
5259
|
+
"methods": [],
|
|
5260
|
+
"extends": [],
|
|
5261
|
+
"relationships": {
|
|
5262
|
+
"incoming": [],
|
|
5263
|
+
"outgoing": []
|
|
5264
|
+
}
|
|
5265
|
+
},
|
|
5142
5266
|
{
|
|
5143
5267
|
"name": "TextChange",
|
|
5144
5268
|
"id": "interface-TextChange-760dec88d3f709d5b38226e55f7cbfb1e5fabcea6c004fd46e611be1dd563b8b247e9e6c77667e5582fe7b443374ba2c4facd2b2db2985edb46c9a4a37a8a876",
|
|
@@ -5195,6 +5319,62 @@
|
|
|
5195
5319
|
"outgoing": []
|
|
5196
5320
|
}
|
|
5197
5321
|
},
|
|
5322
|
+
{
|
|
5323
|
+
"name": "TextEdit",
|
|
5324
|
+
"id": "interface-TextEdit-da08bdace85a2dca2f7e90dbdb98783e54f7a13b47f4e66bbfd2be49f70b50b67764b116079617816b931ab4427b05cf719bd5db829d5f2cf51e337a47494d77",
|
|
5325
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
5326
|
+
"deprecated": false,
|
|
5327
|
+
"deprecationMessage": "",
|
|
5328
|
+
"type": "interface",
|
|
5329
|
+
"sourceCode": "import { parseTemplate, TmplAstElement, TmplAstNode } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ntype AdapterKind = 'moment' | 'luxon' | 'native';\n\ninterface TextEdit {\n start: number;\n end: number;\n text: string;\n}\n\nconst MOMENT_PRESETS = ['DEFAULT_FORMATS', 'LETTER_FORMAT', 'YEAR_FORMAT', 'MONTH_YEAR_FORMAT'];\n\nconst ADAPTER_PATTERNS: Record<AdapterKind, RegExp> = {\n moment: /\\bprovideMomentDateAdapter\\s*\\(|\\bMomentDateAdapter\\b|\\bMatMomentDateModule\\b/,\n luxon: /\\bprovideLuxonDateAdapter\\s*\\(|\\bLuxonDateAdapter\\b|\\bMatLuxonDateModule\\b/,\n native: /\\bprovideNativeDateAdapter\\s*\\(|\\bNativeDateAdapter\\b|\\bMatNativeDateModule\\b|\\bNativeDateModule\\b/,\n};\n\nconst APP_ROOT_FILE = /(^|\\/)(app\\.config|app\\.module|main)\\.ts$/;\n\n// Moment tokens that have an identical-meaning Luxon token. Anything else is left for manual review.\nconst MOMENT_TO_LUXON_TOKENS: Record<string, string> = {\n YYYY: 'yyyy', YY: 'yy',\n MMMM: 'MMMM', MMM: 'MMM', MM: 'MM', M: 'M',\n DD: 'dd', D: 'd',\n HH: 'HH', H: 'H', hh: 'hh', h: 'h',\n mm: 'mm', m: 'm', ss: 'ss', s: 's', SSS: 'SSS',\n A: 'a',\n};\n\n/**\n * Migrates eui-datepicker usages to the moment-free datepicker:\n * - moment locales are no longer bundled (report only);\n * - with a Luxon adapter, moment-token presets are replaced by their `LUXON_*` equivalents and static\n * `dateOutputFormat` values are converted to Luxon tokens;\n * - with the native adapter, `dateOutputFormat` is no longer supported (report only).\n *\n * The adapter is detected from the component file, falling back to the one provided in\n * app.config.ts / app.module.ts / main.ts.\n */\nexport function migrateEuiDatepicker(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n const files: string[] = [];\n visitDir(tree.getDir(scanPath || '/'), (path) => files.push(path));\n\n reportMomentLocales(tree, context, files);\n\n const appAdapter = detectAppAdapter(tree, files);\n let editedFiles = 0;\n let manualActions = 0;\n\n for (const path of files.filter((file) => file.endsWith('.ts'))) {\n const source = tree.read(path)?.toString('utf-8');\n if (!source) continue;\n\n const kinds = adapterKinds(source);\n // A file referencing several adapters is ambiguous; it is not migrated automatically.\n const adapter = kinds.length === 0 ? appAdapter : kinds.length === 1 ? kinds[0] : undefined;\n if (adapter !== 'luxon' && adapter !== 'native') continue;\n\n const fileEdits = new Map<string, TextEdit[]>();\n const addEdits = (file: string, edits: TextEdit[]): void => {\n if (edits.length) fileEdits.set(file, [...(fileEdits.get(file) ?? []), ...edits]);\n };\n\n if (adapter === 'luxon') {\n addEdits(path, luxonPresetEdits(source));\n }\n\n for (const template of componentTemplates(tree, path, source)) {\n for (const usage of findOutputFormatUsages(template.content)) {\n if (adapter === 'native') {\n manualActions++;\n context.logger.warn(\n ` Manual action needed: ${template.file} uses dateOutputFormat with NativeDateAdapter, which is no longer supported. `\n + 'Keep the Date value and map it to a string in your code (e.g. with Intl.DateTimeFormat), or switch to a moment/Luxon adapter.',\n );\n continue;\n }\n if (usage.staticValue !== undefined && isLikelyLuxonFormat(usage.staticValue)) continue;\n const converted = usage.staticValue !== undefined ? momentFormatToLuxon(usage.staticValue) : null;\n if (converted === null) {\n manualActions++;\n context.logger.warn(\n ` Manual action needed: ${template.file} uses dateOutputFormat \"${usage.staticValue ?? usage.expression}\" with LuxonDateAdapter. `\n + 'dateOutputFormat is now formatted by the adapter: make sure it uses Luxon tokens (e.g. yyyy-MM-dd).',\n );\n } else if (converted !== usage.staticValue) {\n addEdits(template.file, [{ start: template.offset + usage.start, end: template.offset + usage.end, text: converted }]);\n }\n }\n }\n\n for (const [file, edits] of fileEdits) {\n editedFiles++;\n if (options.dryRun) {\n logDryRun(context, `Would migrate eui-datepicker Luxon formats in ${file}`);\n } else {\n tree.overwrite(file, applyEdits(tree.read(file)!.toString('utf-8'), edits));\n context.logger.info(`Migrated eui-datepicker Luxon formats in ${file}`);\n }\n }\n }\n\n context.logger.info(`eui-datepicker adapter migration: ${editedFiles} file(s) updated, ${manualActions} manual action(s) reported.`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction reportMomentLocales(tree: Tree, context: SchematicContext, files: string[]): void {\n const matches = files.filter((path) => {\n const content = tree.read(path)?.toString('utf-8') ?? '';\n if (!content.includes('eui-datepicker')) return false;\n return path.endsWith('.html') ? templateUsesDatepicker(content) : inlineTemplates(content).some((t) => templateUsesDatepicker(t.content));\n });\n\n if (matches.length === 0) {\n context.logger.info('No eui-datepicker usage found; no moment-locale action required.');\n return;\n }\n\n context.logger.warn(\n 'Breaking change: eui-datepicker no longer bundles moment locale data. '\n + 'Import the moment locales your app uses (e.g. `import \\'moment/locale/fr\\';`) '\n + 'in the module/bootstrap where the datepicker is used; otherwise dates fall back '\n + 'to the active moment locale and may format incorrectly.',\n );\n for (const path of matches) {\n context.logger.warn(` Manual action needed: ${path} uses eui-datepicker — ensure the required moment locale(s) are imported.`);\n }\n context.logger.info(`eui-datepicker moment-locale check: ${matches.length} file(s) use eui-datepicker.`);\n}\n\nfunction adapterKinds(source: string): AdapterKind[] {\n return (Object.keys(ADAPTER_PATTERNS) as AdapterKind[]).filter((kind) => ADAPTER_PATTERNS[kind].test(source));\n}\n\nfunction detectAppAdapter(tree: Tree, files: string[]): AdapterKind | undefined {\n const kinds = new Set<AdapterKind>();\n for (const path of files.filter((file) => APP_ROOT_FILE.test(file))) {\n adapterKinds(tree.read(path)?.toString('utf-8') ?? '').forEach((kind) => kinds.add(kind));\n }\n return kinds.size === 1 ? [...kinds][0] : undefined;\n}\n\n// Moment date formats practically always contain Y or D tokens, which Luxon does not use, so a\n// format without them is treated as already migrated (keeps the schematic idempotent).\nfunction isLikelyLuxonFormat(format: string): boolean {\n return !/[YD]/.test(format.replace(/\\[[^\\]]*\\]|'[^']*'/g, ''));\n}\n\n/** Converts a moment format to Luxon, or returns null when it contains tokens without a safe equivalent. */\nexport function momentFormatToLuxon(format: string): string | null {\n let result = '';\n let i = 0;\n while (i < format.length) {\n const char = format[i];\n if (char === '[') {\n const close = format.indexOf(']', i);\n const literal = close === -1 ? null : format.slice(i + 1, close);\n if (literal === null || literal.includes('\\'')) return null;\n result += `'${literal}'`;\n i = close + 1;\n } else if (/[A-Za-z]/.test(char)) {\n let end = i;\n while (format[end] === char) end++;\n const luxonToken = MOMENT_TO_LUXON_TOKENS[format.slice(i, end)];\n if (luxonToken === undefined) return null;\n result += luxonToken;\n i = end;\n } else if (char === '\\'') {\n return null;\n } else {\n result += char;\n i++;\n }\n }\n return result;\n}\n\nfunction luxonPresetEdits(source: string): TextEdit[] {\n const importRegex = /import\\s*\\{([^}]*)\\}\\s*from\\s*['\"]@eui\\/components\\/eui-datepicker['\"]/g;\n const edits: TextEdit[] = [];\n const renamedLocals = new Set<string>();\n let match: RegExpExecArray | null;\n\n while ((match = importRegex.exec(source)) !== null) {\n const clauseStart = match.index + match[0].indexOf('{') + 1;\n const specifierRegex = /\\b([A-Z_]+)\\b(\\s+as\\s+\\w+)?/g;\n let specifier: RegExpExecArray | null;\n while ((specifier = specifierRegex.exec(match[1])) !== null) {\n const [, name, alias] = specifier;\n if (!MOMENT_PRESETS.includes(name)) continue;\n const start = clauseStart + specifier.index;\n edits.push({ start, end: start + name.length, text: `LUXON_${name}` });\n if (!alias) renamedLocals.add(name);\n }\n }\n\n for (const name of renamedLocals) {\n const usageRegex = new RegExp(`(?<![\\\\w.$])${name}(?![\\\\w$])`, 'g');\n let usage: RegExpExecArray | null;\n while ((usage = usageRegex.exec(source)) !== null) {\n const start = usage.index;\n if (!edits.some((edit) => edit.start === start)) {\n edits.push({ start, end: start + name.length, text: `LUXON_${name}` });\n }\n }\n }\n return edits;\n}\n\ninterface TemplateSource {\n file: string;\n content: string;\n offset: number;\n}\n\nfunction componentTemplates(tree: Tree, path: string, source: string): TemplateSource[] {\n const templates: TemplateSource[] = inlineTemplates(source).map((t) => ({ file: path, ...t }));\n const templateUrl = /templateUrl\\s*:\\s*['\"]([^'\"]+)['\"]/.exec(source)?.[1];\n if (templateUrl) {\n const file = resolvePath(path, templateUrl);\n const content = tree.read(file)?.toString('utf-8');\n if (content !== undefined) templates.push({ file, content, offset: 0 });\n }\n return templates.filter((t) => t.content.includes('eui-datepicker'));\n}\n\nfunction inlineTemplates(source: string): { content: string; offset: number }[] {\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n const templates: { content: string; offset: number }[] = [];\n let match: RegExpExecArray | null;\n while ((match = templateRegex.exec(source)) !== null) {\n templates.push({ content: match[1], offset: match.index + match[0].length - 1 - match[1].length });\n }\n return templates;\n}\n\ninterface OutputFormatUsage {\n staticValue?: string;\n expression?: string;\n start: number;\n end: number;\n}\n\nfunction findOutputFormatUsages(template: string): OutputFormatUsage[] {\n const usages: OutputFormatUsage[] = [];\n let nodes: TmplAstNode[];\n try {\n nodes = parseTemplate(template, '', { preserveWhitespaces: true }).nodes;\n } catch {\n return usages;\n }\n forEachDatepicker(nodes, (element) => {\n for (const attribute of element.attributes) {\n if (attribute.name === 'dateOutputFormat' && attribute.valueSpan) {\n usages.push({ staticValue: attribute.value, start: attribute.valueSpan.start.offset, end: attribute.valueSpan.end.offset });\n }\n }\n for (const binding of element.inputs) {\n if (binding.name === 'dateOutputFormat') {\n usages.push({ expression: binding.valueSpan?.toString() ?? binding.name, start: binding.sourceSpan.start.offset, end: binding.sourceSpan.end.offset });\n }\n }\n });\n return usages;\n}\n\n// Elements keep their children in `children`; control-flow blocks nest them under branches, cases,\n// the @for empty block and the @defer sub-blocks.\nconst NESTED_NODE_KEYS = ['children', 'branches', 'cases', 'empty', 'placeholder', 'loading', 'error'];\n\nfunction forEachDatepicker(nodes: TmplAstNode[], callback: (element: TmplAstElement) => void): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement && node.name === 'eui-datepicker') {\n callback(node);\n }\n for (const key of NESTED_NODE_KEYS) {\n const nested = (node as unknown as Record<string, unknown>)[key];\n if (Array.isArray(nested)) {\n forEachDatepicker(nested as TmplAstNode[], callback);\n } else if (nested && typeof nested === 'object') {\n forEachDatepicker([nested as TmplAstNode], callback);\n }\n }\n }\n}\n\nfunction applyEdits(content: string, edits: TextEdit[]): string {\n return [...edits]\n .sort((a, b) => b.start - a.start)\n .reduce((result, edit) => result.slice(0, edit.start) + edit.text + result.slice(edit.end), content);\n}\n\nfunction resolvePath(fromFile: string, relative: string): string {\n const segments = fromFile.split('/').slice(0, -1);\n for (const part of relative.split('/')) {\n if (part === '..') segments.pop();\n else if (part !== '.' && part !== '') segments.push(part);\n }\n return segments.join('/');\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n\nfunction templateUsesDatepicker(source: string): boolean {\n let nodes: TmplAstNode[];\n try {\n nodes = parseTemplate(source, '', { preserveWhitespaces: true }).nodes;\n } catch {\n return source.includes('eui-datepicker');\n }\n let found = false;\n forEachDatepicker(nodes, () => (found = true));\n return found;\n}\n",
|
|
5330
|
+
"displayName": "TextEdit",
|
|
5331
|
+
"properties": [
|
|
5332
|
+
{
|
|
5333
|
+
"name": "end",
|
|
5334
|
+
"coverageIgnore": false,
|
|
5335
|
+
"deprecated": false,
|
|
5336
|
+
"deprecationMessage": "",
|
|
5337
|
+
"type": "number",
|
|
5338
|
+
"indexKey": "",
|
|
5339
|
+
"optional": false,
|
|
5340
|
+
"description": "",
|
|
5341
|
+
"line": 14,
|
|
5342
|
+
"rawdescription": "\n"
|
|
5343
|
+
},
|
|
5344
|
+
{
|
|
5345
|
+
"name": "start",
|
|
5346
|
+
"coverageIgnore": false,
|
|
5347
|
+
"deprecated": false,
|
|
5348
|
+
"deprecationMessage": "",
|
|
5349
|
+
"type": "number",
|
|
5350
|
+
"indexKey": "",
|
|
5351
|
+
"optional": false,
|
|
5352
|
+
"description": "",
|
|
5353
|
+
"line": 13,
|
|
5354
|
+
"rawdescription": "\n"
|
|
5355
|
+
},
|
|
5356
|
+
{
|
|
5357
|
+
"name": "text",
|
|
5358
|
+
"coverageIgnore": false,
|
|
5359
|
+
"deprecated": false,
|
|
5360
|
+
"deprecationMessage": "",
|
|
5361
|
+
"type": "string",
|
|
5362
|
+
"indexKey": "",
|
|
5363
|
+
"optional": false,
|
|
5364
|
+
"description": "",
|
|
5365
|
+
"line": 15,
|
|
5366
|
+
"rawdescription": "\n"
|
|
5367
|
+
}
|
|
5368
|
+
],
|
|
5369
|
+
"indexSignatures": [],
|
|
5370
|
+
"kind": 172,
|
|
5371
|
+
"methods": [],
|
|
5372
|
+
"extends": [],
|
|
5373
|
+
"relationships": {
|
|
5374
|
+
"incoming": [],
|
|
5375
|
+
"outgoing": []
|
|
5376
|
+
}
|
|
5377
|
+
},
|
|
5198
5378
|
{
|
|
5199
5379
|
"name": "ThemeState",
|
|
5200
5380
|
"id": "interface-ThemeState-c563d1697c782e8dc2eba892264920323fbb71e479fd3f1d1884d2c89bb6b72294378f9f94484a3b4bb85c848eb95c01fabf703c6e3f378e2ae85ec147c56b8a",
|
|
@@ -23955,6 +24135,17 @@
|
|
|
23955
24135
|
"type": "{ }",
|
|
23956
24136
|
"defaultValue": "{\n [CoreUserActionTypes.UPDATE_USER_DETAILS]: updateUserDetails,\n [CoreUserActionTypes.UPDATE_USER_PREFERENCES]: updateUserPreferences,\n [CoreUserActionTypes.UPDATE_USER_STATE]: updateUser,\n [CoreUserActionTypes.UPDATE_USER_RIGHTS]: updateUserRights,\n [CoreUserActionTypes.UPDATE_USER_DASHBOARD]: updateUserDashboard,\n}"
|
|
23957
24137
|
},
|
|
24138
|
+
{
|
|
24139
|
+
"name": "ADAPTER_PATTERNS",
|
|
24140
|
+
"ctype": "miscellaneous",
|
|
24141
|
+
"subtype": "variable",
|
|
24142
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
24143
|
+
"coverageIgnore": false,
|
|
24144
|
+
"deprecated": false,
|
|
24145
|
+
"deprecationMessage": "",
|
|
24146
|
+
"type": "Record<AdapterKind, RegExp>",
|
|
24147
|
+
"defaultValue": "{\n moment: /\\bprovideMomentDateAdapter\\s*\\(|\\bMomentDateAdapter\\b|\\bMatMomentDateModule\\b/,\n luxon: /\\bprovideLuxonDateAdapter\\s*\\(|\\bLuxonDateAdapter\\b|\\bMatLuxonDateModule\\b/,\n native: /\\bprovideNativeDateAdapter\\s*\\(|\\bNativeDateAdapter\\b|\\bMatNativeDateModule\\b|\\bNativeDateModule\\b/,\n}"
|
|
24148
|
+
},
|
|
23958
24149
|
{
|
|
23959
24150
|
"name": "addApiQueueItem",
|
|
23960
24151
|
"ctype": "miscellaneous",
|
|
@@ -23977,6 +24168,17 @@
|
|
|
23977
24168
|
"type": "unknown",
|
|
23978
24169
|
"defaultValue": "(state: CoreState, action: { moduleName: string; moduleConfig: Record<string, unknown> }): CoreState => ({\n ...state,\n app: {\n ...state.app,\n loadedConfigModules: {\n lastAddedModule: action.moduleName,\n modulesConfig: {\n ...state.app?.loadedConfigModules?.modulesConfig,\n [action.moduleName]: {\n ...action.moduleConfig,\n },\n },\n },\n },\n})"
|
|
23979
24170
|
},
|
|
24171
|
+
{
|
|
24172
|
+
"name": "APP_ROOT_FILE",
|
|
24173
|
+
"ctype": "miscellaneous",
|
|
24174
|
+
"subtype": "variable",
|
|
24175
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
24176
|
+
"coverageIgnore": false,
|
|
24177
|
+
"deprecated": false,
|
|
24178
|
+
"deprecationMessage": "",
|
|
24179
|
+
"type": "unknown",
|
|
24180
|
+
"defaultValue": "/(^|\\/)(app\\.config|app\\.module|main)\\.ts$/"
|
|
24181
|
+
},
|
|
23980
24182
|
{
|
|
23981
24183
|
"name": "ATTRIBUTE",
|
|
23982
24184
|
"ctype": "miscellaneous",
|
|
@@ -25202,6 +25404,28 @@
|
|
|
25202
25404
|
"type": "unknown",
|
|
25203
25405
|
"defaultValue": "new InjectionToken<string>('moduleName')"
|
|
25204
25406
|
},
|
|
25407
|
+
{
|
|
25408
|
+
"name": "MOMENT_PRESETS",
|
|
25409
|
+
"ctype": "miscellaneous",
|
|
25410
|
+
"subtype": "variable",
|
|
25411
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
25412
|
+
"coverageIgnore": false,
|
|
25413
|
+
"deprecated": false,
|
|
25414
|
+
"deprecationMessage": "",
|
|
25415
|
+
"type": "[]",
|
|
25416
|
+
"defaultValue": "['DEFAULT_FORMATS', 'LETTER_FORMAT', 'YEAR_FORMAT', 'MONTH_YEAR_FORMAT']"
|
|
25417
|
+
},
|
|
25418
|
+
{
|
|
25419
|
+
"name": "MOMENT_TO_LUXON_TOKENS",
|
|
25420
|
+
"ctype": "miscellaneous",
|
|
25421
|
+
"subtype": "variable",
|
|
25422
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
25423
|
+
"coverageIgnore": false,
|
|
25424
|
+
"deprecated": false,
|
|
25425
|
+
"deprecationMessage": "",
|
|
25426
|
+
"type": "Record<string, string>",
|
|
25427
|
+
"defaultValue": "{\n YYYY: 'yyyy', YY: 'yy',\n MMMM: 'MMMM', MMM: 'MMM', MM: 'MM', M: 'M',\n DD: 'dd', D: 'd',\n HH: 'HH', H: 'H', hh: 'hh', h: 'h',\n mm: 'mm', m: 'm', ss: 'ss', s: 's', SSS: 'SSS',\n A: 'a',\n}"
|
|
25428
|
+
},
|
|
25205
25429
|
{
|
|
25206
25430
|
"name": "monaco",
|
|
25207
25431
|
"ctype": "miscellaneous",
|
|
@@ -25223,6 +25447,17 @@
|
|
|
25223
25447
|
"type": "unknown",
|
|
25224
25448
|
"defaultValue": "/\\n{3,}/g"
|
|
25225
25449
|
},
|
|
25450
|
+
{
|
|
25451
|
+
"name": "NESTED_NODE_KEYS",
|
|
25452
|
+
"ctype": "miscellaneous",
|
|
25453
|
+
"subtype": "variable",
|
|
25454
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
25455
|
+
"coverageIgnore": false,
|
|
25456
|
+
"deprecated": false,
|
|
25457
|
+
"deprecationMessage": "",
|
|
25458
|
+
"type": "[]",
|
|
25459
|
+
"defaultValue": "['children', 'branches', 'cases', 'empty', 'placeholder', 'loading', 'error']"
|
|
25460
|
+
},
|
|
25226
25461
|
{
|
|
25227
25462
|
"name": "NEW_BODY",
|
|
25228
25463
|
"ctype": "miscellaneous",
|
|
@@ -26420,6 +26655,38 @@
|
|
|
26420
26655
|
}
|
|
26421
26656
|
],
|
|
26422
26657
|
"functions": [
|
|
26658
|
+
{
|
|
26659
|
+
"name": "adapterKinds",
|
|
26660
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
26661
|
+
"ctype": "miscellaneous",
|
|
26662
|
+
"subtype": "function",
|
|
26663
|
+
"coverageIgnore": false,
|
|
26664
|
+
"deprecated": false,
|
|
26665
|
+
"deprecationMessage": "",
|
|
26666
|
+
"rawdescription": "",
|
|
26667
|
+
"description": "",
|
|
26668
|
+
"displayName": "adapterKinds",
|
|
26669
|
+
"args": [
|
|
26670
|
+
{
|
|
26671
|
+
"name": "source",
|
|
26672
|
+
"type": "string",
|
|
26673
|
+
"deprecated": false,
|
|
26674
|
+
"deprecationMessage": ""
|
|
26675
|
+
}
|
|
26676
|
+
],
|
|
26677
|
+
"returnType": "AdapterKind[]",
|
|
26678
|
+
"jsdoctags": [
|
|
26679
|
+
{
|
|
26680
|
+
"name": "source",
|
|
26681
|
+
"type": "string",
|
|
26682
|
+
"deprecated": false,
|
|
26683
|
+
"deprecationMessage": "",
|
|
26684
|
+
"tagName": {
|
|
26685
|
+
"text": "param"
|
|
26686
|
+
}
|
|
26687
|
+
}
|
|
26688
|
+
]
|
|
26689
|
+
},
|
|
26423
26690
|
{
|
|
26424
26691
|
"name": "addEsImports",
|
|
26425
26692
|
"file": "packages/core/schematics/add-eui-imports/index.ts",
|
|
@@ -27495,6 +27762,51 @@
|
|
|
27495
27762
|
}
|
|
27496
27763
|
]
|
|
27497
27764
|
},
|
|
27765
|
+
{
|
|
27766
|
+
"name": "applyEdits",
|
|
27767
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
27768
|
+
"ctype": "miscellaneous",
|
|
27769
|
+
"subtype": "function",
|
|
27770
|
+
"coverageIgnore": false,
|
|
27771
|
+
"deprecated": false,
|
|
27772
|
+
"deprecationMessage": "",
|
|
27773
|
+
"rawdescription": "",
|
|
27774
|
+
"description": "",
|
|
27775
|
+
"displayName": "applyEdits",
|
|
27776
|
+
"args": [
|
|
27777
|
+
{
|
|
27778
|
+
"name": "content",
|
|
27779
|
+
"type": "string",
|
|
27780
|
+
"deprecated": false,
|
|
27781
|
+
"deprecationMessage": ""
|
|
27782
|
+
},
|
|
27783
|
+
{
|
|
27784
|
+
"name": "edits",
|
|
27785
|
+
"deprecated": false,
|
|
27786
|
+
"deprecationMessage": ""
|
|
27787
|
+
}
|
|
27788
|
+
],
|
|
27789
|
+
"returnType": "string",
|
|
27790
|
+
"jsdoctags": [
|
|
27791
|
+
{
|
|
27792
|
+
"name": "content",
|
|
27793
|
+
"type": "string",
|
|
27794
|
+
"deprecated": false,
|
|
27795
|
+
"deprecationMessage": "",
|
|
27796
|
+
"tagName": {
|
|
27797
|
+
"text": "param"
|
|
27798
|
+
}
|
|
27799
|
+
},
|
|
27800
|
+
{
|
|
27801
|
+
"name": "edits",
|
|
27802
|
+
"deprecated": false,
|
|
27803
|
+
"deprecationMessage": "",
|
|
27804
|
+
"tagName": {
|
|
27805
|
+
"text": "param"
|
|
27806
|
+
}
|
|
27807
|
+
}
|
|
27808
|
+
]
|
|
27809
|
+
},
|
|
27498
27810
|
{
|
|
27499
27811
|
"name": "applyEdits",
|
|
27500
27812
|
"file": "packages/core/schematics/migrate-eui-editor/index.ts",
|
|
@@ -30652,6 +30964,68 @@
|
|
|
30652
30964
|
}
|
|
30653
30965
|
]
|
|
30654
30966
|
},
|
|
30967
|
+
{
|
|
30968
|
+
"name": "componentTemplates",
|
|
30969
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
30970
|
+
"ctype": "miscellaneous",
|
|
30971
|
+
"subtype": "function",
|
|
30972
|
+
"coverageIgnore": false,
|
|
30973
|
+
"deprecated": false,
|
|
30974
|
+
"deprecationMessage": "",
|
|
30975
|
+
"rawdescription": "",
|
|
30976
|
+
"description": "",
|
|
30977
|
+
"displayName": "componentTemplates",
|
|
30978
|
+
"args": [
|
|
30979
|
+
{
|
|
30980
|
+
"name": "tree",
|
|
30981
|
+
"type": "Tree",
|
|
30982
|
+
"deprecated": false,
|
|
30983
|
+
"deprecationMessage": ""
|
|
30984
|
+
},
|
|
30985
|
+
{
|
|
30986
|
+
"name": "path",
|
|
30987
|
+
"type": "string",
|
|
30988
|
+
"deprecated": false,
|
|
30989
|
+
"deprecationMessage": ""
|
|
30990
|
+
},
|
|
30991
|
+
{
|
|
30992
|
+
"name": "source",
|
|
30993
|
+
"type": "string",
|
|
30994
|
+
"deprecated": false,
|
|
30995
|
+
"deprecationMessage": ""
|
|
30996
|
+
}
|
|
30997
|
+
],
|
|
30998
|
+
"returnType": "TemplateSource[]",
|
|
30999
|
+
"jsdoctags": [
|
|
31000
|
+
{
|
|
31001
|
+
"name": "tree",
|
|
31002
|
+
"type": "Tree",
|
|
31003
|
+
"deprecated": false,
|
|
31004
|
+
"deprecationMessage": "",
|
|
31005
|
+
"tagName": {
|
|
31006
|
+
"text": "param"
|
|
31007
|
+
}
|
|
31008
|
+
},
|
|
31009
|
+
{
|
|
31010
|
+
"name": "path",
|
|
31011
|
+
"type": "string",
|
|
31012
|
+
"deprecated": false,
|
|
31013
|
+
"deprecationMessage": "",
|
|
31014
|
+
"tagName": {
|
|
31015
|
+
"text": "param"
|
|
31016
|
+
}
|
|
31017
|
+
},
|
|
31018
|
+
{
|
|
31019
|
+
"name": "source",
|
|
31020
|
+
"type": "string",
|
|
31021
|
+
"deprecated": false,
|
|
31022
|
+
"deprecationMessage": "",
|
|
31023
|
+
"tagName": {
|
|
31024
|
+
"text": "param"
|
|
31025
|
+
}
|
|
31026
|
+
}
|
|
31027
|
+
]
|
|
31028
|
+
},
|
|
30655
31029
|
{
|
|
30656
31030
|
"name": "ConsoleHttpErrorCallbackFn",
|
|
30657
31031
|
"file": "packages/core/src/lib/services/errors/http-error-handler-callback-functions.ts",
|
|
@@ -31690,6 +32064,51 @@
|
|
|
31690
32064
|
}
|
|
31691
32065
|
]
|
|
31692
32066
|
},
|
|
32067
|
+
{
|
|
32068
|
+
"name": "detectAppAdapter",
|
|
32069
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
32070
|
+
"ctype": "miscellaneous",
|
|
32071
|
+
"subtype": "function",
|
|
32072
|
+
"coverageIgnore": false,
|
|
32073
|
+
"deprecated": false,
|
|
32074
|
+
"deprecationMessage": "",
|
|
32075
|
+
"rawdescription": "",
|
|
32076
|
+
"description": "",
|
|
32077
|
+
"displayName": "detectAppAdapter",
|
|
32078
|
+
"args": [
|
|
32079
|
+
{
|
|
32080
|
+
"name": "tree",
|
|
32081
|
+
"type": "Tree",
|
|
32082
|
+
"deprecated": false,
|
|
32083
|
+
"deprecationMessage": ""
|
|
32084
|
+
},
|
|
32085
|
+
{
|
|
32086
|
+
"name": "files",
|
|
32087
|
+
"deprecated": false,
|
|
32088
|
+
"deprecationMessage": ""
|
|
32089
|
+
}
|
|
32090
|
+
],
|
|
32091
|
+
"returnType": "AdapterKind | undefined",
|
|
32092
|
+
"jsdoctags": [
|
|
32093
|
+
{
|
|
32094
|
+
"name": "tree",
|
|
32095
|
+
"type": "Tree",
|
|
32096
|
+
"deprecated": false,
|
|
32097
|
+
"deprecationMessage": "",
|
|
32098
|
+
"tagName": {
|
|
32099
|
+
"text": "param"
|
|
32100
|
+
}
|
|
32101
|
+
},
|
|
32102
|
+
{
|
|
32103
|
+
"name": "files",
|
|
32104
|
+
"deprecated": false,
|
|
32105
|
+
"deprecationMessage": "",
|
|
32106
|
+
"tagName": {
|
|
32107
|
+
"text": "param"
|
|
32108
|
+
}
|
|
32109
|
+
}
|
|
32110
|
+
]
|
|
32111
|
+
},
|
|
31693
32112
|
{
|
|
31694
32113
|
"name": "detectEuiVersion",
|
|
31695
32114
|
"file": "packages/core/schematics/migrate/utils.ts",
|
|
@@ -32503,6 +32922,38 @@
|
|
|
32503
32922
|
}
|
|
32504
32923
|
]
|
|
32505
32924
|
},
|
|
32925
|
+
{
|
|
32926
|
+
"name": "findOutputFormatUsages",
|
|
32927
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
32928
|
+
"ctype": "miscellaneous",
|
|
32929
|
+
"subtype": "function",
|
|
32930
|
+
"coverageIgnore": false,
|
|
32931
|
+
"deprecated": false,
|
|
32932
|
+
"deprecationMessage": "",
|
|
32933
|
+
"rawdescription": "",
|
|
32934
|
+
"description": "",
|
|
32935
|
+
"displayName": "findOutputFormatUsages",
|
|
32936
|
+
"args": [
|
|
32937
|
+
{
|
|
32938
|
+
"name": "template",
|
|
32939
|
+
"type": "string",
|
|
32940
|
+
"deprecated": false,
|
|
32941
|
+
"deprecationMessage": ""
|
|
32942
|
+
}
|
|
32943
|
+
],
|
|
32944
|
+
"returnType": "OutputFormatUsage[]",
|
|
32945
|
+
"jsdoctags": [
|
|
32946
|
+
{
|
|
32947
|
+
"name": "template",
|
|
32948
|
+
"type": "string",
|
|
32949
|
+
"deprecated": false,
|
|
32950
|
+
"deprecationMessage": "",
|
|
32951
|
+
"tagName": {
|
|
32952
|
+
"text": "param"
|
|
32953
|
+
}
|
|
32954
|
+
}
|
|
32955
|
+
]
|
|
32956
|
+
},
|
|
32506
32957
|
{
|
|
32507
32958
|
"name": "findSelectorsInTemplate",
|
|
32508
32959
|
"file": "packages/core/schematics/migrate-to-standalone/index.ts",
|
|
@@ -32582,6 +33033,49 @@
|
|
|
32582
33033
|
}
|
|
32583
33034
|
]
|
|
32584
33035
|
},
|
|
33036
|
+
{
|
|
33037
|
+
"name": "forEachDatepicker",
|
|
33038
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
33039
|
+
"ctype": "miscellaneous",
|
|
33040
|
+
"subtype": "function",
|
|
33041
|
+
"coverageIgnore": false,
|
|
33042
|
+
"deprecated": false,
|
|
33043
|
+
"deprecationMessage": "",
|
|
33044
|
+
"rawdescription": "",
|
|
33045
|
+
"description": "",
|
|
33046
|
+
"displayName": "forEachDatepicker",
|
|
33047
|
+
"args": [
|
|
33048
|
+
{
|
|
33049
|
+
"name": "nodes",
|
|
33050
|
+
"deprecated": false,
|
|
33051
|
+
"deprecationMessage": ""
|
|
33052
|
+
},
|
|
33053
|
+
{
|
|
33054
|
+
"name": "callback",
|
|
33055
|
+
"deprecated": false,
|
|
33056
|
+
"deprecationMessage": ""
|
|
33057
|
+
}
|
|
33058
|
+
],
|
|
33059
|
+
"returnType": "void",
|
|
33060
|
+
"jsdoctags": [
|
|
33061
|
+
{
|
|
33062
|
+
"name": "nodes",
|
|
33063
|
+
"deprecated": false,
|
|
33064
|
+
"deprecationMessage": "",
|
|
33065
|
+
"tagName": {
|
|
33066
|
+
"text": "param"
|
|
33067
|
+
}
|
|
33068
|
+
},
|
|
33069
|
+
{
|
|
33070
|
+
"name": "callback",
|
|
33071
|
+
"deprecated": false,
|
|
33072
|
+
"deprecationMessage": "",
|
|
33073
|
+
"tagName": {
|
|
33074
|
+
"text": "param"
|
|
33075
|
+
}
|
|
33076
|
+
}
|
|
33077
|
+
]
|
|
33078
|
+
},
|
|
32585
33079
|
{
|
|
32586
33080
|
"name": "formatInnerLines",
|
|
32587
33081
|
"file": "packages/core/schematics/migrate-eui-tabs/index.ts",
|
|
@@ -34325,7 +34819,7 @@
|
|
|
34325
34819
|
]
|
|
34326
34820
|
},
|
|
34327
34821
|
{
|
|
34328
|
-
"name": "
|
|
34822
|
+
"name": "inlineTemplates",
|
|
34329
34823
|
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
34330
34824
|
"ctype": "miscellaneous",
|
|
34331
34825
|
"subtype": "function",
|
|
@@ -34334,7 +34828,7 @@
|
|
|
34334
34828
|
"deprecationMessage": "",
|
|
34335
34829
|
"rawdescription": "",
|
|
34336
34830
|
"description": "",
|
|
34337
|
-
"displayName": "
|
|
34831
|
+
"displayName": "inlineTemplates",
|
|
34338
34832
|
"args": [
|
|
34339
34833
|
{
|
|
34340
34834
|
"name": "source",
|
|
@@ -34343,7 +34837,7 @@
|
|
|
34343
34837
|
"deprecationMessage": ""
|
|
34344
34838
|
}
|
|
34345
34839
|
],
|
|
34346
|
-
"returnType": "
|
|
34840
|
+
"returnType": "literal type[]",
|
|
34347
34841
|
"jsdoctags": [
|
|
34348
34842
|
{
|
|
34349
34843
|
"name": "source",
|
|
@@ -35451,6 +35945,38 @@
|
|
|
35451
35945
|
}
|
|
35452
35946
|
]
|
|
35453
35947
|
},
|
|
35948
|
+
{
|
|
35949
|
+
"name": "isLikelyLuxonFormat",
|
|
35950
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
35951
|
+
"ctype": "miscellaneous",
|
|
35952
|
+
"subtype": "function",
|
|
35953
|
+
"coverageIgnore": false,
|
|
35954
|
+
"deprecated": false,
|
|
35955
|
+
"deprecationMessage": "",
|
|
35956
|
+
"rawdescription": "",
|
|
35957
|
+
"description": "",
|
|
35958
|
+
"displayName": "isLikelyLuxonFormat",
|
|
35959
|
+
"args": [
|
|
35960
|
+
{
|
|
35961
|
+
"name": "format",
|
|
35962
|
+
"type": "string",
|
|
35963
|
+
"deprecated": false,
|
|
35964
|
+
"deprecationMessage": ""
|
|
35965
|
+
}
|
|
35966
|
+
],
|
|
35967
|
+
"returnType": "boolean",
|
|
35968
|
+
"jsdoctags": [
|
|
35969
|
+
{
|
|
35970
|
+
"name": "format",
|
|
35971
|
+
"type": "string",
|
|
35972
|
+
"deprecated": false,
|
|
35973
|
+
"deprecationMessage": "",
|
|
35974
|
+
"tagName": {
|
|
35975
|
+
"text": "param"
|
|
35976
|
+
}
|
|
35977
|
+
}
|
|
35978
|
+
]
|
|
35979
|
+
},
|
|
35454
35980
|
{
|
|
35455
35981
|
"name": "isLogConfigDefined",
|
|
35456
35982
|
"file": "packages/core/src/lib/services/app/factories/log.ts",
|
|
@@ -36823,6 +37349,38 @@
|
|
|
36823
37349
|
}
|
|
36824
37350
|
]
|
|
36825
37351
|
},
|
|
37352
|
+
{
|
|
37353
|
+
"name": "luxonPresetEdits",
|
|
37354
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
37355
|
+
"ctype": "miscellaneous",
|
|
37356
|
+
"subtype": "function",
|
|
37357
|
+
"coverageIgnore": false,
|
|
37358
|
+
"deprecated": false,
|
|
37359
|
+
"deprecationMessage": "",
|
|
37360
|
+
"rawdescription": "",
|
|
37361
|
+
"description": "",
|
|
37362
|
+
"displayName": "luxonPresetEdits",
|
|
37363
|
+
"args": [
|
|
37364
|
+
{
|
|
37365
|
+
"name": "source",
|
|
37366
|
+
"type": "string",
|
|
37367
|
+
"deprecated": false,
|
|
37368
|
+
"deprecationMessage": ""
|
|
37369
|
+
}
|
|
37370
|
+
],
|
|
37371
|
+
"returnType": "TextEdit[]",
|
|
37372
|
+
"jsdoctags": [
|
|
37373
|
+
{
|
|
37374
|
+
"name": "source",
|
|
37375
|
+
"type": "string",
|
|
37376
|
+
"deprecated": false,
|
|
37377
|
+
"deprecationMessage": "",
|
|
37378
|
+
"tagName": {
|
|
37379
|
+
"text": "param"
|
|
37380
|
+
}
|
|
37381
|
+
}
|
|
37382
|
+
]
|
|
37383
|
+
},
|
|
36826
37384
|
{
|
|
36827
37385
|
"name": "mapIconSuffix",
|
|
36828
37386
|
"file": "packages/core/schematics/icon-migrate/index.ts",
|
|
@@ -37862,8 +38420,8 @@
|
|
|
37862
38420
|
"coverageIgnore": false,
|
|
37863
38421
|
"deprecated": false,
|
|
37864
38422
|
"deprecationMessage": "",
|
|
37865
|
-
"rawdescription": "
|
|
37866
|
-
"description": "<p>
|
|
38423
|
+
"rawdescription": "Migrates eui-datepicker usages to the moment-free datepicker:\n- moment locales are no longer bundled (report only);\n- with a Luxon adapter, moment-token presets are replaced by their `LUXON_*` equivalents and static\n `dateOutputFormat` values are converted to Luxon tokens;\n- with the native adapter, `dateOutputFormat` is no longer supported (report only).\n\nThe adapter is detected from the component file, falling back to the one provided in\napp.config.ts / app.module.ts / main.ts.",
|
|
38424
|
+
"description": "<p>Migrates eui-datepicker usages to the moment-free datepicker:</p>\n<ul>\n<li>moment locales are no longer bundled (report only);</li>\n<li>with a Luxon adapter, moment-token presets are replaced by their <code>LUXON_*</code> equivalents and static\n<code>dateOutputFormat</code> values are converted to Luxon tokens;</li>\n<li>with the native adapter, <code>dateOutputFormat</code> is no longer supported (report only).</li>\n</ul>\n<p>The adapter is detected from the component file, falling back to the one provided in\napp.config.ts / app.module.ts / main.ts.</p>\n",
|
|
37867
38425
|
"displayName": "migrateEuiDatepicker",
|
|
37868
38426
|
"args": [
|
|
37869
38427
|
{
|
|
@@ -40943,27 +41501,29 @@
|
|
|
40943
41501
|
]
|
|
40944
41502
|
},
|
|
40945
41503
|
{
|
|
40946
|
-
"name": "
|
|
41504
|
+
"name": "momentFormatToLuxon",
|
|
40947
41505
|
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
40948
41506
|
"ctype": "miscellaneous",
|
|
40949
41507
|
"subtype": "function",
|
|
40950
41508
|
"coverageIgnore": false,
|
|
40951
41509
|
"deprecated": false,
|
|
40952
41510
|
"deprecationMessage": "",
|
|
40953
|
-
"rawdescription": "",
|
|
40954
|
-
"description": "",
|
|
40955
|
-
"displayName": "
|
|
41511
|
+
"rawdescription": "Converts a moment format to Luxon, or returns null when it contains tokens without a safe equivalent.",
|
|
41512
|
+
"description": "<p>Converts a moment format to Luxon, or returns null when it contains tokens without a safe equivalent.</p>\n",
|
|
41513
|
+
"displayName": "momentFormatToLuxon",
|
|
40956
41514
|
"args": [
|
|
40957
41515
|
{
|
|
40958
|
-
"name": "
|
|
41516
|
+
"name": "format",
|
|
41517
|
+
"type": "string",
|
|
40959
41518
|
"deprecated": false,
|
|
40960
41519
|
"deprecationMessage": ""
|
|
40961
41520
|
}
|
|
40962
41521
|
],
|
|
40963
|
-
"returnType": "
|
|
41522
|
+
"returnType": "string | null",
|
|
40964
41523
|
"jsdoctags": [
|
|
40965
41524
|
{
|
|
40966
|
-
"name": "
|
|
41525
|
+
"name": "format",
|
|
41526
|
+
"type": "string",
|
|
40967
41527
|
"deprecated": false,
|
|
40968
41528
|
"deprecationMessage": "",
|
|
40969
41529
|
"tagName": {
|
|
@@ -42486,6 +43046,66 @@
|
|
|
42486
43046
|
}
|
|
42487
43047
|
]
|
|
42488
43048
|
},
|
|
43049
|
+
{
|
|
43050
|
+
"name": "reportMomentLocales",
|
|
43051
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
43052
|
+
"ctype": "miscellaneous",
|
|
43053
|
+
"subtype": "function",
|
|
43054
|
+
"coverageIgnore": false,
|
|
43055
|
+
"deprecated": false,
|
|
43056
|
+
"deprecationMessage": "",
|
|
43057
|
+
"rawdescription": "",
|
|
43058
|
+
"description": "",
|
|
43059
|
+
"displayName": "reportMomentLocales",
|
|
43060
|
+
"args": [
|
|
43061
|
+
{
|
|
43062
|
+
"name": "tree",
|
|
43063
|
+
"type": "Tree",
|
|
43064
|
+
"deprecated": false,
|
|
43065
|
+
"deprecationMessage": ""
|
|
43066
|
+
},
|
|
43067
|
+
{
|
|
43068
|
+
"name": "context",
|
|
43069
|
+
"type": "SchematicContext",
|
|
43070
|
+
"deprecated": false,
|
|
43071
|
+
"deprecationMessage": ""
|
|
43072
|
+
},
|
|
43073
|
+
{
|
|
43074
|
+
"name": "files",
|
|
43075
|
+
"deprecated": false,
|
|
43076
|
+
"deprecationMessage": ""
|
|
43077
|
+
}
|
|
43078
|
+
],
|
|
43079
|
+
"returnType": "void",
|
|
43080
|
+
"jsdoctags": [
|
|
43081
|
+
{
|
|
43082
|
+
"name": "tree",
|
|
43083
|
+
"type": "Tree",
|
|
43084
|
+
"deprecated": false,
|
|
43085
|
+
"deprecationMessage": "",
|
|
43086
|
+
"tagName": {
|
|
43087
|
+
"text": "param"
|
|
43088
|
+
}
|
|
43089
|
+
},
|
|
43090
|
+
{
|
|
43091
|
+
"name": "context",
|
|
43092
|
+
"type": "SchematicContext",
|
|
43093
|
+
"deprecated": false,
|
|
43094
|
+
"deprecationMessage": "",
|
|
43095
|
+
"tagName": {
|
|
43096
|
+
"text": "param"
|
|
43097
|
+
}
|
|
43098
|
+
},
|
|
43099
|
+
{
|
|
43100
|
+
"name": "files",
|
|
43101
|
+
"deprecated": false,
|
|
43102
|
+
"deprecationMessage": "",
|
|
43103
|
+
"tagName": {
|
|
43104
|
+
"text": "param"
|
|
43105
|
+
}
|
|
43106
|
+
}
|
|
43107
|
+
]
|
|
43108
|
+
},
|
|
42489
43109
|
{
|
|
42490
43110
|
"name": "resolveElementToEuiClass",
|
|
42491
43111
|
"file": "packages/core/schematics/migrate-to-signals/index.ts",
|
|
@@ -42653,6 +43273,53 @@
|
|
|
42653
43273
|
}
|
|
42654
43274
|
]
|
|
42655
43275
|
},
|
|
43276
|
+
{
|
|
43277
|
+
"name": "resolvePath",
|
|
43278
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
43279
|
+
"ctype": "miscellaneous",
|
|
43280
|
+
"subtype": "function",
|
|
43281
|
+
"coverageIgnore": false,
|
|
43282
|
+
"deprecated": false,
|
|
43283
|
+
"deprecationMessage": "",
|
|
43284
|
+
"rawdescription": "",
|
|
43285
|
+
"description": "",
|
|
43286
|
+
"displayName": "resolvePath",
|
|
43287
|
+
"args": [
|
|
43288
|
+
{
|
|
43289
|
+
"name": "fromFile",
|
|
43290
|
+
"type": "string",
|
|
43291
|
+
"deprecated": false,
|
|
43292
|
+
"deprecationMessage": ""
|
|
43293
|
+
},
|
|
43294
|
+
{
|
|
43295
|
+
"name": "relative",
|
|
43296
|
+
"type": "string",
|
|
43297
|
+
"deprecated": false,
|
|
43298
|
+
"deprecationMessage": ""
|
|
43299
|
+
}
|
|
43300
|
+
],
|
|
43301
|
+
"returnType": "string",
|
|
43302
|
+
"jsdoctags": [
|
|
43303
|
+
{
|
|
43304
|
+
"name": "fromFile",
|
|
43305
|
+
"type": "string",
|
|
43306
|
+
"deprecated": false,
|
|
43307
|
+
"deprecationMessage": "",
|
|
43308
|
+
"tagName": {
|
|
43309
|
+
"text": "param"
|
|
43310
|
+
}
|
|
43311
|
+
},
|
|
43312
|
+
{
|
|
43313
|
+
"name": "relative",
|
|
43314
|
+
"type": "string",
|
|
43315
|
+
"deprecated": false,
|
|
43316
|
+
"deprecationMessage": "",
|
|
43317
|
+
"tagName": {
|
|
43318
|
+
"text": "param"
|
|
43319
|
+
}
|
|
43320
|
+
}
|
|
43321
|
+
]
|
|
43322
|
+
},
|
|
42656
43323
|
{
|
|
42657
43324
|
"name": "resolveRefName",
|
|
42658
43325
|
"file": "packages/core/schematics/migrate-to-signals/index.ts",
|
|
@@ -47618,6 +48285,19 @@
|
|
|
47618
48285
|
"description": "",
|
|
47619
48286
|
"kind": 201
|
|
47620
48287
|
},
|
|
48288
|
+
{
|
|
48289
|
+
"name": "AdapterKind",
|
|
48290
|
+
"ctype": "miscellaneous",
|
|
48291
|
+
"subtype": "typealias",
|
|
48292
|
+
"coverageIgnore": false,
|
|
48293
|
+
"rawtype": "\"moment\" | \"luxon\" | \"native\"",
|
|
48294
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
48295
|
+
"deprecated": false,
|
|
48296
|
+
"deprecationMessage": "",
|
|
48297
|
+
"rawdescription": "",
|
|
48298
|
+
"description": "",
|
|
48299
|
+
"kind": 193
|
|
48300
|
+
},
|
|
47621
48301
|
{
|
|
47622
48302
|
"name": "AnyFn",
|
|
47623
48303
|
"ctype": "miscellaneous",
|
|
@@ -48382,6 +49062,63 @@
|
|
|
48382
49062
|
"defaultValue": "(state: UserState, action: UpdateUserRightsAction): UserState =>\n Object.assign({}, state, { rights: [...action.payload] })"
|
|
48383
49063
|
}
|
|
48384
49064
|
],
|
|
49065
|
+
"packages/core/schematics/migrate-eui-datepicker/index.ts": [
|
|
49066
|
+
{
|
|
49067
|
+
"name": "ADAPTER_PATTERNS",
|
|
49068
|
+
"ctype": "miscellaneous",
|
|
49069
|
+
"subtype": "variable",
|
|
49070
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
49071
|
+
"coverageIgnore": false,
|
|
49072
|
+
"deprecated": false,
|
|
49073
|
+
"deprecationMessage": "",
|
|
49074
|
+
"type": "Record<AdapterKind, RegExp>",
|
|
49075
|
+
"defaultValue": "{\n moment: /\\bprovideMomentDateAdapter\\s*\\(|\\bMomentDateAdapter\\b|\\bMatMomentDateModule\\b/,\n luxon: /\\bprovideLuxonDateAdapter\\s*\\(|\\bLuxonDateAdapter\\b|\\bMatLuxonDateModule\\b/,\n native: /\\bprovideNativeDateAdapter\\s*\\(|\\bNativeDateAdapter\\b|\\bMatNativeDateModule\\b|\\bNativeDateModule\\b/,\n}"
|
|
49076
|
+
},
|
|
49077
|
+
{
|
|
49078
|
+
"name": "APP_ROOT_FILE",
|
|
49079
|
+
"ctype": "miscellaneous",
|
|
49080
|
+
"subtype": "variable",
|
|
49081
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
49082
|
+
"coverageIgnore": false,
|
|
49083
|
+
"deprecated": false,
|
|
49084
|
+
"deprecationMessage": "",
|
|
49085
|
+
"type": "unknown",
|
|
49086
|
+
"defaultValue": "/(^|\\/)(app\\.config|app\\.module|main)\\.ts$/"
|
|
49087
|
+
},
|
|
49088
|
+
{
|
|
49089
|
+
"name": "MOMENT_PRESETS",
|
|
49090
|
+
"ctype": "miscellaneous",
|
|
49091
|
+
"subtype": "variable",
|
|
49092
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
49093
|
+
"coverageIgnore": false,
|
|
49094
|
+
"deprecated": false,
|
|
49095
|
+
"deprecationMessage": "",
|
|
49096
|
+
"type": "[]",
|
|
49097
|
+
"defaultValue": "['DEFAULT_FORMATS', 'LETTER_FORMAT', 'YEAR_FORMAT', 'MONTH_YEAR_FORMAT']"
|
|
49098
|
+
},
|
|
49099
|
+
{
|
|
49100
|
+
"name": "MOMENT_TO_LUXON_TOKENS",
|
|
49101
|
+
"ctype": "miscellaneous",
|
|
49102
|
+
"subtype": "variable",
|
|
49103
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
49104
|
+
"coverageIgnore": false,
|
|
49105
|
+
"deprecated": false,
|
|
49106
|
+
"deprecationMessage": "",
|
|
49107
|
+
"type": "Record<string, string>",
|
|
49108
|
+
"defaultValue": "{\n YYYY: 'yyyy', YY: 'yy',\n MMMM: 'MMMM', MMM: 'MMM', MM: 'MM', M: 'M',\n DD: 'dd', D: 'd',\n HH: 'HH', H: 'H', hh: 'hh', h: 'h',\n mm: 'mm', m: 'm', ss: 'ss', s: 's', SSS: 'SSS',\n A: 'a',\n}"
|
|
49109
|
+
},
|
|
49110
|
+
{
|
|
49111
|
+
"name": "NESTED_NODE_KEYS",
|
|
49112
|
+
"ctype": "miscellaneous",
|
|
49113
|
+
"subtype": "variable",
|
|
49114
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
49115
|
+
"coverageIgnore": false,
|
|
49116
|
+
"deprecated": false,
|
|
49117
|
+
"deprecationMessage": "",
|
|
49118
|
+
"type": "[]",
|
|
49119
|
+
"defaultValue": "['children', 'branches', 'cases', 'empty', 'placeholder', 'loading', 'error']"
|
|
49120
|
+
}
|
|
49121
|
+
],
|
|
48385
49122
|
"packages/core/src/lib/eui-core.module.ts": [
|
|
48386
49123
|
{
|
|
48387
49124
|
"name": "AddAppLoadedConfigModules",
|
|
@@ -50775,10 +51512,10 @@
|
|
|
50775
51512
|
]
|
|
50776
51513
|
},
|
|
50777
51514
|
"groupedFunctions": {
|
|
50778
|
-
"packages/core/schematics/
|
|
51515
|
+
"packages/core/schematics/migrate-eui-datepicker/index.ts": [
|
|
50779
51516
|
{
|
|
50780
|
-
"name": "
|
|
50781
|
-
"file": "packages/core/schematics/
|
|
51517
|
+
"name": "adapterKinds",
|
|
51518
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
50782
51519
|
"ctype": "miscellaneous",
|
|
50783
51520
|
"subtype": "function",
|
|
50784
51521
|
"coverageIgnore": false,
|
|
@@ -50786,39 +51523,117 @@
|
|
|
50786
51523
|
"deprecationMessage": "",
|
|
50787
51524
|
"rawdescription": "",
|
|
50788
51525
|
"description": "",
|
|
50789
|
-
"displayName": "
|
|
51526
|
+
"displayName": "adapterKinds",
|
|
50790
51527
|
"args": [
|
|
50791
51528
|
{
|
|
50792
51529
|
"name": "source",
|
|
50793
51530
|
"type": "string",
|
|
50794
51531
|
"deprecated": false,
|
|
50795
51532
|
"deprecationMessage": ""
|
|
50796
|
-
}
|
|
51533
|
+
}
|
|
51534
|
+
],
|
|
51535
|
+
"returnType": "AdapterKind[]",
|
|
51536
|
+
"jsdoctags": [
|
|
50797
51537
|
{
|
|
50798
|
-
"name": "
|
|
51538
|
+
"name": "source",
|
|
51539
|
+
"type": "string",
|
|
51540
|
+
"deprecated": false,
|
|
51541
|
+
"deprecationMessage": "",
|
|
51542
|
+
"tagName": {
|
|
51543
|
+
"text": "param"
|
|
51544
|
+
}
|
|
51545
|
+
}
|
|
51546
|
+
]
|
|
51547
|
+
},
|
|
51548
|
+
{
|
|
51549
|
+
"name": "applyEdits",
|
|
51550
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51551
|
+
"ctype": "miscellaneous",
|
|
51552
|
+
"subtype": "function",
|
|
51553
|
+
"coverageIgnore": false,
|
|
51554
|
+
"deprecated": false,
|
|
51555
|
+
"deprecationMessage": "",
|
|
51556
|
+
"rawdescription": "",
|
|
51557
|
+
"description": "",
|
|
51558
|
+
"displayName": "applyEdits",
|
|
51559
|
+
"args": [
|
|
51560
|
+
{
|
|
51561
|
+
"name": "content",
|
|
50799
51562
|
"type": "string",
|
|
50800
51563
|
"deprecated": false,
|
|
50801
51564
|
"deprecationMessage": ""
|
|
50802
51565
|
},
|
|
50803
51566
|
{
|
|
50804
|
-
"name": "
|
|
51567
|
+
"name": "edits",
|
|
50805
51568
|
"deprecated": false,
|
|
50806
51569
|
"deprecationMessage": ""
|
|
50807
51570
|
}
|
|
50808
51571
|
],
|
|
50809
51572
|
"returnType": "string",
|
|
50810
51573
|
"jsdoctags": [
|
|
51574
|
+
{
|
|
51575
|
+
"name": "content",
|
|
51576
|
+
"type": "string",
|
|
51577
|
+
"deprecated": false,
|
|
51578
|
+
"deprecationMessage": "",
|
|
51579
|
+
"tagName": {
|
|
51580
|
+
"text": "param"
|
|
51581
|
+
}
|
|
51582
|
+
},
|
|
51583
|
+
{
|
|
51584
|
+
"name": "edits",
|
|
51585
|
+
"deprecated": false,
|
|
51586
|
+
"deprecationMessage": "",
|
|
51587
|
+
"tagName": {
|
|
51588
|
+
"text": "param"
|
|
51589
|
+
}
|
|
51590
|
+
}
|
|
51591
|
+
]
|
|
51592
|
+
},
|
|
51593
|
+
{
|
|
51594
|
+
"name": "componentTemplates",
|
|
51595
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51596
|
+
"ctype": "miscellaneous",
|
|
51597
|
+
"subtype": "function",
|
|
51598
|
+
"coverageIgnore": false,
|
|
51599
|
+
"deprecated": false,
|
|
51600
|
+
"deprecationMessage": "",
|
|
51601
|
+
"rawdescription": "",
|
|
51602
|
+
"description": "",
|
|
51603
|
+
"displayName": "componentTemplates",
|
|
51604
|
+
"args": [
|
|
51605
|
+
{
|
|
51606
|
+
"name": "tree",
|
|
51607
|
+
"type": "Tree",
|
|
51608
|
+
"deprecated": false,
|
|
51609
|
+
"deprecationMessage": ""
|
|
51610
|
+
},
|
|
51611
|
+
{
|
|
51612
|
+
"name": "path",
|
|
51613
|
+
"type": "string",
|
|
51614
|
+
"deprecated": false,
|
|
51615
|
+
"deprecationMessage": ""
|
|
51616
|
+
},
|
|
50811
51617
|
{
|
|
50812
51618
|
"name": "source",
|
|
50813
51619
|
"type": "string",
|
|
50814
51620
|
"deprecated": false,
|
|
51621
|
+
"deprecationMessage": ""
|
|
51622
|
+
}
|
|
51623
|
+
],
|
|
51624
|
+
"returnType": "TemplateSource[]",
|
|
51625
|
+
"jsdoctags": [
|
|
51626
|
+
{
|
|
51627
|
+
"name": "tree",
|
|
51628
|
+
"type": "Tree",
|
|
51629
|
+
"deprecated": false,
|
|
50815
51630
|
"deprecationMessage": "",
|
|
50816
51631
|
"tagName": {
|
|
50817
51632
|
"text": "param"
|
|
50818
51633
|
}
|
|
50819
51634
|
},
|
|
50820
51635
|
{
|
|
50821
|
-
"name": "
|
|
51636
|
+
"name": "path",
|
|
50822
51637
|
"type": "string",
|
|
50823
51638
|
"deprecated": false,
|
|
50824
51639
|
"deprecationMessage": "",
|
|
@@ -50827,7 +51642,8 @@
|
|
|
50827
51642
|
}
|
|
50828
51643
|
},
|
|
50829
51644
|
{
|
|
50830
|
-
"name": "
|
|
51645
|
+
"name": "source",
|
|
51646
|
+
"type": "string",
|
|
50831
51647
|
"deprecated": false,
|
|
50832
51648
|
"deprecationMessage": "",
|
|
50833
51649
|
"tagName": {
|
|
@@ -50837,8 +51653,8 @@
|
|
|
50837
51653
|
]
|
|
50838
51654
|
},
|
|
50839
51655
|
{
|
|
50840
|
-
"name": "
|
|
50841
|
-
"file": "packages/core/schematics/
|
|
51656
|
+
"name": "detectAppAdapter",
|
|
51657
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
50842
51658
|
"ctype": "miscellaneous",
|
|
50843
51659
|
"subtype": "function",
|
|
50844
51660
|
"coverageIgnore": false,
|
|
@@ -50846,7 +51662,535 @@
|
|
|
50846
51662
|
"deprecationMessage": "",
|
|
50847
51663
|
"rawdescription": "",
|
|
50848
51664
|
"description": "",
|
|
50849
|
-
"displayName": "
|
|
51665
|
+
"displayName": "detectAppAdapter",
|
|
51666
|
+
"args": [
|
|
51667
|
+
{
|
|
51668
|
+
"name": "tree",
|
|
51669
|
+
"type": "Tree",
|
|
51670
|
+
"deprecated": false,
|
|
51671
|
+
"deprecationMessage": ""
|
|
51672
|
+
},
|
|
51673
|
+
{
|
|
51674
|
+
"name": "files",
|
|
51675
|
+
"deprecated": false,
|
|
51676
|
+
"deprecationMessage": ""
|
|
51677
|
+
}
|
|
51678
|
+
],
|
|
51679
|
+
"returnType": "AdapterKind | undefined",
|
|
51680
|
+
"jsdoctags": [
|
|
51681
|
+
{
|
|
51682
|
+
"name": "tree",
|
|
51683
|
+
"type": "Tree",
|
|
51684
|
+
"deprecated": false,
|
|
51685
|
+
"deprecationMessage": "",
|
|
51686
|
+
"tagName": {
|
|
51687
|
+
"text": "param"
|
|
51688
|
+
}
|
|
51689
|
+
},
|
|
51690
|
+
{
|
|
51691
|
+
"name": "files",
|
|
51692
|
+
"deprecated": false,
|
|
51693
|
+
"deprecationMessage": "",
|
|
51694
|
+
"tagName": {
|
|
51695
|
+
"text": "param"
|
|
51696
|
+
}
|
|
51697
|
+
}
|
|
51698
|
+
]
|
|
51699
|
+
},
|
|
51700
|
+
{
|
|
51701
|
+
"name": "findOutputFormatUsages",
|
|
51702
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51703
|
+
"ctype": "miscellaneous",
|
|
51704
|
+
"subtype": "function",
|
|
51705
|
+
"coverageIgnore": false,
|
|
51706
|
+
"deprecated": false,
|
|
51707
|
+
"deprecationMessage": "",
|
|
51708
|
+
"rawdescription": "",
|
|
51709
|
+
"description": "",
|
|
51710
|
+
"displayName": "findOutputFormatUsages",
|
|
51711
|
+
"args": [
|
|
51712
|
+
{
|
|
51713
|
+
"name": "template",
|
|
51714
|
+
"type": "string",
|
|
51715
|
+
"deprecated": false,
|
|
51716
|
+
"deprecationMessage": ""
|
|
51717
|
+
}
|
|
51718
|
+
],
|
|
51719
|
+
"returnType": "OutputFormatUsage[]",
|
|
51720
|
+
"jsdoctags": [
|
|
51721
|
+
{
|
|
51722
|
+
"name": "template",
|
|
51723
|
+
"type": "string",
|
|
51724
|
+
"deprecated": false,
|
|
51725
|
+
"deprecationMessage": "",
|
|
51726
|
+
"tagName": {
|
|
51727
|
+
"text": "param"
|
|
51728
|
+
}
|
|
51729
|
+
}
|
|
51730
|
+
]
|
|
51731
|
+
},
|
|
51732
|
+
{
|
|
51733
|
+
"name": "forEachDatepicker",
|
|
51734
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51735
|
+
"ctype": "miscellaneous",
|
|
51736
|
+
"subtype": "function",
|
|
51737
|
+
"coverageIgnore": false,
|
|
51738
|
+
"deprecated": false,
|
|
51739
|
+
"deprecationMessage": "",
|
|
51740
|
+
"rawdescription": "",
|
|
51741
|
+
"description": "",
|
|
51742
|
+
"displayName": "forEachDatepicker",
|
|
51743
|
+
"args": [
|
|
51744
|
+
{
|
|
51745
|
+
"name": "nodes",
|
|
51746
|
+
"deprecated": false,
|
|
51747
|
+
"deprecationMessage": ""
|
|
51748
|
+
},
|
|
51749
|
+
{
|
|
51750
|
+
"name": "callback",
|
|
51751
|
+
"deprecated": false,
|
|
51752
|
+
"deprecationMessage": ""
|
|
51753
|
+
}
|
|
51754
|
+
],
|
|
51755
|
+
"returnType": "void",
|
|
51756
|
+
"jsdoctags": [
|
|
51757
|
+
{
|
|
51758
|
+
"name": "nodes",
|
|
51759
|
+
"deprecated": false,
|
|
51760
|
+
"deprecationMessage": "",
|
|
51761
|
+
"tagName": {
|
|
51762
|
+
"text": "param"
|
|
51763
|
+
}
|
|
51764
|
+
},
|
|
51765
|
+
{
|
|
51766
|
+
"name": "callback",
|
|
51767
|
+
"deprecated": false,
|
|
51768
|
+
"deprecationMessage": "",
|
|
51769
|
+
"tagName": {
|
|
51770
|
+
"text": "param"
|
|
51771
|
+
}
|
|
51772
|
+
}
|
|
51773
|
+
]
|
|
51774
|
+
},
|
|
51775
|
+
{
|
|
51776
|
+
"name": "inlineTemplates",
|
|
51777
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51778
|
+
"ctype": "miscellaneous",
|
|
51779
|
+
"subtype": "function",
|
|
51780
|
+
"coverageIgnore": false,
|
|
51781
|
+
"deprecated": false,
|
|
51782
|
+
"deprecationMessage": "",
|
|
51783
|
+
"rawdescription": "",
|
|
51784
|
+
"description": "",
|
|
51785
|
+
"displayName": "inlineTemplates",
|
|
51786
|
+
"args": [
|
|
51787
|
+
{
|
|
51788
|
+
"name": "source",
|
|
51789
|
+
"type": "string",
|
|
51790
|
+
"deprecated": false,
|
|
51791
|
+
"deprecationMessage": ""
|
|
51792
|
+
}
|
|
51793
|
+
],
|
|
51794
|
+
"returnType": "literal type[]",
|
|
51795
|
+
"jsdoctags": [
|
|
51796
|
+
{
|
|
51797
|
+
"name": "source",
|
|
51798
|
+
"type": "string",
|
|
51799
|
+
"deprecated": false,
|
|
51800
|
+
"deprecationMessage": "",
|
|
51801
|
+
"tagName": {
|
|
51802
|
+
"text": "param"
|
|
51803
|
+
}
|
|
51804
|
+
}
|
|
51805
|
+
]
|
|
51806
|
+
},
|
|
51807
|
+
{
|
|
51808
|
+
"name": "isLikelyLuxonFormat",
|
|
51809
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51810
|
+
"ctype": "miscellaneous",
|
|
51811
|
+
"subtype": "function",
|
|
51812
|
+
"coverageIgnore": false,
|
|
51813
|
+
"deprecated": false,
|
|
51814
|
+
"deprecationMessage": "",
|
|
51815
|
+
"rawdescription": "",
|
|
51816
|
+
"description": "",
|
|
51817
|
+
"displayName": "isLikelyLuxonFormat",
|
|
51818
|
+
"args": [
|
|
51819
|
+
{
|
|
51820
|
+
"name": "format",
|
|
51821
|
+
"type": "string",
|
|
51822
|
+
"deprecated": false,
|
|
51823
|
+
"deprecationMessage": ""
|
|
51824
|
+
}
|
|
51825
|
+
],
|
|
51826
|
+
"returnType": "boolean",
|
|
51827
|
+
"jsdoctags": [
|
|
51828
|
+
{
|
|
51829
|
+
"name": "format",
|
|
51830
|
+
"type": "string",
|
|
51831
|
+
"deprecated": false,
|
|
51832
|
+
"deprecationMessage": "",
|
|
51833
|
+
"tagName": {
|
|
51834
|
+
"text": "param"
|
|
51835
|
+
}
|
|
51836
|
+
}
|
|
51837
|
+
]
|
|
51838
|
+
},
|
|
51839
|
+
{
|
|
51840
|
+
"name": "luxonPresetEdits",
|
|
51841
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51842
|
+
"ctype": "miscellaneous",
|
|
51843
|
+
"subtype": "function",
|
|
51844
|
+
"coverageIgnore": false,
|
|
51845
|
+
"deprecated": false,
|
|
51846
|
+
"deprecationMessage": "",
|
|
51847
|
+
"rawdescription": "",
|
|
51848
|
+
"description": "",
|
|
51849
|
+
"displayName": "luxonPresetEdits",
|
|
51850
|
+
"args": [
|
|
51851
|
+
{
|
|
51852
|
+
"name": "source",
|
|
51853
|
+
"type": "string",
|
|
51854
|
+
"deprecated": false,
|
|
51855
|
+
"deprecationMessage": ""
|
|
51856
|
+
}
|
|
51857
|
+
],
|
|
51858
|
+
"returnType": "TextEdit[]",
|
|
51859
|
+
"jsdoctags": [
|
|
51860
|
+
{
|
|
51861
|
+
"name": "source",
|
|
51862
|
+
"type": "string",
|
|
51863
|
+
"deprecated": false,
|
|
51864
|
+
"deprecationMessage": "",
|
|
51865
|
+
"tagName": {
|
|
51866
|
+
"text": "param"
|
|
51867
|
+
}
|
|
51868
|
+
}
|
|
51869
|
+
]
|
|
51870
|
+
},
|
|
51871
|
+
{
|
|
51872
|
+
"name": "migrateEuiDatepicker",
|
|
51873
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51874
|
+
"ctype": "miscellaneous",
|
|
51875
|
+
"subtype": "function",
|
|
51876
|
+
"coverageIgnore": false,
|
|
51877
|
+
"deprecated": false,
|
|
51878
|
+
"deprecationMessage": "",
|
|
51879
|
+
"rawdescription": "Migrates eui-datepicker usages to the moment-free datepicker:\n- moment locales are no longer bundled (report only);\n- with a Luxon adapter, moment-token presets are replaced by their `LUXON_*` equivalents and static\n `dateOutputFormat` values are converted to Luxon tokens;\n- with the native adapter, `dateOutputFormat` is no longer supported (report only).\n\nThe adapter is detected from the component file, falling back to the one provided in\napp.config.ts / app.module.ts / main.ts.",
|
|
51880
|
+
"description": "<p>Migrates eui-datepicker usages to the moment-free datepicker:</p>\n<ul>\n<li>moment locales are no longer bundled (report only);</li>\n<li>with a Luxon adapter, moment-token presets are replaced by their <code>LUXON_*</code> equivalents and static\n<code>dateOutputFormat</code> values are converted to Luxon tokens;</li>\n<li>with the native adapter, <code>dateOutputFormat</code> is no longer supported (report only).</li>\n</ul>\n<p>The adapter is detected from the component file, falling back to the one provided in\napp.config.ts / app.module.ts / main.ts.</p>\n",
|
|
51881
|
+
"displayName": "migrateEuiDatepicker",
|
|
51882
|
+
"args": [
|
|
51883
|
+
{
|
|
51884
|
+
"name": "options",
|
|
51885
|
+
"type": "Schema",
|
|
51886
|
+
"deprecated": false,
|
|
51887
|
+
"deprecationMessage": "",
|
|
51888
|
+
"defaultValue": "{}"
|
|
51889
|
+
}
|
|
51890
|
+
],
|
|
51891
|
+
"returnType": "Rule",
|
|
51892
|
+
"jsdoctags": [
|
|
51893
|
+
{
|
|
51894
|
+
"name": "options",
|
|
51895
|
+
"type": "Schema",
|
|
51896
|
+
"deprecated": false,
|
|
51897
|
+
"deprecationMessage": "",
|
|
51898
|
+
"defaultValue": "{}",
|
|
51899
|
+
"tagName": {
|
|
51900
|
+
"text": "param"
|
|
51901
|
+
}
|
|
51902
|
+
}
|
|
51903
|
+
]
|
|
51904
|
+
},
|
|
51905
|
+
{
|
|
51906
|
+
"name": "momentFormatToLuxon",
|
|
51907
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51908
|
+
"ctype": "miscellaneous",
|
|
51909
|
+
"subtype": "function",
|
|
51910
|
+
"coverageIgnore": false,
|
|
51911
|
+
"deprecated": false,
|
|
51912
|
+
"deprecationMessage": "",
|
|
51913
|
+
"rawdescription": "Converts a moment format to Luxon, or returns null when it contains tokens without a safe equivalent.",
|
|
51914
|
+
"description": "<p>Converts a moment format to Luxon, or returns null when it contains tokens without a safe equivalent.</p>\n",
|
|
51915
|
+
"displayName": "momentFormatToLuxon",
|
|
51916
|
+
"args": [
|
|
51917
|
+
{
|
|
51918
|
+
"name": "format",
|
|
51919
|
+
"type": "string",
|
|
51920
|
+
"deprecated": false,
|
|
51921
|
+
"deprecationMessage": ""
|
|
51922
|
+
}
|
|
51923
|
+
],
|
|
51924
|
+
"returnType": "string | null",
|
|
51925
|
+
"jsdoctags": [
|
|
51926
|
+
{
|
|
51927
|
+
"name": "format",
|
|
51928
|
+
"type": "string",
|
|
51929
|
+
"deprecated": false,
|
|
51930
|
+
"deprecationMessage": "",
|
|
51931
|
+
"tagName": {
|
|
51932
|
+
"text": "param"
|
|
51933
|
+
}
|
|
51934
|
+
}
|
|
51935
|
+
]
|
|
51936
|
+
},
|
|
51937
|
+
{
|
|
51938
|
+
"name": "reportMomentLocales",
|
|
51939
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51940
|
+
"ctype": "miscellaneous",
|
|
51941
|
+
"subtype": "function",
|
|
51942
|
+
"coverageIgnore": false,
|
|
51943
|
+
"deprecated": false,
|
|
51944
|
+
"deprecationMessage": "",
|
|
51945
|
+
"rawdescription": "",
|
|
51946
|
+
"description": "",
|
|
51947
|
+
"displayName": "reportMomentLocales",
|
|
51948
|
+
"args": [
|
|
51949
|
+
{
|
|
51950
|
+
"name": "tree",
|
|
51951
|
+
"type": "Tree",
|
|
51952
|
+
"deprecated": false,
|
|
51953
|
+
"deprecationMessage": ""
|
|
51954
|
+
},
|
|
51955
|
+
{
|
|
51956
|
+
"name": "context",
|
|
51957
|
+
"type": "SchematicContext",
|
|
51958
|
+
"deprecated": false,
|
|
51959
|
+
"deprecationMessage": ""
|
|
51960
|
+
},
|
|
51961
|
+
{
|
|
51962
|
+
"name": "files",
|
|
51963
|
+
"deprecated": false,
|
|
51964
|
+
"deprecationMessage": ""
|
|
51965
|
+
}
|
|
51966
|
+
],
|
|
51967
|
+
"returnType": "void",
|
|
51968
|
+
"jsdoctags": [
|
|
51969
|
+
{
|
|
51970
|
+
"name": "tree",
|
|
51971
|
+
"type": "Tree",
|
|
51972
|
+
"deprecated": false,
|
|
51973
|
+
"deprecationMessage": "",
|
|
51974
|
+
"tagName": {
|
|
51975
|
+
"text": "param"
|
|
51976
|
+
}
|
|
51977
|
+
},
|
|
51978
|
+
{
|
|
51979
|
+
"name": "context",
|
|
51980
|
+
"type": "SchematicContext",
|
|
51981
|
+
"deprecated": false,
|
|
51982
|
+
"deprecationMessage": "",
|
|
51983
|
+
"tagName": {
|
|
51984
|
+
"text": "param"
|
|
51985
|
+
}
|
|
51986
|
+
},
|
|
51987
|
+
{
|
|
51988
|
+
"name": "files",
|
|
51989
|
+
"deprecated": false,
|
|
51990
|
+
"deprecationMessage": "",
|
|
51991
|
+
"tagName": {
|
|
51992
|
+
"text": "param"
|
|
51993
|
+
}
|
|
51994
|
+
}
|
|
51995
|
+
]
|
|
51996
|
+
},
|
|
51997
|
+
{
|
|
51998
|
+
"name": "resolvePath",
|
|
51999
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
52000
|
+
"ctype": "miscellaneous",
|
|
52001
|
+
"subtype": "function",
|
|
52002
|
+
"coverageIgnore": false,
|
|
52003
|
+
"deprecated": false,
|
|
52004
|
+
"deprecationMessage": "",
|
|
52005
|
+
"rawdescription": "",
|
|
52006
|
+
"description": "",
|
|
52007
|
+
"displayName": "resolvePath",
|
|
52008
|
+
"args": [
|
|
52009
|
+
{
|
|
52010
|
+
"name": "fromFile",
|
|
52011
|
+
"type": "string",
|
|
52012
|
+
"deprecated": false,
|
|
52013
|
+
"deprecationMessage": ""
|
|
52014
|
+
},
|
|
52015
|
+
{
|
|
52016
|
+
"name": "relative",
|
|
52017
|
+
"type": "string",
|
|
52018
|
+
"deprecated": false,
|
|
52019
|
+
"deprecationMessage": ""
|
|
52020
|
+
}
|
|
52021
|
+
],
|
|
52022
|
+
"returnType": "string",
|
|
52023
|
+
"jsdoctags": [
|
|
52024
|
+
{
|
|
52025
|
+
"name": "fromFile",
|
|
52026
|
+
"type": "string",
|
|
52027
|
+
"deprecated": false,
|
|
52028
|
+
"deprecationMessage": "",
|
|
52029
|
+
"tagName": {
|
|
52030
|
+
"text": "param"
|
|
52031
|
+
}
|
|
52032
|
+
},
|
|
52033
|
+
{
|
|
52034
|
+
"name": "relative",
|
|
52035
|
+
"type": "string",
|
|
52036
|
+
"deprecated": false,
|
|
52037
|
+
"deprecationMessage": "",
|
|
52038
|
+
"tagName": {
|
|
52039
|
+
"text": "param"
|
|
52040
|
+
}
|
|
52041
|
+
}
|
|
52042
|
+
]
|
|
52043
|
+
},
|
|
52044
|
+
{
|
|
52045
|
+
"name": "templateUsesDatepicker",
|
|
52046
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
52047
|
+
"ctype": "miscellaneous",
|
|
52048
|
+
"subtype": "function",
|
|
52049
|
+
"coverageIgnore": false,
|
|
52050
|
+
"deprecated": false,
|
|
52051
|
+
"deprecationMessage": "",
|
|
52052
|
+
"rawdescription": "",
|
|
52053
|
+
"description": "",
|
|
52054
|
+
"displayName": "templateUsesDatepicker",
|
|
52055
|
+
"args": [
|
|
52056
|
+
{
|
|
52057
|
+
"name": "source",
|
|
52058
|
+
"type": "string",
|
|
52059
|
+
"deprecated": false,
|
|
52060
|
+
"deprecationMessage": ""
|
|
52061
|
+
}
|
|
52062
|
+
],
|
|
52063
|
+
"returnType": "boolean",
|
|
52064
|
+
"jsdoctags": [
|
|
52065
|
+
{
|
|
52066
|
+
"name": "source",
|
|
52067
|
+
"type": "string",
|
|
52068
|
+
"deprecated": false,
|
|
52069
|
+
"deprecationMessage": "",
|
|
52070
|
+
"tagName": {
|
|
52071
|
+
"text": "param"
|
|
52072
|
+
}
|
|
52073
|
+
}
|
|
52074
|
+
]
|
|
52075
|
+
},
|
|
52076
|
+
{
|
|
52077
|
+
"name": "visitDir",
|
|
52078
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
52079
|
+
"ctype": "miscellaneous",
|
|
52080
|
+
"subtype": "function",
|
|
52081
|
+
"coverageIgnore": false,
|
|
52082
|
+
"deprecated": false,
|
|
52083
|
+
"deprecationMessage": "",
|
|
52084
|
+
"rawdescription": "",
|
|
52085
|
+
"description": "",
|
|
52086
|
+
"displayName": "visitDir",
|
|
52087
|
+
"args": [
|
|
52088
|
+
{
|
|
52089
|
+
"name": "dir",
|
|
52090
|
+
"type": "DirEntry",
|
|
52091
|
+
"deprecated": false,
|
|
52092
|
+
"deprecationMessage": ""
|
|
52093
|
+
},
|
|
52094
|
+
{
|
|
52095
|
+
"name": "callback",
|
|
52096
|
+
"deprecated": false,
|
|
52097
|
+
"deprecationMessage": ""
|
|
52098
|
+
}
|
|
52099
|
+
],
|
|
52100
|
+
"returnType": "void",
|
|
52101
|
+
"jsdoctags": [
|
|
52102
|
+
{
|
|
52103
|
+
"name": "dir",
|
|
52104
|
+
"type": "DirEntry",
|
|
52105
|
+
"deprecated": false,
|
|
52106
|
+
"deprecationMessage": "",
|
|
52107
|
+
"tagName": {
|
|
52108
|
+
"text": "param"
|
|
52109
|
+
}
|
|
52110
|
+
},
|
|
52111
|
+
{
|
|
52112
|
+
"name": "callback",
|
|
52113
|
+
"deprecated": false,
|
|
52114
|
+
"deprecationMessage": "",
|
|
52115
|
+
"tagName": {
|
|
52116
|
+
"text": "param"
|
|
52117
|
+
}
|
|
52118
|
+
}
|
|
52119
|
+
]
|
|
52120
|
+
}
|
|
52121
|
+
],
|
|
52122
|
+
"packages/core/schematics/add-eui-imports/index.ts": [
|
|
52123
|
+
{
|
|
52124
|
+
"name": "addEsImports",
|
|
52125
|
+
"file": "packages/core/schematics/add-eui-imports/index.ts",
|
|
52126
|
+
"ctype": "miscellaneous",
|
|
52127
|
+
"subtype": "function",
|
|
52128
|
+
"coverageIgnore": false,
|
|
52129
|
+
"deprecated": false,
|
|
52130
|
+
"deprecationMessage": "",
|
|
52131
|
+
"rawdescription": "",
|
|
52132
|
+
"description": "",
|
|
52133
|
+
"displayName": "addEsImports",
|
|
52134
|
+
"args": [
|
|
52135
|
+
{
|
|
52136
|
+
"name": "source",
|
|
52137
|
+
"type": "string",
|
|
52138
|
+
"deprecated": false,
|
|
52139
|
+
"deprecationMessage": ""
|
|
52140
|
+
},
|
|
52141
|
+
{
|
|
52142
|
+
"name": "filePath",
|
|
52143
|
+
"type": "string",
|
|
52144
|
+
"deprecated": false,
|
|
52145
|
+
"deprecationMessage": ""
|
|
52146
|
+
},
|
|
52147
|
+
{
|
|
52148
|
+
"name": "imports",
|
|
52149
|
+
"deprecated": false,
|
|
52150
|
+
"deprecationMessage": ""
|
|
52151
|
+
}
|
|
52152
|
+
],
|
|
52153
|
+
"returnType": "string",
|
|
52154
|
+
"jsdoctags": [
|
|
52155
|
+
{
|
|
52156
|
+
"name": "source",
|
|
52157
|
+
"type": "string",
|
|
52158
|
+
"deprecated": false,
|
|
52159
|
+
"deprecationMessage": "",
|
|
52160
|
+
"tagName": {
|
|
52161
|
+
"text": "param"
|
|
52162
|
+
}
|
|
52163
|
+
},
|
|
52164
|
+
{
|
|
52165
|
+
"name": "filePath",
|
|
52166
|
+
"type": "string",
|
|
52167
|
+
"deprecated": false,
|
|
52168
|
+
"deprecationMessage": "",
|
|
52169
|
+
"tagName": {
|
|
52170
|
+
"text": "param"
|
|
52171
|
+
}
|
|
52172
|
+
},
|
|
52173
|
+
{
|
|
52174
|
+
"name": "imports",
|
|
52175
|
+
"deprecated": false,
|
|
52176
|
+
"deprecationMessage": "",
|
|
52177
|
+
"tagName": {
|
|
52178
|
+
"text": "param"
|
|
52179
|
+
}
|
|
52180
|
+
}
|
|
52181
|
+
]
|
|
52182
|
+
},
|
|
52183
|
+
{
|
|
52184
|
+
"name": "addEuiImports",
|
|
52185
|
+
"file": "packages/core/schematics/add-eui-imports/index.ts",
|
|
52186
|
+
"ctype": "miscellaneous",
|
|
52187
|
+
"subtype": "function",
|
|
52188
|
+
"coverageIgnore": false,
|
|
52189
|
+
"deprecated": false,
|
|
52190
|
+
"deprecationMessage": "",
|
|
52191
|
+
"rawdescription": "",
|
|
52192
|
+
"description": "",
|
|
52193
|
+
"displayName": "addEuiImports",
|
|
50850
52194
|
"args": [
|
|
50851
52195
|
{
|
|
50852
52196
|
"name": "options",
|
|
@@ -70925,181 +72269,6 @@
|
|
|
70925
72269
|
]
|
|
70926
72270
|
}
|
|
70927
72271
|
],
|
|
70928
|
-
"packages/core/schematics/migrate-eui-datepicker/index.ts": [
|
|
70929
|
-
{
|
|
70930
|
-
"name": "inlineTemplateUsesDatepicker",
|
|
70931
|
-
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
70932
|
-
"ctype": "miscellaneous",
|
|
70933
|
-
"subtype": "function",
|
|
70934
|
-
"coverageIgnore": false,
|
|
70935
|
-
"deprecated": false,
|
|
70936
|
-
"deprecationMessage": "",
|
|
70937
|
-
"rawdescription": "",
|
|
70938
|
-
"description": "",
|
|
70939
|
-
"displayName": "inlineTemplateUsesDatepicker",
|
|
70940
|
-
"args": [
|
|
70941
|
-
{
|
|
70942
|
-
"name": "source",
|
|
70943
|
-
"type": "string",
|
|
70944
|
-
"deprecated": false,
|
|
70945
|
-
"deprecationMessage": ""
|
|
70946
|
-
}
|
|
70947
|
-
],
|
|
70948
|
-
"returnType": "boolean",
|
|
70949
|
-
"jsdoctags": [
|
|
70950
|
-
{
|
|
70951
|
-
"name": "source",
|
|
70952
|
-
"type": "string",
|
|
70953
|
-
"deprecated": false,
|
|
70954
|
-
"deprecationMessage": "",
|
|
70955
|
-
"tagName": {
|
|
70956
|
-
"text": "param"
|
|
70957
|
-
}
|
|
70958
|
-
}
|
|
70959
|
-
]
|
|
70960
|
-
},
|
|
70961
|
-
{
|
|
70962
|
-
"name": "migrateEuiDatepicker",
|
|
70963
|
-
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
70964
|
-
"ctype": "miscellaneous",
|
|
70965
|
-
"subtype": "function",
|
|
70966
|
-
"coverageIgnore": false,
|
|
70967
|
-
"deprecated": false,
|
|
70968
|
-
"deprecationMessage": "",
|
|
70969
|
-
"rawdescription": "Advisory migration for the eui-datepicker moment-locale breaking change.\n\n`eui-datepicker` no longer bundles the moment locale data (the internal\n`import 'moment/min/locales'` was removed). Apps that relied on the datepicker\nimplicitly registering every moment locale must now import the locales they use\nthemselves, e.g. `import 'moment/locale/fr';`. This schematic cannot know which\nlocales an app needs (and auto-importing all of them would reintroduce the bundle\ncost the change removed), so it only reports the files that use `eui-datepicker`\nand the manual action required.",
|
|
70970
|
-
"description": "<p>Advisory migration for the eui-datepicker moment-locale breaking change.</p>\n<p><code>eui-datepicker</code> no longer bundles the moment locale data (the internal\n<code>import 'moment/min/locales'</code> was removed). Apps that relied on the datepicker\nimplicitly registering every moment locale must now import the locales they use\nthemselves, e.g. <code>import 'moment/locale/fr';</code>. This schematic cannot know which\nlocales an app needs (and auto-importing all of them would reintroduce the bundle\ncost the change removed), so it only reports the files that use <code>eui-datepicker</code>\nand the manual action required.</p>\n",
|
|
70971
|
-
"displayName": "migrateEuiDatepicker",
|
|
70972
|
-
"args": [
|
|
70973
|
-
{
|
|
70974
|
-
"name": "options",
|
|
70975
|
-
"type": "Schema",
|
|
70976
|
-
"deprecated": false,
|
|
70977
|
-
"deprecationMessage": "",
|
|
70978
|
-
"defaultValue": "{}"
|
|
70979
|
-
}
|
|
70980
|
-
],
|
|
70981
|
-
"returnType": "Rule",
|
|
70982
|
-
"jsdoctags": [
|
|
70983
|
-
{
|
|
70984
|
-
"name": "options",
|
|
70985
|
-
"type": "Schema",
|
|
70986
|
-
"deprecated": false,
|
|
70987
|
-
"deprecationMessage": "",
|
|
70988
|
-
"defaultValue": "{}",
|
|
70989
|
-
"tagName": {
|
|
70990
|
-
"text": "param"
|
|
70991
|
-
}
|
|
70992
|
-
}
|
|
70993
|
-
]
|
|
70994
|
-
},
|
|
70995
|
-
{
|
|
70996
|
-
"name": "nodesContainDatepicker",
|
|
70997
|
-
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
70998
|
-
"ctype": "miscellaneous",
|
|
70999
|
-
"subtype": "function",
|
|
71000
|
-
"coverageIgnore": false,
|
|
71001
|
-
"deprecated": false,
|
|
71002
|
-
"deprecationMessage": "",
|
|
71003
|
-
"rawdescription": "",
|
|
71004
|
-
"description": "",
|
|
71005
|
-
"displayName": "nodesContainDatepicker",
|
|
71006
|
-
"args": [
|
|
71007
|
-
{
|
|
71008
|
-
"name": "nodes",
|
|
71009
|
-
"deprecated": false,
|
|
71010
|
-
"deprecationMessage": ""
|
|
71011
|
-
}
|
|
71012
|
-
],
|
|
71013
|
-
"returnType": "boolean",
|
|
71014
|
-
"jsdoctags": [
|
|
71015
|
-
{
|
|
71016
|
-
"name": "nodes",
|
|
71017
|
-
"deprecated": false,
|
|
71018
|
-
"deprecationMessage": "",
|
|
71019
|
-
"tagName": {
|
|
71020
|
-
"text": "param"
|
|
71021
|
-
}
|
|
71022
|
-
}
|
|
71023
|
-
]
|
|
71024
|
-
},
|
|
71025
|
-
{
|
|
71026
|
-
"name": "templateUsesDatepicker",
|
|
71027
|
-
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
71028
|
-
"ctype": "miscellaneous",
|
|
71029
|
-
"subtype": "function",
|
|
71030
|
-
"coverageIgnore": false,
|
|
71031
|
-
"deprecated": false,
|
|
71032
|
-
"deprecationMessage": "",
|
|
71033
|
-
"rawdescription": "",
|
|
71034
|
-
"description": "",
|
|
71035
|
-
"displayName": "templateUsesDatepicker",
|
|
71036
|
-
"args": [
|
|
71037
|
-
{
|
|
71038
|
-
"name": "source",
|
|
71039
|
-
"type": "string",
|
|
71040
|
-
"deprecated": false,
|
|
71041
|
-
"deprecationMessage": ""
|
|
71042
|
-
}
|
|
71043
|
-
],
|
|
71044
|
-
"returnType": "boolean",
|
|
71045
|
-
"jsdoctags": [
|
|
71046
|
-
{
|
|
71047
|
-
"name": "source",
|
|
71048
|
-
"type": "string",
|
|
71049
|
-
"deprecated": false,
|
|
71050
|
-
"deprecationMessage": "",
|
|
71051
|
-
"tagName": {
|
|
71052
|
-
"text": "param"
|
|
71053
|
-
}
|
|
71054
|
-
}
|
|
71055
|
-
]
|
|
71056
|
-
},
|
|
71057
|
-
{
|
|
71058
|
-
"name": "visitDir",
|
|
71059
|
-
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
71060
|
-
"ctype": "miscellaneous",
|
|
71061
|
-
"subtype": "function",
|
|
71062
|
-
"coverageIgnore": false,
|
|
71063
|
-
"deprecated": false,
|
|
71064
|
-
"deprecationMessage": "",
|
|
71065
|
-
"rawdescription": "",
|
|
71066
|
-
"description": "",
|
|
71067
|
-
"displayName": "visitDir",
|
|
71068
|
-
"args": [
|
|
71069
|
-
{
|
|
71070
|
-
"name": "dir",
|
|
71071
|
-
"type": "DirEntry",
|
|
71072
|
-
"deprecated": false,
|
|
71073
|
-
"deprecationMessage": ""
|
|
71074
|
-
},
|
|
71075
|
-
{
|
|
71076
|
-
"name": "callback",
|
|
71077
|
-
"deprecated": false,
|
|
71078
|
-
"deprecationMessage": ""
|
|
71079
|
-
}
|
|
71080
|
-
],
|
|
71081
|
-
"returnType": "void",
|
|
71082
|
-
"jsdoctags": [
|
|
71083
|
-
{
|
|
71084
|
-
"name": "dir",
|
|
71085
|
-
"type": "DirEntry",
|
|
71086
|
-
"deprecated": false,
|
|
71087
|
-
"deprecationMessage": "",
|
|
71088
|
-
"tagName": {
|
|
71089
|
-
"text": "param"
|
|
71090
|
-
}
|
|
71091
|
-
},
|
|
71092
|
-
{
|
|
71093
|
-
"name": "callback",
|
|
71094
|
-
"deprecated": false,
|
|
71095
|
-
"deprecationMessage": "",
|
|
71096
|
-
"tagName": {
|
|
71097
|
-
"text": "param"
|
|
71098
|
-
}
|
|
71099
|
-
}
|
|
71100
|
-
]
|
|
71101
|
-
}
|
|
71102
|
-
],
|
|
71103
72272
|
"packages/core/src/lib/services/app/eui-pre-init-app.ts": [
|
|
71104
72273
|
{
|
|
71105
72274
|
"name": "loadEuiDynamicEnvironmentConfig",
|
|
@@ -72491,6 +73660,21 @@
|
|
|
72491
73660
|
"kind": 185
|
|
72492
73661
|
}
|
|
72493
73662
|
],
|
|
73663
|
+
"packages/core/schematics/migrate-eui-datepicker/index.ts": [
|
|
73664
|
+
{
|
|
73665
|
+
"name": "AdapterKind",
|
|
73666
|
+
"ctype": "miscellaneous",
|
|
73667
|
+
"subtype": "typealias",
|
|
73668
|
+
"coverageIgnore": false,
|
|
73669
|
+
"rawtype": "\"moment\" | \"luxon\" | \"native\"",
|
|
73670
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
73671
|
+
"deprecated": false,
|
|
73672
|
+
"deprecationMessage": "",
|
|
73673
|
+
"rawdescription": "",
|
|
73674
|
+
"description": "",
|
|
73675
|
+
"kind": 193
|
|
73676
|
+
}
|
|
73677
|
+
],
|
|
72494
73678
|
"packages/core/src/lib/services/store/actions/app.actions.ts": [
|
|
72495
73679
|
{
|
|
72496
73680
|
"name": "CoreAppActions",
|