@eui/core 22.0.0-alpha.70 → 22.0.0-alpha.72
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 +31 -0
- package/docs/changelog.html +58 -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 +1536 -352
- 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 -1
- package/docs/overview.html +1 -1
- package/docs/properties.html +1 -1
- package/fesm2022/eui-core.mjs +1 -4
- package/fesm2022/eui-core.mjs.map +1 -1
- package/migrations.json +1 -1
- package/package.json +2 -2
- package/schematics/collection.json +1 -1
- package/schematics/migrate/replacements/mwp.js +1 -0
- package/schematics/migrate/replacements/mwp.js.map +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
- package/types/eui-core.d.ts.map +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",
|
|
@@ -5359,7 +5539,7 @@
|
|
|
5359
5539
|
"indexKey": "",
|
|
5360
5540
|
"optional": false,
|
|
5361
5541
|
"description": "",
|
|
5362
|
-
"line":
|
|
5542
|
+
"line": 65,
|
|
5363
5543
|
"rawdescription": "\n"
|
|
5364
5544
|
},
|
|
5365
5545
|
{
|
|
@@ -5371,7 +5551,7 @@
|
|
|
5371
5551
|
"indexKey": "",
|
|
5372
5552
|
"optional": true,
|
|
5373
5553
|
"description": "",
|
|
5374
|
-
"line":
|
|
5554
|
+
"line": 21,
|
|
5375
5555
|
"rawdescription": "\n"
|
|
5376
5556
|
},
|
|
5377
5557
|
{
|
|
@@ -5383,7 +5563,7 @@
|
|
|
5383
5563
|
"indexKey": "",
|
|
5384
5564
|
"optional": false,
|
|
5385
5565
|
"description": "",
|
|
5386
|
-
"line":
|
|
5566
|
+
"line": 69,
|
|
5387
5567
|
"rawdescription": "\n"
|
|
5388
5568
|
},
|
|
5389
5569
|
{
|
|
@@ -5395,7 +5575,7 @@
|
|
|
5395
5575
|
"indexKey": "",
|
|
5396
5576
|
"optional": true,
|
|
5397
5577
|
"description": "",
|
|
5398
|
-
"line":
|
|
5578
|
+
"line": 18,
|
|
5399
5579
|
"rawdescription": "\n"
|
|
5400
5580
|
},
|
|
5401
5581
|
{
|
|
@@ -5407,7 +5587,7 @@
|
|
|
5407
5587
|
"indexKey": "",
|
|
5408
5588
|
"optional": true,
|
|
5409
5589
|
"description": "",
|
|
5410
|
-
"line":
|
|
5590
|
+
"line": 19,
|
|
5411
5591
|
"rawdescription": "\n"
|
|
5412
5592
|
},
|
|
5413
5593
|
{
|
|
@@ -5419,7 +5599,7 @@
|
|
|
5419
5599
|
"indexKey": "",
|
|
5420
5600
|
"optional": true,
|
|
5421
5601
|
"description": "",
|
|
5422
|
-
"line":
|
|
5602
|
+
"line": 20,
|
|
5423
5603
|
"rawdescription": "\n"
|
|
5424
5604
|
},
|
|
5425
5605
|
{
|
|
@@ -5431,7 +5611,7 @@
|
|
|
5431
5611
|
"indexKey": "",
|
|
5432
5612
|
"optional": true,
|
|
5433
5613
|
"description": "",
|
|
5434
|
-
"line":
|
|
5614
|
+
"line": 48,
|
|
5435
5615
|
"rawdescription": "\n"
|
|
5436
5616
|
},
|
|
5437
5617
|
{
|
|
@@ -5443,7 +5623,7 @@
|
|
|
5443
5623
|
"indexKey": "",
|
|
5444
5624
|
"optional": true,
|
|
5445
5625
|
"description": "",
|
|
5446
|
-
"line":
|
|
5626
|
+
"line": 50,
|
|
5447
5627
|
"rawdescription": "\n"
|
|
5448
5628
|
},
|
|
5449
5629
|
{
|
|
@@ -5455,7 +5635,7 @@
|
|
|
5455
5635
|
"indexKey": "",
|
|
5456
5636
|
"optional": true,
|
|
5457
5637
|
"description": "",
|
|
5458
|
-
"line":
|
|
5638
|
+
"line": 51,
|
|
5459
5639
|
"rawdescription": "\n"
|
|
5460
5640
|
},
|
|
5461
5641
|
{
|
|
@@ -5467,7 +5647,7 @@
|
|
|
5467
5647
|
"indexKey": "",
|
|
5468
5648
|
"optional": true,
|
|
5469
5649
|
"description": "",
|
|
5470
|
-
"line":
|
|
5650
|
+
"line": 56,
|
|
5471
5651
|
"rawdescription": "\n"
|
|
5472
5652
|
},
|
|
5473
5653
|
{
|
|
@@ -5479,7 +5659,7 @@
|
|
|
5479
5659
|
"indexKey": "",
|
|
5480
5660
|
"optional": false,
|
|
5481
5661
|
"description": "",
|
|
5482
|
-
"line":
|
|
5662
|
+
"line": 62,
|
|
5483
5663
|
"rawdescription": "\n"
|
|
5484
5664
|
},
|
|
5485
5665
|
{
|
|
@@ -5491,7 +5671,7 @@
|
|
|
5491
5671
|
"indexKey": "",
|
|
5492
5672
|
"optional": true,
|
|
5493
5673
|
"description": "",
|
|
5494
|
-
"line":
|
|
5674
|
+
"line": 36,
|
|
5495
5675
|
"rawdescription": "\n"
|
|
5496
5676
|
},
|
|
5497
5677
|
{
|
|
@@ -5503,7 +5683,7 @@
|
|
|
5503
5683
|
"indexKey": "",
|
|
5504
5684
|
"optional": true,
|
|
5505
5685
|
"description": "",
|
|
5506
|
-
"line":
|
|
5686
|
+
"line": 28,
|
|
5507
5687
|
"rawdescription": "\n"
|
|
5508
5688
|
},
|
|
5509
5689
|
{
|
|
@@ -5515,7 +5695,7 @@
|
|
|
5515
5695
|
"indexKey": "",
|
|
5516
5696
|
"optional": true,
|
|
5517
5697
|
"description": "",
|
|
5518
|
-
"line":
|
|
5698
|
+
"line": 43,
|
|
5519
5699
|
"rawdescription": "\n"
|
|
5520
5700
|
},
|
|
5521
5701
|
{
|
|
@@ -5527,7 +5707,7 @@
|
|
|
5527
5707
|
"indexKey": "",
|
|
5528
5708
|
"optional": true,
|
|
5529
5709
|
"description": "",
|
|
5530
|
-
"line":
|
|
5710
|
+
"line": 29,
|
|
5531
5711
|
"rawdescription": "\n"
|
|
5532
5712
|
},
|
|
5533
5713
|
{
|
|
@@ -5539,7 +5719,7 @@
|
|
|
5539
5719
|
"indexKey": "",
|
|
5540
5720
|
"optional": true,
|
|
5541
5721
|
"description": "",
|
|
5542
|
-
"line":
|
|
5722
|
+
"line": 32,
|
|
5543
5723
|
"rawdescription": "\n"
|
|
5544
5724
|
},
|
|
5545
5725
|
{
|
|
@@ -5551,7 +5731,7 @@
|
|
|
5551
5731
|
"indexKey": "",
|
|
5552
5732
|
"optional": true,
|
|
5553
5733
|
"description": "",
|
|
5554
|
-
"line":
|
|
5734
|
+
"line": 31,
|
|
5555
5735
|
"rawdescription": "\n"
|
|
5556
5736
|
},
|
|
5557
5737
|
{
|
|
@@ -5563,7 +5743,7 @@
|
|
|
5563
5743
|
"indexKey": "",
|
|
5564
5744
|
"optional": true,
|
|
5565
5745
|
"description": "",
|
|
5566
|
-
"line":
|
|
5746
|
+
"line": 72,
|
|
5567
5747
|
"rawdescription": "\n"
|
|
5568
5748
|
},
|
|
5569
5749
|
{
|
|
@@ -5575,7 +5755,7 @@
|
|
|
5575
5755
|
"indexKey": "",
|
|
5576
5756
|
"optional": true,
|
|
5577
5757
|
"description": "",
|
|
5578
|
-
"line":
|
|
5758
|
+
"line": 26,
|
|
5579
5759
|
"rawdescription": "\n"
|
|
5580
5760
|
},
|
|
5581
5761
|
{
|
|
@@ -5587,7 +5767,7 @@
|
|
|
5587
5767
|
"indexKey": "",
|
|
5588
5768
|
"optional": true,
|
|
5589
5769
|
"description": "",
|
|
5590
|
-
"line":
|
|
5770
|
+
"line": 39,
|
|
5591
5771
|
"rawdescription": "\n"
|
|
5592
5772
|
},
|
|
5593
5773
|
{
|
|
@@ -5599,7 +5779,7 @@
|
|
|
5599
5779
|
"indexKey": "",
|
|
5600
5780
|
"optional": true,
|
|
5601
5781
|
"description": "",
|
|
5602
|
-
"line":
|
|
5782
|
+
"line": 27,
|
|
5603
5783
|
"rawdescription": "\n"
|
|
5604
5784
|
},
|
|
5605
5785
|
{
|
|
@@ -5611,7 +5791,7 @@
|
|
|
5611
5791
|
"indexKey": "",
|
|
5612
5792
|
"optional": true,
|
|
5613
5793
|
"description": "",
|
|
5614
|
-
"line":
|
|
5794
|
+
"line": 33,
|
|
5615
5795
|
"rawdescription": "\n"
|
|
5616
5796
|
},
|
|
5617
5797
|
{
|
|
@@ -5623,7 +5803,7 @@
|
|
|
5623
5803
|
"indexKey": "",
|
|
5624
5804
|
"optional": true,
|
|
5625
5805
|
"description": "",
|
|
5626
|
-
"line":
|
|
5806
|
+
"line": 34,
|
|
5627
5807
|
"rawdescription": "\n"
|
|
5628
5808
|
},
|
|
5629
5809
|
{
|
|
@@ -5635,7 +5815,7 @@
|
|
|
5635
5815
|
"indexKey": "",
|
|
5636
5816
|
"optional": true,
|
|
5637
5817
|
"description": "",
|
|
5638
|
-
"line":
|
|
5818
|
+
"line": 35,
|
|
5639
5819
|
"rawdescription": "\n"
|
|
5640
5820
|
},
|
|
5641
5821
|
{
|
|
@@ -5647,7 +5827,7 @@
|
|
|
5647
5827
|
"indexKey": "",
|
|
5648
5828
|
"optional": true,
|
|
5649
5829
|
"description": "",
|
|
5650
|
-
"line":
|
|
5830
|
+
"line": 40,
|
|
5651
5831
|
"rawdescription": "\n"
|
|
5652
5832
|
},
|
|
5653
5833
|
{
|
|
@@ -5659,7 +5839,7 @@
|
|
|
5659
5839
|
"indexKey": "",
|
|
5660
5840
|
"optional": true,
|
|
5661
5841
|
"description": "",
|
|
5662
|
-
"line":
|
|
5842
|
+
"line": 59,
|
|
5663
5843
|
"rawdescription": "\n"
|
|
5664
5844
|
},
|
|
5665
5845
|
{
|
|
@@ -5671,7 +5851,7 @@
|
|
|
5671
5851
|
"indexKey": "",
|
|
5672
5852
|
"optional": true,
|
|
5673
5853
|
"description": "",
|
|
5674
|
-
"line":
|
|
5854
|
+
"line": 73,
|
|
5675
5855
|
"rawdescription": "\n"
|
|
5676
5856
|
},
|
|
5677
5857
|
{
|
|
@@ -5683,7 +5863,7 @@
|
|
|
5683
5863
|
"indexKey": "",
|
|
5684
5864
|
"optional": true,
|
|
5685
5865
|
"description": "",
|
|
5686
|
-
"line":
|
|
5866
|
+
"line": 30,
|
|
5687
5867
|
"rawdescription": "\n"
|
|
5688
5868
|
},
|
|
5689
5869
|
{
|
|
@@ -5695,7 +5875,7 @@
|
|
|
5695
5875
|
"indexKey": "",
|
|
5696
5876
|
"optional": true,
|
|
5697
5877
|
"description": "",
|
|
5698
|
-
"line":
|
|
5878
|
+
"line": 25,
|
|
5699
5879
|
"rawdescription": "\n"
|
|
5700
5880
|
},
|
|
5701
5881
|
{
|
|
@@ -5707,7 +5887,7 @@
|
|
|
5707
5887
|
"indexKey": "",
|
|
5708
5888
|
"optional": true,
|
|
5709
5889
|
"description": "",
|
|
5710
|
-
"line":
|
|
5890
|
+
"line": 38,
|
|
5711
5891
|
"rawdescription": "\n"
|
|
5712
5892
|
},
|
|
5713
5893
|
{
|
|
@@ -5719,7 +5899,7 @@
|
|
|
5719
5899
|
"indexKey": "",
|
|
5720
5900
|
"optional": true,
|
|
5721
5901
|
"description": "",
|
|
5722
|
-
"line":
|
|
5902
|
+
"line": 37,
|
|
5723
5903
|
"rawdescription": "\n"
|
|
5724
5904
|
},
|
|
5725
5905
|
{
|
|
@@ -5731,7 +5911,7 @@
|
|
|
5731
5911
|
"indexKey": "",
|
|
5732
5912
|
"optional": true,
|
|
5733
5913
|
"description": "",
|
|
5734
|
-
"line":
|
|
5914
|
+
"line": 24,
|
|
5735
5915
|
"rawdescription": "\n"
|
|
5736
5916
|
},
|
|
5737
5917
|
{
|
|
@@ -5743,7 +5923,7 @@
|
|
|
5743
5923
|
"indexKey": "",
|
|
5744
5924
|
"optional": false,
|
|
5745
5925
|
"description": "",
|
|
5746
|
-
"line":
|
|
5926
|
+
"line": 66,
|
|
5747
5927
|
"rawdescription": "\n"
|
|
5748
5928
|
},
|
|
5749
5929
|
{
|
|
@@ -5755,7 +5935,7 @@
|
|
|
5755
5935
|
"indexKey": "",
|
|
5756
5936
|
"optional": true,
|
|
5757
5937
|
"description": "",
|
|
5758
|
-
"line":
|
|
5938
|
+
"line": 46,
|
|
5759
5939
|
"rawdescription": "\n"
|
|
5760
5940
|
},
|
|
5761
5941
|
{
|
|
@@ -5767,7 +5947,7 @@
|
|
|
5767
5947
|
"indexKey": "",
|
|
5768
5948
|
"optional": true,
|
|
5769
5949
|
"description": "",
|
|
5770
|
-
"line":
|
|
5950
|
+
"line": 54,
|
|
5771
5951
|
"rawdescription": "\n"
|
|
5772
5952
|
},
|
|
5773
5953
|
{
|
|
@@ -5779,7 +5959,7 @@
|
|
|
5779
5959
|
"indexKey": "",
|
|
5780
5960
|
"optional": true,
|
|
5781
5961
|
"description": "",
|
|
5782
|
-
"line":
|
|
5962
|
+
"line": 47,
|
|
5783
5963
|
"rawdescription": "\n"
|
|
5784
5964
|
},
|
|
5785
5965
|
{
|
|
@@ -5791,7 +5971,7 @@
|
|
|
5791
5971
|
"indexKey": "",
|
|
5792
5972
|
"optional": true,
|
|
5793
5973
|
"description": "",
|
|
5794
|
-
"line":
|
|
5974
|
+
"line": 55,
|
|
5795
5975
|
"rawdescription": "\n"
|
|
5796
5976
|
},
|
|
5797
5977
|
{
|
|
@@ -5803,7 +5983,7 @@
|
|
|
5803
5983
|
"indexKey": "",
|
|
5804
5984
|
"optional": true,
|
|
5805
5985
|
"description": "",
|
|
5806
|
-
"line":
|
|
5986
|
+
"line": 45,
|
|
5807
5987
|
"rawdescription": "\n"
|
|
5808
5988
|
},
|
|
5809
5989
|
{
|
|
@@ -5815,7 +5995,7 @@
|
|
|
5815
5995
|
"indexKey": "",
|
|
5816
5996
|
"optional": true,
|
|
5817
5997
|
"description": "",
|
|
5818
|
-
"line":
|
|
5998
|
+
"line": 44,
|
|
5819
5999
|
"rawdescription": "\n"
|
|
5820
6000
|
},
|
|
5821
6001
|
{
|
|
@@ -5827,7 +6007,7 @@
|
|
|
5827
6007
|
"indexKey": "",
|
|
5828
6008
|
"optional": true,
|
|
5829
6009
|
"description": "",
|
|
5830
|
-
"line":
|
|
6010
|
+
"line": 49,
|
|
5831
6011
|
"rawdescription": "\n"
|
|
5832
6012
|
}
|
|
5833
6013
|
],
|
|
@@ -6823,7 +7003,7 @@
|
|
|
6823
7003
|
"indexKey": "",
|
|
6824
7004
|
"optional": false,
|
|
6825
7005
|
"description": "",
|
|
6826
|
-
"line":
|
|
7006
|
+
"line": 136,
|
|
6827
7007
|
"rawdescription": "\n",
|
|
6828
7008
|
"modifierKind": [
|
|
6829
7009
|
124
|
|
@@ -6838,7 +7018,7 @@
|
|
|
6838
7018
|
"indexKey": "",
|
|
6839
7019
|
"optional": false,
|
|
6840
7020
|
"description": "",
|
|
6841
|
-
"line":
|
|
7021
|
+
"line": 135,
|
|
6842
7022
|
"rawdescription": "\n"
|
|
6843
7023
|
},
|
|
6844
7024
|
{
|
|
@@ -6850,7 +7030,7 @@
|
|
|
6850
7030
|
"indexKey": "",
|
|
6851
7031
|
"optional": false,
|
|
6852
7032
|
"description": "",
|
|
6853
|
-
"line":
|
|
7033
|
+
"line": 134,
|
|
6854
7034
|
"rawdescription": "\n"
|
|
6855
7035
|
}
|
|
6856
7036
|
],
|
|
@@ -6862,7 +7042,7 @@
|
|
|
6862
7042
|
"optional": false,
|
|
6863
7043
|
"returnType": "void",
|
|
6864
7044
|
"typeParameters": [],
|
|
6865
|
-
"line":
|
|
7045
|
+
"line": 404,
|
|
6866
7046
|
"deprecated": false,
|
|
6867
7047
|
"deprecationMessage": "",
|
|
6868
7048
|
"rawdescription": "\n",
|
|
@@ -6878,7 +7058,7 @@
|
|
|
6878
7058
|
"optional": false,
|
|
6879
7059
|
"returnType": "void",
|
|
6880
7060
|
"typeParameters": [],
|
|
6881
|
-
"line":
|
|
7061
|
+
"line": 396,
|
|
6882
7062
|
"deprecated": false,
|
|
6883
7063
|
"deprecationMessage": "",
|
|
6884
7064
|
"rawdescription": "\n",
|
|
@@ -6894,7 +7074,7 @@
|
|
|
6894
7074
|
"optional": false,
|
|
6895
7075
|
"returnType": "void",
|
|
6896
7076
|
"typeParameters": [],
|
|
6897
|
-
"line":
|
|
7077
|
+
"line": 359,
|
|
6898
7078
|
"deprecated": false,
|
|
6899
7079
|
"deprecationMessage": "",
|
|
6900
7080
|
"rawdescription": "\n",
|
|
@@ -6910,7 +7090,7 @@
|
|
|
6910
7090
|
"optional": false,
|
|
6911
7091
|
"returnType": "void",
|
|
6912
7092
|
"typeParameters": [],
|
|
6913
|
-
"line":
|
|
7093
|
+
"line": 392,
|
|
6914
7094
|
"deprecated": false,
|
|
6915
7095
|
"deprecationMessage": "",
|
|
6916
7096
|
"rawdescription": "\n",
|
|
@@ -6926,7 +7106,7 @@
|
|
|
6926
7106
|
"optional": false,
|
|
6927
7107
|
"returnType": "void",
|
|
6928
7108
|
"typeParameters": [],
|
|
6929
|
-
"line":
|
|
7109
|
+
"line": 388,
|
|
6930
7110
|
"deprecated": false,
|
|
6931
7111
|
"deprecationMessage": "",
|
|
6932
7112
|
"rawdescription": "\n",
|
|
@@ -6942,7 +7122,7 @@
|
|
|
6942
7122
|
"optional": false,
|
|
6943
7123
|
"returnType": "void",
|
|
6944
7124
|
"typeParameters": [],
|
|
6945
|
-
"line":
|
|
7125
|
+
"line": 370,
|
|
6946
7126
|
"deprecated": false,
|
|
6947
7127
|
"deprecationMessage": "",
|
|
6948
7128
|
"rawdescription": "\n",
|
|
@@ -6958,7 +7138,7 @@
|
|
|
6958
7138
|
"optional": false,
|
|
6959
7139
|
"returnType": "void",
|
|
6960
7140
|
"typeParameters": [],
|
|
6961
|
-
"line":
|
|
7141
|
+
"line": 420,
|
|
6962
7142
|
"deprecated": false,
|
|
6963
7143
|
"deprecationMessage": "",
|
|
6964
7144
|
"rawdescription": "\n",
|
|
@@ -6974,7 +7154,7 @@
|
|
|
6974
7154
|
"optional": false,
|
|
6975
7155
|
"returnType": "void",
|
|
6976
7156
|
"typeParameters": [],
|
|
6977
|
-
"line":
|
|
7157
|
+
"line": 428,
|
|
6978
7158
|
"deprecated": false,
|
|
6979
7159
|
"deprecationMessage": "",
|
|
6980
7160
|
"rawdescription": "\n",
|
|
@@ -6990,7 +7170,7 @@
|
|
|
6990
7170
|
"optional": false,
|
|
6991
7171
|
"returnType": "void",
|
|
6992
7172
|
"typeParameters": [],
|
|
6993
|
-
"line":
|
|
7173
|
+
"line": 436,
|
|
6994
7174
|
"deprecated": false,
|
|
6995
7175
|
"deprecationMessage": "",
|
|
6996
7176
|
"rawdescription": "\n",
|
|
@@ -7015,7 +7195,7 @@
|
|
|
7015
7195
|
"optional": false,
|
|
7016
7196
|
"returnType": "void",
|
|
7017
7197
|
"typeParameters": [],
|
|
7018
|
-
"line":
|
|
7198
|
+
"line": 412,
|
|
7019
7199
|
"deprecated": false,
|
|
7020
7200
|
"deprecationMessage": "",
|
|
7021
7201
|
"rawdescription": "\n",
|
|
@@ -7044,7 +7224,7 @@
|
|
|
7044
7224
|
"optional": false,
|
|
7045
7225
|
"returnType": "void",
|
|
7046
7226
|
"typeParameters": [],
|
|
7047
|
-
"line":
|
|
7227
|
+
"line": 379,
|
|
7048
7228
|
"deprecated": false,
|
|
7049
7229
|
"deprecationMessage": "",
|
|
7050
7230
|
"rawdescription": "\n",
|
|
@@ -7060,7 +7240,7 @@
|
|
|
7060
7240
|
"optional": false,
|
|
7061
7241
|
"returnType": "void",
|
|
7062
7242
|
"typeParameters": [],
|
|
7063
|
-
"line":
|
|
7243
|
+
"line": 330,
|
|
7064
7244
|
"deprecated": false,
|
|
7065
7245
|
"deprecationMessage": "",
|
|
7066
7246
|
"rawdescription": "\n",
|
|
@@ -7086,7 +7266,7 @@
|
|
|
7086
7266
|
"optional": false,
|
|
7087
7267
|
"returnType": "void",
|
|
7088
7268
|
"typeParameters": [],
|
|
7089
|
-
"line":
|
|
7269
|
+
"line": 350,
|
|
7090
7270
|
"deprecated": false,
|
|
7091
7271
|
"deprecationMessage": "",
|
|
7092
7272
|
"rawdescription": "\n",
|
|
@@ -7116,7 +7296,7 @@
|
|
|
7116
7296
|
"optional": false,
|
|
7117
7297
|
"returnType": "string",
|
|
7118
7298
|
"typeParameters": [],
|
|
7119
|
-
"line":
|
|
7299
|
+
"line": 446,
|
|
7120
7300
|
"deprecated": false,
|
|
7121
7301
|
"deprecationMessage": "",
|
|
7122
7302
|
"rawdescription": "\n\nReturns the current value of --eui-f-size-base CSS variable\n",
|
|
@@ -7143,7 +7323,7 @@
|
|
|
7143
7323
|
"typeParameters": [
|
|
7144
7324
|
"T"
|
|
7145
7325
|
],
|
|
7146
|
-
"line":
|
|
7326
|
+
"line": 312,
|
|
7147
7327
|
"deprecated": false,
|
|
7148
7328
|
"deprecationMessage": "",
|
|
7149
7329
|
"rawdescription": "\n\nEmits a slice from the state whether that changes\n\n",
|
|
@@ -7151,8 +7331,8 @@
|
|
|
7151
7331
|
"jsdoctags": [
|
|
7152
7332
|
{
|
|
7153
7333
|
"name": {
|
|
7154
|
-
"pos":
|
|
7155
|
-
"end":
|
|
7334
|
+
"pos": 9352,
|
|
7335
|
+
"end": 9355,
|
|
7156
7336
|
"kind": 80,
|
|
7157
7337
|
"id": 0,
|
|
7158
7338
|
"flags": 16842752,
|
|
@@ -7165,8 +7345,8 @@
|
|
|
7165
7345
|
"deprecated": false,
|
|
7166
7346
|
"deprecationMessage": "",
|
|
7167
7347
|
"tagName": {
|
|
7168
|
-
"pos":
|
|
7169
|
-
"end":
|
|
7348
|
+
"pos": 9346,
|
|
7349
|
+
"end": 9351,
|
|
7170
7350
|
"kind": 80,
|
|
7171
7351
|
"id": 0,
|
|
7172
7352
|
"flags": 16842752,
|
|
@@ -7193,7 +7373,7 @@
|
|
|
7193
7373
|
"optional": false,
|
|
7194
7374
|
"returnType": "void",
|
|
7195
7375
|
"typeParameters": [],
|
|
7196
|
-
"line":
|
|
7376
|
+
"line": 453,
|
|
7197
7377
|
"deprecated": false,
|
|
7198
7378
|
"deprecationMessage": "",
|
|
7199
7379
|
"rawdescription": "\n\nUpdates the current value of --eui-f-size-base CSS variable and the UIState appBaseFontSize\n",
|
|
@@ -7231,7 +7411,7 @@
|
|
|
7231
7411
|
"optional": false,
|
|
7232
7412
|
"returnType": "void",
|
|
7233
7413
|
"typeParameters": [],
|
|
7234
|
-
"line":
|
|
7414
|
+
"line": 339,
|
|
7235
7415
|
"deprecated": false,
|
|
7236
7416
|
"deprecationMessage": "",
|
|
7237
7417
|
"rawdescription": "\n",
|
|
@@ -7278,7 +7458,7 @@
|
|
|
7278
7458
|
"optional": false,
|
|
7279
7459
|
"returnType": "void",
|
|
7280
7460
|
"typeParameters": [],
|
|
7281
|
-
"line":
|
|
7461
|
+
"line": 259,
|
|
7282
7462
|
"deprecated": false,
|
|
7283
7463
|
"deprecationMessage": "",
|
|
7284
7464
|
"rawdescription": "\n",
|
|
@@ -7316,7 +7496,7 @@
|
|
|
7316
7496
|
"optional": false,
|
|
7317
7497
|
"returnType": "void",
|
|
7318
7498
|
"typeParameters": [],
|
|
7319
|
-
"line":
|
|
7499
|
+
"line": 325,
|
|
7320
7500
|
"deprecated": false,
|
|
7321
7501
|
"deprecationMessage": "",
|
|
7322
7502
|
"rawdescription": "\n",
|
|
@@ -7337,7 +7517,7 @@
|
|
|
7337
7517
|
"deprecated": false,
|
|
7338
7518
|
"deprecationMessage": "",
|
|
7339
7519
|
"args": [],
|
|
7340
|
-
"line":
|
|
7520
|
+
"line": 237,
|
|
7341
7521
|
"rawdescription": "\n"
|
|
7342
7522
|
},
|
|
7343
7523
|
"accessors": {
|
|
@@ -7347,7 +7527,7 @@
|
|
|
7347
7527
|
"name": "state$",
|
|
7348
7528
|
"type": "unknown",
|
|
7349
7529
|
"returnType": "Observable<UIState>",
|
|
7350
|
-
"line":
|
|
7530
|
+
"line": 145,
|
|
7351
7531
|
"rawdescription": "\n",
|
|
7352
7532
|
"description": ""
|
|
7353
7533
|
}
|
|
@@ -7358,7 +7538,7 @@
|
|
|
7358
7538
|
"name": "breakpoint$",
|
|
7359
7539
|
"type": "unknown",
|
|
7360
7540
|
"returnType": "Observable<string>",
|
|
7361
|
-
"line":
|
|
7541
|
+
"line": 152,
|
|
7362
7542
|
"rawdescription": "\n",
|
|
7363
7543
|
"description": ""
|
|
7364
7544
|
}
|
|
@@ -7369,7 +7549,7 @@
|
|
|
7369
7549
|
"name": "breakpoints$",
|
|
7370
7550
|
"type": "unknown",
|
|
7371
7551
|
"returnType": "Observable<any>",
|
|
7372
|
-
"line":
|
|
7552
|
+
"line": 157,
|
|
7373
7553
|
"rawdescription": "\n",
|
|
7374
7554
|
"description": ""
|
|
7375
7555
|
}
|
|
@@ -7380,7 +7560,7 @@
|
|
|
7380
7560
|
"name": "state",
|
|
7381
7561
|
"type": "unknown",
|
|
7382
7562
|
"returnType": "UIState",
|
|
7383
|
-
"line":
|
|
7563
|
+
"line": 164,
|
|
7384
7564
|
"rawdescription": "\n",
|
|
7385
7565
|
"description": ""
|
|
7386
7566
|
}
|
|
@@ -7403,7 +7583,7 @@
|
|
|
7403
7583
|
}
|
|
7404
7584
|
],
|
|
7405
7585
|
"returnType": "void",
|
|
7406
|
-
"line":
|
|
7586
|
+
"line": 171,
|
|
7407
7587
|
"rawdescription": "\n",
|
|
7408
7588
|
"description": "",
|
|
7409
7589
|
"jsdoctags": [
|
|
@@ -7424,7 +7604,7 @@
|
|
|
7424
7604
|
"name": "isSidebarOpen",
|
|
7425
7605
|
"type": "boolean",
|
|
7426
7606
|
"returnType": "boolean",
|
|
7427
|
-
"line":
|
|
7607
|
+
"line": 178,
|
|
7428
7608
|
"rawdescription": "\n",
|
|
7429
7609
|
"description": ""
|
|
7430
7610
|
}
|
|
@@ -7447,7 +7627,7 @@
|
|
|
7447
7627
|
}
|
|
7448
7628
|
],
|
|
7449
7629
|
"returnType": "void",
|
|
7450
|
-
"line":
|
|
7630
|
+
"line": 182,
|
|
7451
7631
|
"rawdescription": "\n",
|
|
7452
7632
|
"description": "",
|
|
7453
7633
|
"jsdoctags": [
|
|
@@ -7483,7 +7663,7 @@
|
|
|
7483
7663
|
}
|
|
7484
7664
|
],
|
|
7485
7665
|
"returnType": "void",
|
|
7486
|
-
"line":
|
|
7666
|
+
"line": 189,
|
|
7487
7667
|
"rawdescription": "\n",
|
|
7488
7668
|
"description": "",
|
|
7489
7669
|
"jsdoctags": [
|
|
@@ -7519,7 +7699,7 @@
|
|
|
7519
7699
|
}
|
|
7520
7700
|
],
|
|
7521
7701
|
"returnType": "void",
|
|
7522
|
-
"line":
|
|
7702
|
+
"line": 196,
|
|
7523
7703
|
"rawdescription": "\n",
|
|
7524
7704
|
"description": "",
|
|
7525
7705
|
"jsdoctags": [
|
|
@@ -7555,7 +7735,7 @@
|
|
|
7555
7735
|
}
|
|
7556
7736
|
],
|
|
7557
7737
|
"returnType": "void",
|
|
7558
|
-
"line":
|
|
7738
|
+
"line": 204,
|
|
7559
7739
|
"rawdescription": "\n",
|
|
7560
7740
|
"description": "",
|
|
7561
7741
|
"jsdoctags": [
|
|
@@ -7591,7 +7771,7 @@
|
|
|
7591
7771
|
}
|
|
7592
7772
|
],
|
|
7593
7773
|
"returnType": "void",
|
|
7594
|
-
"line":
|
|
7774
|
+
"line": 211,
|
|
7595
7775
|
"rawdescription": "\n",
|
|
7596
7776
|
"description": "",
|
|
7597
7777
|
"jsdoctags": [
|
|
@@ -7615,7 +7795,7 @@
|
|
|
7615
7795
|
"name": "hasHeader",
|
|
7616
7796
|
"type": "boolean",
|
|
7617
7797
|
"returnType": "boolean",
|
|
7618
|
-
"line":
|
|
7798
|
+
"line": 218,
|
|
7619
7799
|
"rawdescription": "\n",
|
|
7620
7800
|
"description": ""
|
|
7621
7801
|
}
|
|
@@ -7638,7 +7818,7 @@
|
|
|
7638
7818
|
}
|
|
7639
7819
|
],
|
|
7640
7820
|
"returnType": "void",
|
|
7641
|
-
"line":
|
|
7821
|
+
"line": 227,
|
|
7642
7822
|
"rawdescription": "\n",
|
|
7643
7823
|
"description": "",
|
|
7644
7824
|
"jsdoctags": [
|
|
@@ -7659,7 +7839,7 @@
|
|
|
7659
7839
|
"name": "isDimmerActive",
|
|
7660
7840
|
"type": "boolean",
|
|
7661
7841
|
"returnType": "boolean",
|
|
7662
|
-
"line":
|
|
7842
|
+
"line": 223,
|
|
7663
7843
|
"rawdescription": "\n",
|
|
7664
7844
|
"description": ""
|
|
7665
7845
|
}
|
|
@@ -8760,7 +8940,7 @@
|
|
|
8760
8940
|
"optional": false,
|
|
8761
8941
|
"returnType": "void",
|
|
8762
8942
|
"typeParameters": [],
|
|
8763
|
-
"line":
|
|
8943
|
+
"line": 71,
|
|
8764
8944
|
"deprecated": false,
|
|
8765
8945
|
"deprecationMessage": "",
|
|
8766
8946
|
"rawdescription": "\n\nAdd a dependency with its type (JS or CSS) and dependencies\n\n",
|
|
@@ -8768,8 +8948,8 @@
|
|
|
8768
8948
|
"jsdoctags": [
|
|
8769
8949
|
{
|
|
8770
8950
|
"name": {
|
|
8771
|
-
"pos":
|
|
8772
|
-
"end":
|
|
8951
|
+
"pos": 3136,
|
|
8952
|
+
"end": 3140,
|
|
8773
8953
|
"kind": 80,
|
|
8774
8954
|
"id": 0,
|
|
8775
8955
|
"flags": 16842752,
|
|
@@ -8782,8 +8962,8 @@
|
|
|
8782
8962
|
"deprecated": false,
|
|
8783
8963
|
"deprecationMessage": "",
|
|
8784
8964
|
"tagName": {
|
|
8785
|
-
"pos":
|
|
8786
|
-
"end":
|
|
8965
|
+
"pos": 3130,
|
|
8966
|
+
"end": 3135,
|
|
8787
8967
|
"kind": 80,
|
|
8788
8968
|
"id": 0,
|
|
8789
8969
|
"flags": 16842752,
|
|
@@ -8794,8 +8974,8 @@
|
|
|
8794
8974
|
},
|
|
8795
8975
|
{
|
|
8796
8976
|
"name": {
|
|
8797
|
-
"pos":
|
|
8798
|
-
"end":
|
|
8977
|
+
"pos": 3182,
|
|
8978
|
+
"end": 3185,
|
|
8799
8979
|
"kind": 80,
|
|
8800
8980
|
"id": 0,
|
|
8801
8981
|
"flags": 16842752,
|
|
@@ -8808,8 +8988,8 @@
|
|
|
8808
8988
|
"deprecated": false,
|
|
8809
8989
|
"deprecationMessage": "",
|
|
8810
8990
|
"tagName": {
|
|
8811
|
-
"pos":
|
|
8812
|
-
"end":
|
|
8991
|
+
"pos": 3176,
|
|
8992
|
+
"end": 3181,
|
|
8813
8993
|
"kind": 80,
|
|
8814
8994
|
"id": 0,
|
|
8815
8995
|
"flags": 16842752,
|
|
@@ -8820,8 +9000,8 @@
|
|
|
8820
9000
|
},
|
|
8821
9001
|
{
|
|
8822
9002
|
"name": {
|
|
8823
|
-
"pos":
|
|
8824
|
-
"end":
|
|
9003
|
+
"pos": 3226,
|
|
9004
|
+
"end": 3230,
|
|
8825
9005
|
"kind": 80,
|
|
8826
9006
|
"id": 0,
|
|
8827
9007
|
"flags": 16842752,
|
|
@@ -8834,8 +9014,8 @@
|
|
|
8834
9014
|
"deprecated": false,
|
|
8835
9015
|
"deprecationMessage": "",
|
|
8836
9016
|
"tagName": {
|
|
8837
|
-
"pos":
|
|
8838
|
-
"end":
|
|
9017
|
+
"pos": 3220,
|
|
9018
|
+
"end": 3225,
|
|
8839
9019
|
"kind": 80,
|
|
8840
9020
|
"id": 0,
|
|
8841
9021
|
"flags": 16842752,
|
|
@@ -8846,8 +9026,8 @@
|
|
|
8846
9026
|
},
|
|
8847
9027
|
{
|
|
8848
9028
|
"name": {
|
|
8849
|
-
"pos":
|
|
8850
|
-
"end":
|
|
9029
|
+
"pos": 3284,
|
|
9030
|
+
"end": 3292,
|
|
8851
9031
|
"kind": 80,
|
|
8852
9032
|
"id": 0,
|
|
8853
9033
|
"flags": 16842752,
|
|
@@ -8861,8 +9041,8 @@
|
|
|
8861
9041
|
"deprecationMessage": "",
|
|
8862
9042
|
"defaultValue": "[]",
|
|
8863
9043
|
"tagName": {
|
|
8864
|
-
"pos":
|
|
8865
|
-
"end":
|
|
9044
|
+
"pos": 3278,
|
|
9045
|
+
"end": 3283,
|
|
8866
9046
|
"kind": 80,
|
|
8867
9047
|
"id": 0,
|
|
8868
9048
|
"flags": 16842752,
|
|
@@ -8889,7 +9069,7 @@
|
|
|
8889
9069
|
"optional": false,
|
|
8890
9070
|
"returnType": "Status | null",
|
|
8891
9071
|
"typeParameters": [],
|
|
8892
|
-
"line":
|
|
9072
|
+
"line": 145,
|
|
8893
9073
|
"deprecated": true,
|
|
8894
9074
|
"deprecationMessage": "Prefer using statusChanges instead",
|
|
8895
9075
|
"rawdescription": "\n\nGet the status of a dependency\n\nSee statusChanges\n",
|
|
@@ -8897,8 +9077,8 @@
|
|
|
8897
9077
|
"jsdoctags": [
|
|
8898
9078
|
{
|
|
8899
9079
|
"name": {
|
|
8900
|
-
"pos":
|
|
8901
|
-
"end":
|
|
9080
|
+
"pos": 5560,
|
|
9081
|
+
"end": 5564,
|
|
8902
9082
|
"kind": 80,
|
|
8903
9083
|
"id": 0,
|
|
8904
9084
|
"flags": 16842752,
|
|
@@ -8911,8 +9091,8 @@
|
|
|
8911
9091
|
"deprecated": false,
|
|
8912
9092
|
"deprecationMessage": "",
|
|
8913
9093
|
"tagName": {
|
|
8914
|
-
"pos":
|
|
8915
|
-
"end":
|
|
9094
|
+
"pos": 5554,
|
|
9095
|
+
"end": 5559,
|
|
8916
9096
|
"kind": 80,
|
|
8917
9097
|
"id": 0,
|
|
8918
9098
|
"flags": 16842752,
|
|
@@ -8923,8 +9103,8 @@
|
|
|
8923
9103
|
},
|
|
8924
9104
|
{
|
|
8925
9105
|
"tagName": {
|
|
8926
|
-
"pos":
|
|
8927
|
-
"end":
|
|
9106
|
+
"pos": 5600,
|
|
9107
|
+
"end": 5607,
|
|
8928
9108
|
"kind": 80,
|
|
8929
9109
|
"id": 0,
|
|
8930
9110
|
"flags": 16842752,
|
|
@@ -8951,7 +9131,7 @@
|
|
|
8951
9131
|
"optional": false,
|
|
8952
9132
|
"returnType": "void",
|
|
8953
9133
|
"typeParameters": [],
|
|
8954
|
-
"line":
|
|
9134
|
+
"line": 93,
|
|
8955
9135
|
"deprecated": false,
|
|
8956
9136
|
"deprecationMessage": "",
|
|
8957
9137
|
"rawdescription": "\n\nRemove a dependency from the DOM\n\n",
|
|
@@ -8959,8 +9139,8 @@
|
|
|
8959
9139
|
"jsdoctags": [
|
|
8960
9140
|
{
|
|
8961
9141
|
"name": {
|
|
8962
|
-
"pos":
|
|
8963
|
-
"end":
|
|
9142
|
+
"pos": 4009,
|
|
9143
|
+
"end": 4013,
|
|
8964
9144
|
"kind": 80,
|
|
8965
9145
|
"id": 0,
|
|
8966
9146
|
"flags": 16842752,
|
|
@@ -8973,8 +9153,8 @@
|
|
|
8973
9153
|
"deprecated": false,
|
|
8974
9154
|
"deprecationMessage": "",
|
|
8975
9155
|
"tagName": {
|
|
8976
|
-
"pos":
|
|
8977
|
-
"end":
|
|
9156
|
+
"pos": 4003,
|
|
9157
|
+
"end": 4008,
|
|
8978
9158
|
"kind": 80,
|
|
8979
9159
|
"id": 0,
|
|
8980
9160
|
"flags": 16842752,
|
|
@@ -9009,7 +9189,7 @@
|
|
|
9009
9189
|
"optional": false,
|
|
9010
9190
|
"returnType": "void",
|
|
9011
9191
|
"typeParameters": [],
|
|
9012
|
-
"line":
|
|
9192
|
+
"line": 121,
|
|
9013
9193
|
"deprecated": false,
|
|
9014
9194
|
"deprecationMessage": "",
|
|
9015
9195
|
"rawdescription": "\n\nAllow users to configure the retry policy\n\n",
|
|
@@ -9017,8 +9197,8 @@
|
|
|
9017
9197
|
"jsdoctags": [
|
|
9018
9198
|
{
|
|
9019
9199
|
"name": {
|
|
9020
|
-
"pos":
|
|
9021
|
-
"end":
|
|
9200
|
+
"pos": 4890,
|
|
9201
|
+
"end": 4901,
|
|
9022
9202
|
"kind": 80,
|
|
9023
9203
|
"id": 0,
|
|
9024
9204
|
"flags": 16842752,
|
|
@@ -9031,8 +9211,8 @@
|
|
|
9031
9211
|
"deprecated": false,
|
|
9032
9212
|
"deprecationMessage": "",
|
|
9033
9213
|
"tagName": {
|
|
9034
|
-
"pos":
|
|
9035
|
-
"end":
|
|
9214
|
+
"pos": 4884,
|
|
9215
|
+
"end": 4889,
|
|
9036
9216
|
"kind": 80,
|
|
9037
9217
|
"id": 0,
|
|
9038
9218
|
"flags": 16842752,
|
|
@@ -9043,8 +9223,8 @@
|
|
|
9043
9223
|
},
|
|
9044
9224
|
{
|
|
9045
9225
|
"name": {
|
|
9046
|
-
"pos":
|
|
9047
|
-
"end":
|
|
9226
|
+
"pos": 4953,
|
|
9227
|
+
"end": 4966,
|
|
9048
9228
|
"kind": 80,
|
|
9049
9229
|
"id": 0,
|
|
9050
9230
|
"flags": 16842752,
|
|
@@ -9057,8 +9237,8 @@
|
|
|
9057
9237
|
"deprecated": false,
|
|
9058
9238
|
"deprecationMessage": "",
|
|
9059
9239
|
"tagName": {
|
|
9060
|
-
"pos":
|
|
9061
|
-
"end":
|
|
9240
|
+
"pos": 4947,
|
|
9241
|
+
"end": 4952,
|
|
9062
9242
|
"kind": 80,
|
|
9063
9243
|
"id": 0,
|
|
9064
9244
|
"flags": 16842752,
|
|
@@ -9085,7 +9265,7 @@
|
|
|
9085
9265
|
"optional": false,
|
|
9086
9266
|
"returnType": "void",
|
|
9087
9267
|
"typeParameters": [],
|
|
9088
|
-
"line":
|
|
9268
|
+
"line": 133,
|
|
9089
9269
|
"deprecated": false,
|
|
9090
9270
|
"deprecationMessage": "",
|
|
9091
9271
|
"rawdescription": "\n\nAllow users to configure the timeout policy\n\nSee setRetryPolicy\nSee statusChanges\n",
|
|
@@ -9093,8 +9273,8 @@
|
|
|
9093
9273
|
"jsdoctags": [
|
|
9094
9274
|
{
|
|
9095
9275
|
"name": {
|
|
9096
|
-
"pos":
|
|
9097
|
-
"end":
|
|
9276
|
+
"pos": 5272,
|
|
9277
|
+
"end": 5276,
|
|
9098
9278
|
"kind": 80,
|
|
9099
9279
|
"id": 0,
|
|
9100
9280
|
"flags": 16842752,
|
|
@@ -9107,8 +9287,8 @@
|
|
|
9107
9287
|
"deprecated": false,
|
|
9108
9288
|
"deprecationMessage": "",
|
|
9109
9289
|
"tagName": {
|
|
9110
|
-
"pos":
|
|
9111
|
-
"end":
|
|
9290
|
+
"pos": 5266,
|
|
9291
|
+
"end": 5271,
|
|
9112
9292
|
"kind": 80,
|
|
9113
9293
|
"id": 0,
|
|
9114
9294
|
"flags": 16842752,
|
|
@@ -9135,7 +9315,7 @@
|
|
|
9135
9315
|
"optional": false,
|
|
9136
9316
|
"returnType": "Observable<Status>",
|
|
9137
9317
|
"typeParameters": [],
|
|
9138
|
-
"line":
|
|
9318
|
+
"line": 155,
|
|
9139
9319
|
"deprecated": false,
|
|
9140
9320
|
"deprecationMessage": "",
|
|
9141
9321
|
"rawdescription": "\n\nGet the status of a dependency as an observable\n\n",
|
|
@@ -9143,8 +9323,8 @@
|
|
|
9143
9323
|
"jsdoctags": [
|
|
9144
9324
|
{
|
|
9145
9325
|
"name": {
|
|
9146
|
-
"pos":
|
|
9147
|
-
"end":
|
|
9326
|
+
"pos": 6011,
|
|
9327
|
+
"end": 6015,
|
|
9148
9328
|
"kind": 80,
|
|
9149
9329
|
"id": 0,
|
|
9150
9330
|
"flags": 16842752,
|
|
@@ -9157,8 +9337,8 @@
|
|
|
9157
9337
|
"deprecated": false,
|
|
9158
9338
|
"deprecationMessage": "",
|
|
9159
9339
|
"tagName": {
|
|
9160
|
-
"pos":
|
|
9161
|
-
"end":
|
|
9340
|
+
"pos": 6005,
|
|
9341
|
+
"end": 6010,
|
|
9162
9342
|
"kind": 80,
|
|
9163
9343
|
"id": 0,
|
|
9164
9344
|
"flags": 16842752,
|
|
@@ -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",
|
|
@@ -24739,7 +24941,7 @@
|
|
|
24739
24941
|
"deprecated": false,
|
|
24740
24942
|
"deprecationMessage": "",
|
|
24741
24943
|
"type": "unknown",
|
|
24742
|
-
"defaultValue": "(value: number | string, fractionSize = 2, inDecimalSeparator = ',', inThousandSeparator = ''): string | null => {\n // in case value is not a number throw an error\n if (typeof value === 'string' && isNaN(parseFloat(value))) {\n
|
|
24944
|
+
"defaultValue": "(value: number | string, fractionSize = 2, inDecimalSeparator = ',', inThousandSeparator = ''): string | null => {\n // in case value is not a number throw an error\n if (typeof value === 'string' && isNaN(parseFloat(value))) {\n return null;\n }\n\n let decimalSeparator = '';\n let thousandsSeparator = '';\n\n if (value === null || value === undefined) {\n return null;\n }\n\n if (typeof value === 'string') {\n // get all non characters\n const nonChars: string[] = value.match(/\\D+/g) || [];\n\n // get all unique chars\n const uniqueChars = nonChars.reduce((acc, e) => acc.set(e, (acc.get(e) || 0) + 1), new Map());\n\n // get separators\n const separators = Array.from<string>(uniqueChars.keys());\n\n // sense where decimal separator and where a thousand separator is\n if (separators.length > 1) {\n // left detected separator will be a thousand and second will be decimal\n thousandsSeparator = separators[0];\n decimalSeparator = separators[1];\n } else if (separators.length > 0) {\n // in case there is only one separator you don't know exactly who this separator is.\n // in case there are more than two occurrences means we have a thousand otherwise we'll\n // agree by conventions that is decimal\n if (nonChars.length > 1) {\n return value\n .split(separators[0])\n .join('')\n .replace(/\\B(?=(\\d{3})+(?!\\d))/g, inThousandSeparator);\n } else {\n return value.replace(separators[0], inDecimalSeparator).replace(/\\B(?=(\\d{3})+(?!\\d))/g, inThousandSeparator);\n }\n } else {\n // in case there are no separators then only format based on thousand one\n return value.replace(/\\B(?=(\\d{3})+(?!\\d))/g, inThousandSeparator) + (fractionSize > 0 ? inDecimalSeparator + '0'.repeat(fractionSize) : '');\n }\n\n // do the replacement of separators and parseInt\n // Beware! Always replace a thousand separator first and then decimal\n value = value.split(thousandsSeparator).join('').replace(decimalSeparator, '.');\n }\n\n decimalSeparator = inDecimalSeparator;\n thousandsSeparator = inThousandSeparator;\n\n const maxFraction = '0'.repeat(fractionSize);\n\n // eslint-disable-next-line prefer-const\n let [integer, fraction = maxFraction] = (value || '0').toString().split('.');\n fraction = fractionSize > 0 ? roundUpNumber(fraction + maxFraction, fractionSize) : '';\n\n // this rule makes sense only in number in case fraction is all zero\n fraction = fraction.length > 0 ? decimalSeparator + fraction : '';\n\n // if fraction is all zero then round up the number\n if(fractionSize === 0) {\n integer = Math.round(parseFloat((value).toString())).toString();\n }\n\n return integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandsSeparator) + fraction;\n}",
|
|
24743
24945
|
"rawdescription": "Its job is to parse number and format it based on given input.",
|
|
24744
24946
|
"description": "<p>Its job is to parse number and format it based on given input.</p>\n"
|
|
24745
24947
|
},
|
|
@@ -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",
|
|
@@ -36352,8 +36878,8 @@
|
|
|
36352
36878
|
"jsdoctags": [
|
|
36353
36879
|
{
|
|
36354
36880
|
"name": {
|
|
36355
|
-
"pos":
|
|
36356
|
-
"end":
|
|
36881
|
+
"pos": 1191,
|
|
36882
|
+
"end": 1194,
|
|
36357
36883
|
"kind": 80,
|
|
36358
36884
|
"id": 0,
|
|
36359
36885
|
"flags": 16777216,
|
|
@@ -36364,8 +36890,8 @@
|
|
|
36364
36890
|
"deprecated": false,
|
|
36365
36891
|
"deprecationMessage": "",
|
|
36366
36892
|
"tagName": {
|
|
36367
|
-
"pos":
|
|
36368
|
-
"end":
|
|
36893
|
+
"pos": 1185,
|
|
36894
|
+
"end": 1190,
|
|
36369
36895
|
"kind": 80,
|
|
36370
36896
|
"id": 0,
|
|
36371
36897
|
"flags": 16777216,
|
|
@@ -36376,8 +36902,8 @@
|
|
|
36376
36902
|
},
|
|
36377
36903
|
{
|
|
36378
36904
|
"name": {
|
|
36379
|
-
"pos":
|
|
36380
|
-
"end":
|
|
36905
|
+
"pos": 1235,
|
|
36906
|
+
"end": 1242,
|
|
36381
36907
|
"kind": 80,
|
|
36382
36908
|
"id": 0,
|
|
36383
36909
|
"flags": 16777216,
|
|
@@ -36389,8 +36915,8 @@
|
|
|
36389
36915
|
"deprecationMessage": "",
|
|
36390
36916
|
"optional": true,
|
|
36391
36917
|
"tagName": {
|
|
36392
|
-
"pos":
|
|
36393
|
-
"end":
|
|
36918
|
+
"pos": 1229,
|
|
36919
|
+
"end": 1234,
|
|
36394
36920
|
"kind": 80,
|
|
36395
36921
|
"id": 0,
|
|
36396
36922
|
"flags": 16777216,
|
|
@@ -36401,8 +36927,8 @@
|
|
|
36401
36927
|
},
|
|
36402
36928
|
{
|
|
36403
36929
|
"tagName": {
|
|
36404
|
-
"pos":
|
|
36405
|
-
"end":
|
|
36930
|
+
"pos": 1264,
|
|
36931
|
+
"end": 1271,
|
|
36406
36932
|
"kind": 80,
|
|
36407
36933
|
"id": 0,
|
|
36408
36934
|
"flags": 16777216,
|
|
@@ -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": {
|
|
@@ -41027,8 +41587,8 @@
|
|
|
41027
41587
|
"jsdoctags": [
|
|
41028
41588
|
{
|
|
41029
41589
|
"name": {
|
|
41030
|
-
"pos":
|
|
41031
|
-
"end":
|
|
41590
|
+
"pos": 424,
|
|
41591
|
+
"end": 433,
|
|
41032
41592
|
"kind": 80,
|
|
41033
41593
|
"id": 0,
|
|
41034
41594
|
"flags": 16777216,
|
|
@@ -41039,8 +41599,8 @@
|
|
|
41039
41599
|
"deprecated": false,
|
|
41040
41600
|
"deprecationMessage": "",
|
|
41041
41601
|
"tagName": {
|
|
41042
|
-
"pos":
|
|
41043
|
-
"end":
|
|
41602
|
+
"pos": 418,
|
|
41603
|
+
"end": 423,
|
|
41044
41604
|
"kind": 80,
|
|
41045
41605
|
"id": 0,
|
|
41046
41606
|
"flags": 16777216,
|
|
@@ -41051,8 +41611,8 @@
|
|
|
41051
41611
|
},
|
|
41052
41612
|
{
|
|
41053
41613
|
"tagName": {
|
|
41054
|
-
"pos":
|
|
41055
|
-
"end":
|
|
41614
|
+
"pos": 476,
|
|
41615
|
+
"end": 483,
|
|
41056
41616
|
"kind": 80,
|
|
41057
41617
|
"id": 0,
|
|
41058
41618
|
"flags": 16777216,
|
|
@@ -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",
|
|
@@ -49797,7 +50534,7 @@
|
|
|
49797
50534
|
"deprecated": false,
|
|
49798
50535
|
"deprecationMessage": "",
|
|
49799
50536
|
"type": "unknown",
|
|
49800
|
-
"defaultValue": "(value: number | string, fractionSize = 2, inDecimalSeparator = ',', inThousandSeparator = ''): string | null => {\n // in case value is not a number throw an error\n if (typeof value === 'string' && isNaN(parseFloat(value))) {\n
|
|
50537
|
+
"defaultValue": "(value: number | string, fractionSize = 2, inDecimalSeparator = ',', inThousandSeparator = ''): string | null => {\n // in case value is not a number throw an error\n if (typeof value === 'string' && isNaN(parseFloat(value))) {\n return null;\n }\n\n let decimalSeparator = '';\n let thousandsSeparator = '';\n\n if (value === null || value === undefined) {\n return null;\n }\n\n if (typeof value === 'string') {\n // get all non characters\n const nonChars: string[] = value.match(/\\D+/g) || [];\n\n // get all unique chars\n const uniqueChars = nonChars.reduce((acc, e) => acc.set(e, (acc.get(e) || 0) + 1), new Map());\n\n // get separators\n const separators = Array.from<string>(uniqueChars.keys());\n\n // sense where decimal separator and where a thousand separator is\n if (separators.length > 1) {\n // left detected separator will be a thousand and second will be decimal\n thousandsSeparator = separators[0];\n decimalSeparator = separators[1];\n } else if (separators.length > 0) {\n // in case there is only one separator you don't know exactly who this separator is.\n // in case there are more than two occurrences means we have a thousand otherwise we'll\n // agree by conventions that is decimal\n if (nonChars.length > 1) {\n return value\n .split(separators[0])\n .join('')\n .replace(/\\B(?=(\\d{3})+(?!\\d))/g, inThousandSeparator);\n } else {\n return value.replace(separators[0], inDecimalSeparator).replace(/\\B(?=(\\d{3})+(?!\\d))/g, inThousandSeparator);\n }\n } else {\n // in case there are no separators then only format based on thousand one\n return value.replace(/\\B(?=(\\d{3})+(?!\\d))/g, inThousandSeparator) + (fractionSize > 0 ? inDecimalSeparator + '0'.repeat(fractionSize) : '');\n }\n\n // do the replacement of separators and parseInt\n // Beware! Always replace a thousand separator first and then decimal\n value = value.split(thousandsSeparator).join('').replace(decimalSeparator, '.');\n }\n\n decimalSeparator = inDecimalSeparator;\n thousandsSeparator = inThousandSeparator;\n\n const maxFraction = '0'.repeat(fractionSize);\n\n // eslint-disable-next-line prefer-const\n let [integer, fraction = maxFraction] = (value || '0').toString().split('.');\n fraction = fractionSize > 0 ? roundUpNumber(fraction + maxFraction, fractionSize) : '';\n\n // this rule makes sense only in number in case fraction is all zero\n fraction = fraction.length > 0 ? decimalSeparator + fraction : '';\n\n // if fraction is all zero then round up the number\n if(fractionSize === 0) {\n integer = Math.round(parseFloat((value).toString())).toString();\n }\n\n return integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandsSeparator) + fraction;\n}",
|
|
49801
50538
|
"rawdescription": "Its job is to parse number and format it based on given input.",
|
|
49802
50539
|
"description": "<p>Its job is to parse number and format it based on given input.</p>\n"
|
|
49803
50540
|
},
|
|
@@ -50775,6 +51512,613 @@
|
|
|
50775
51512
|
]
|
|
50776
51513
|
},
|
|
50777
51514
|
"groupedFunctions": {
|
|
51515
|
+
"packages/core/schematics/migrate-eui-datepicker/index.ts": [
|
|
51516
|
+
{
|
|
51517
|
+
"name": "adapterKinds",
|
|
51518
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51519
|
+
"ctype": "miscellaneous",
|
|
51520
|
+
"subtype": "function",
|
|
51521
|
+
"coverageIgnore": false,
|
|
51522
|
+
"deprecated": false,
|
|
51523
|
+
"deprecationMessage": "",
|
|
51524
|
+
"rawdescription": "",
|
|
51525
|
+
"description": "",
|
|
51526
|
+
"displayName": "adapterKinds",
|
|
51527
|
+
"args": [
|
|
51528
|
+
{
|
|
51529
|
+
"name": "source",
|
|
51530
|
+
"type": "string",
|
|
51531
|
+
"deprecated": false,
|
|
51532
|
+
"deprecationMessage": ""
|
|
51533
|
+
}
|
|
51534
|
+
],
|
|
51535
|
+
"returnType": "AdapterKind[]",
|
|
51536
|
+
"jsdoctags": [
|
|
51537
|
+
{
|
|
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",
|
|
51562
|
+
"type": "string",
|
|
51563
|
+
"deprecated": false,
|
|
51564
|
+
"deprecationMessage": ""
|
|
51565
|
+
},
|
|
51566
|
+
{
|
|
51567
|
+
"name": "edits",
|
|
51568
|
+
"deprecated": false,
|
|
51569
|
+
"deprecationMessage": ""
|
|
51570
|
+
}
|
|
51571
|
+
],
|
|
51572
|
+
"returnType": "string",
|
|
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
|
+
},
|
|
51617
|
+
{
|
|
51618
|
+
"name": "source",
|
|
51619
|
+
"type": "string",
|
|
51620
|
+
"deprecated": false,
|
|
51621
|
+
"deprecationMessage": ""
|
|
51622
|
+
}
|
|
51623
|
+
],
|
|
51624
|
+
"returnType": "TemplateSource[]",
|
|
51625
|
+
"jsdoctags": [
|
|
51626
|
+
{
|
|
51627
|
+
"name": "tree",
|
|
51628
|
+
"type": "Tree",
|
|
51629
|
+
"deprecated": false,
|
|
51630
|
+
"deprecationMessage": "",
|
|
51631
|
+
"tagName": {
|
|
51632
|
+
"text": "param"
|
|
51633
|
+
}
|
|
51634
|
+
},
|
|
51635
|
+
{
|
|
51636
|
+
"name": "path",
|
|
51637
|
+
"type": "string",
|
|
51638
|
+
"deprecated": false,
|
|
51639
|
+
"deprecationMessage": "",
|
|
51640
|
+
"tagName": {
|
|
51641
|
+
"text": "param"
|
|
51642
|
+
}
|
|
51643
|
+
},
|
|
51644
|
+
{
|
|
51645
|
+
"name": "source",
|
|
51646
|
+
"type": "string",
|
|
51647
|
+
"deprecated": false,
|
|
51648
|
+
"deprecationMessage": "",
|
|
51649
|
+
"tagName": {
|
|
51650
|
+
"text": "param"
|
|
51651
|
+
}
|
|
51652
|
+
}
|
|
51653
|
+
]
|
|
51654
|
+
},
|
|
51655
|
+
{
|
|
51656
|
+
"name": "detectAppAdapter",
|
|
51657
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
51658
|
+
"ctype": "miscellaneous",
|
|
51659
|
+
"subtype": "function",
|
|
51660
|
+
"coverageIgnore": false,
|
|
51661
|
+
"deprecated": false,
|
|
51662
|
+
"deprecationMessage": "",
|
|
51663
|
+
"rawdescription": "",
|
|
51664
|
+
"description": "",
|
|
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
|
+
],
|
|
50778
52122
|
"packages/core/schematics/add-eui-imports/index.ts": [
|
|
50779
52123
|
{
|
|
50780
52124
|
"name": "addEsImports",
|
|
@@ -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",
|
|
@@ -71131,8 +72300,8 @@
|
|
|
71131
72300
|
"jsdoctags": [
|
|
71132
72301
|
{
|
|
71133
72302
|
"name": {
|
|
71134
|
-
"pos":
|
|
71135
|
-
"end":
|
|
72303
|
+
"pos": 1191,
|
|
72304
|
+
"end": 1194,
|
|
71136
72305
|
"kind": 80,
|
|
71137
72306
|
"id": 0,
|
|
71138
72307
|
"flags": 16777216,
|
|
@@ -71143,8 +72312,8 @@
|
|
|
71143
72312
|
"deprecated": false,
|
|
71144
72313
|
"deprecationMessage": "",
|
|
71145
72314
|
"tagName": {
|
|
71146
|
-
"pos":
|
|
71147
|
-
"end":
|
|
72315
|
+
"pos": 1185,
|
|
72316
|
+
"end": 1190,
|
|
71148
72317
|
"kind": 80,
|
|
71149
72318
|
"id": 0,
|
|
71150
72319
|
"flags": 16777216,
|
|
@@ -71155,8 +72324,8 @@
|
|
|
71155
72324
|
},
|
|
71156
72325
|
{
|
|
71157
72326
|
"name": {
|
|
71158
|
-
"pos":
|
|
71159
|
-
"end":
|
|
72327
|
+
"pos": 1235,
|
|
72328
|
+
"end": 1242,
|
|
71160
72329
|
"kind": 80,
|
|
71161
72330
|
"id": 0,
|
|
71162
72331
|
"flags": 16777216,
|
|
@@ -71168,8 +72337,8 @@
|
|
|
71168
72337
|
"deprecationMessage": "",
|
|
71169
72338
|
"optional": true,
|
|
71170
72339
|
"tagName": {
|
|
71171
|
-
"pos":
|
|
71172
|
-
"end":
|
|
72340
|
+
"pos": 1229,
|
|
72341
|
+
"end": 1234,
|
|
71173
72342
|
"kind": 80,
|
|
71174
72343
|
"id": 0,
|
|
71175
72344
|
"flags": 16777216,
|
|
@@ -71180,8 +72349,8 @@
|
|
|
71180
72349
|
},
|
|
71181
72350
|
{
|
|
71182
72351
|
"tagName": {
|
|
71183
|
-
"pos":
|
|
71184
|
-
"end":
|
|
72352
|
+
"pos": 1264,
|
|
72353
|
+
"end": 1271,
|
|
71185
72354
|
"kind": 80,
|
|
71186
72355
|
"id": 0,
|
|
71187
72356
|
"flags": 16777216,
|
|
@@ -71215,8 +72384,8 @@
|
|
|
71215
72384
|
"jsdoctags": [
|
|
71216
72385
|
{
|
|
71217
72386
|
"name": {
|
|
71218
|
-
"pos":
|
|
71219
|
-
"end":
|
|
72387
|
+
"pos": 424,
|
|
72388
|
+
"end": 433,
|
|
71220
72389
|
"kind": 80,
|
|
71221
72390
|
"id": 0,
|
|
71222
72391
|
"flags": 16777216,
|
|
@@ -71227,8 +72396,8 @@
|
|
|
71227
72396
|
"deprecated": false,
|
|
71228
72397
|
"deprecationMessage": "",
|
|
71229
72398
|
"tagName": {
|
|
71230
|
-
"pos":
|
|
71231
|
-
"end":
|
|
72399
|
+
"pos": 418,
|
|
72400
|
+
"end": 423,
|
|
71232
72401
|
"kind": 80,
|
|
71233
72402
|
"id": 0,
|
|
71234
72403
|
"flags": 16777216,
|
|
@@ -71239,8 +72408,8 @@
|
|
|
71239
72408
|
},
|
|
71240
72409
|
{
|
|
71241
72410
|
"tagName": {
|
|
71242
|
-
"pos":
|
|
71243
|
-
"end":
|
|
72411
|
+
"pos": 476,
|
|
72412
|
+
"end": 483,
|
|
71244
72413
|
"kind": 80,
|
|
71245
72414
|
"id": 0,
|
|
71246
72415
|
"flags": 16777216,
|
|
@@ -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",
|